NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

why does the "Enable Switching" box need to be selected when I use the ActiveX/Com function to get a Virtual Device Runtime Session

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?

Ed
0 Kudos
Message 1 of 2
(2,996 Views)

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.

Jared A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,979 Views)