Difference between viClose Object and viClose Session in LabWindows™/CVI™

Updated May 11, 2018

Reported In

Software

  • LabWindows/CVI

Driver

  • NI-VISA

Issue Details

LabWindows/CVI has two functions viClose:
  1. ViStatus viClose (ViSession Session_Handle);
  2. ViStatus viClose (ViObject Object_Handle);
What is the difference between them?
 

Solution

The call with VIObject can accept parameters of type session, even or find list. The call with VI Session only accepts a session. 

That being said, a VI Session is a VI Object, like it shows on the visatype.h file:
You have to pass certain types through the ViClose function that correspond to a VISA session, event, or find list.

You can always use viClose (objhandle) for every viSession.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful