PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Close a switch executive session in Teststand

When I run a unit for the first time TS4.1 takes a long time to load all the settings for SE (switch executive 2.1.1).

Every unit after that point does not expericene the SE load time.

I then close this seq and open another.

When I try this new opened seq in TS4.1 it comes up with a SE error as the switch has an open session.

 

How do I add a step in TS4.1 in cleanup to unload all the settings for SE?

So the next seq can load them all again?

0 Kudos
Message 1 of 4
(3,786 Views)

Hi there,

 

I am assuming you are using LabVIEW to call Switch Executive. In the same method, create a vi, that closes the reference to Switch Executive, and then just action this vi within your cleanup phase.

 

Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 2 of 4
(3,770 Views)

Nothing done in Labview. We use a label switching step in TS step to connect and disconnect a relay.

On the first run then TS comes across the first connect it loads all the SE settings.

 

When you 'disconnect all' in the label step all the SE settings remain in memory.

I need to unload all the SE settings when the program is finished. The reverse of the first load.

When you load another TS program that would like to use the same switch cards, the program will error as cards already in use.

How do I find out the session reference to unload all SE settings?

0 Kudos
Message 3 of 4
(3,768 Views)
Within TestStand, under the Run Option, for the label, could you not change this to "Unload after sequence executes?"
Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 4 of 4
(3,764 Views)