NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i specify a StationGlobal using text and variables

Solved!
Go to solution

Hello,

i have two StationGlobals (numeric):

StationGlobals.One

StationGlobals.Two

 

And there is a FileGlobal.parameter (string) that contains the text "One".

 

How can i set an expression using something like:

StationGlobals.+FileGlobals.parameter = 12

 

So the second part of the StationGlobal is defined by another variable.

 

Thanks

0 Kudos
Message 1 of 4
(2,198 Views)

StationGlobals.GetValNumber(Fileglobals.Parameter, 0)

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(2,177 Views)
Solution
Accepted by OnlyOne

Sorry you probably want this:

StationGlobals.SetValNumber(FileGlobals.Parameter, 0x4, 12)

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 3 of 4
(2,174 Views)

solved.

thanks

0 Kudos
Message 4 of 4
(2,146 Views)