Closing Your Session
- Updated2025-11-11
- 1 minute(s) read
For any application you write, you must close the specified session to close communication with the device and free resources that it has reserved. If the session is running, it is first aborted.
You can close your session by using the VI or function shown in the following table.
| LabVIEW VI | C Function |
|---|---|
| niHSDIO Close | niHSDIO_close |
Use these functions for both dynamic and static data operations.
Note Close functions do not tristate
terminals or channels to prevent generating unwanted signal glitches between
initializing and closing sessions. They keep driving the same voltage as after you
simply used the niHSDIO Abort VI or the niHSDIO_Abort function. Use
the niHSDIO Reset VI or the niHSDIO_reset function before using the
close functions if you want to tristate your terminals and channels before closing
your session.