You typically use the XNET Clear.vi when you need to clear the existing session to create a new session that uses the same objects. For example, if you create a session for a frame named frameA using Frame Output Single-Point mode, then you create a second session for frameA using Frame Output Queued mode, the second call to the XNET Create Session.vi returns an error because frameA can be accessed using only one output mode. If you call the XNET Clear.vi before the second XNET Create Session.vi call, you can close the previous use of frameA to create the new session.When your application is finished (the top-level VI is idle), LabVIEW automatically clears all XNET sessions within that VI and its subVIs. Therefore, the XNET Clear.vi is rarely needed in your application.
XNET Clear.vi - NI-XNET Hardware and Software Help
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.