NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to ask user for specific variables based on which modules are in sequence?

Let's say I have three tests set up in individual LabVIEW modules - Test 1 has variable x, Test 2 has variable y, Test 3 has variable z. In TestStand, I want to ask the user for values of the variables at the beginning that are only needed based on what tests are in the sequence (Example: Sequence has Tests 1 and 2. I want the pop-up messages to only ask for variables x and y). It's a time-based sequence, so I need to collect variables at the very beginning and not in between calling the modules. I think I should use ThisContext to access the variables, but I don't know how to only limit it to the variables that are present in the current running sequence.

Alternatively, I was thinking to have an if statement that goes through all the possible Tests and asks for variables, but that will be limiting if later we add more tests, change the names of tests, etc.

 

Any idea?

0 Kudos
Message 1 of 2
(84 Views)

Hello Wootie, and welcome to NI Forums, in order to get the best help from the community it always a good idea to attach the VI's and/or photos of your VI in your post. Do this by using the "Drag and drop here or browse files attach" option in your reply. 

0 Kudos
Message 2 of 2
(57 Views)