12-17-2012 03:21 PM
I downloaded the example teststand seq "CloseVirtualDevice.seq" from a SUPPORT posting titled "Why Do I Recieve Error -29038 when working with NI Switch Executive?". The referenced sequence is extremely simple and easy to understand, however the "Get Virtual Device Runtime Session" would not work in teststand until I checked the "Enable Switching" box under Properties ==> Switching. This action then requires me to select a switching operation which I really don't want to do at this point in my sequence. Is there a way that I can just establish the session and get its associated reference without having to perform a switching action at the same time?
12-18-2012 11:46 AM
Ed,
When you say "...the "Get Virtual Device Runtime Session" would not work in teststand until I checked the "Enable Switching" box," what exactly do you mean? Was there a specific error that occurred?
The Properties > Switching pane is available for all steps in TestStand, and only when you install NI Switch Executive software. This allows you to add a switching action onto any step in the sequence. For the GetVirtualDeviceRuntimeSession step, you should not need to check Enable Switching.
The default name of the switching module in the example is VirtualDevice1. Perhaps, if you have not already done so, verify that this is changed to the name of the device you wish to get the session for.