Agilent Technologies E4406A VSA manual Closing a Session, C Programming Using VTL, Chapter

Models: E4406A VSA

1 406
Download 406 pages 63.49 Kb
Page 121
Image 121
Closing a Session

Programming Fundamentals

C Programming Using VTL

Closing a Session

The viClose function must be used to close each session. You can close the specific device session, which will free all data structures that had been allocated for the session. If you close the default resource manager session, all sessions opened using that resource manager will be closed.

Since system resources are also used when searching for resources (viFindRsrc) or waiting for events (viWaitOnEvent), the viClose function needs to be called to free up find lists and event contexts.

Chapter 2

121

Page 121
Image 121
Agilent Technologies E4406A VSA manual Closing a Session, C Programming Using VTL, Chapter