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.