From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch-Parameters with Pre-Expressions in Teststand

Hello,
I´m using Teststand 3.1, Labview, 7.1 & NISE
i tried something like this:

1.) In Teststand I created global Variables in the StationGlobals (these are: SwitchEnabled, Multiconnect, OperationOrder, ConnectionLifetime, Switchoperation, WaitForDebounce, RoutesToConnect, RoutesToDisconnect)

2.) Then i created a Labview-VI with those Variables as an Input-Parameter. When executing the teststep in Teststand then i can set the Variables in the StaionGlobals to a new value. (The Vi uses the "Teststand_SetPropertyValue.vi")

3.) Then in Teststand in the main-action which should be switched i opened the Pre-Expression and entered there for all variables i have in the StationGlobals:
Step.TS.SwitchEnabled = StationGlobals.GlobSwitchParms.SwitchEnabled
Step.TS.VirtualDeviceName = StationGlobals.GlobSwitchParms.VirtualDeviceName
Step.TS.SwitchOperation = StationGlobals.GlobSwitchParms.SwitchOperation
.
.

==> I thought that the action now switches the settings which i entered in the action before. But it seems like the Switching woul happen BEFORE the pre-Expressions are executed.

Is there a way to do it like i thought or is this all bu..sh..?

Thanks for your help.

--
This MSG is postet to the Teststand & NISE Forum.
0 Kudos
Message 1 of 1
(6,739 Views)