NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get site number in NI STS?

Solved!
Go to solution

Hi,

 I have quad site setup running in parallel, I want to configure my HSDIO trigger dynamically means for site 0 script trigger0 , site 1 script trigger1 so on.

 

how to get the site number dynamically?

 

 

Best Regards

Manasa M  

Best Regards
Manasa M
0 Kudos
Message 1 of 4
(3,212 Views)
Solution
Accepted by topic author Manu1991

Is it running via TestStand sequence? You could use expression RunState.TestSockets.MyIndex - it'll return order number of test socket, e.g. 0, 1, 2, etc.; and based on it you can assign values of variables.

Or, even do like this (as input expression to define trigger number):

"trigger" & Str(RunState.TestSockets.MyIndex) - it'll return "trigger0", "trigger1", etc.

I didn't work with NI STS, but hopefully, I'm not wrong.

 

logos_middle.jpg

Message 2 of 4
(3,182 Views)

Thanks a lot

Best Regards
Manasa M
0 Kudos
Message 3 of 4
(3,169 Views)

In semiconductor modules function pallet you can find get site numbers options in advanced functions. Whenever a VI is called and ran through test stand. It will return the site numbers of those which are using that VI. Suppose if site 0,1 and 1,2 are operating as two subsystems, Whenever site 0,1 subsystem calls the functions it will give the site numbers as 0,1 and the same happens when other subsystems call

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