NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

niSE_CloseSession library

I am using Switch executive 3.0, TestStand 4.2.1 step properties to close or open a route. Also I am using a default batch execution.

 

At the very first time I am able to execute my program with out any errors. But where as when I try to execute the next batch that gets prompted after the first batch is over, I am getting an error while turning the route to ON/Off. The error is "An error occurred while performing the switch operation 'Connect' for the following device 'VirtualDevice1'.
Could not perform the switching operation:
Details:Invalid IVI device session. You may have simultaneously opened multiple virtual device sessions that use the same IVI device. At runtime, an IVI device can only be used by one virtual device. Either close each virtual device session before opening the next virtual device session or reconfigure your virtual devices so that each IVI device is used by only one virtual device.(Error = -29038)".

 

What I understood from the TestStand forums is I need to use niSE_CloseSession(VirtualDevice1) in my first batch execution cleanup. But not sure which library to use and where is that library is located.

 

Any help in this is appreciated.

 

Regards,

Ramjee V

0 Kudos
Message 1 of 1
(4,066 Views)