NI.fn.once_visible function