NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand First step as User interface, following actual test steps update the first step front panel. How is this done?

Hi

I wanted to get this question it's own thread. So, here's the problem. In TestStand I have 10 steps. The first step should open a front panel for the user. This front panel has listing of different voltage measurements. These results should came from the steps following the opening of the user interface. How is this done? I can't get the test sequence to advance, because the first step, used as the user interface, is not finished. If I close it, I cannot update the actual measurement (steps) results to it?

Aleksi Sandqvist
0 Kudos
Message 1 of 5
(3,304 Views)
Hi Aleksi,

You will have to run the first step in a seperate execution.

Have a look at the example here:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE4056A4E034080020E74861&p_node=DZ52230&p_source=external

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,304 Views)
Hi Aleksi,

One easy solution is to place the first step in a separate sequence (let's name it OpenUserFrontPanel) and replace it with a sequencecall step pointing to OpenUserFrontPanel sequence. In the Edit SequenceCall panel set the 'Run Sequence in a New Thread' option, from the 'Multithreaded and Remote Execution' section.
This will allow the execution to continue in the main thread as the FrontPanel remains open in the secondary thread started in OpenUserFrontPanel sequence.

Hope this helps,
Silvius
Silvius Iancu
0 Kudos
Message 3 of 5
(3,304 Views)
Hello Aleksi -

Out of curiosity, are you working with LabVIEW to call your interface-step? or LabWindows/CVI? The link that Ray provided is a good one however if you're getting stuck on CVI style behavior let me know and I will post/email you an alternate example for CVI DLLs.

-Regards

Elaine R.
National Instruments
http://www.ni.com/support
0 Kudos
Message 4 of 5
(3,304 Views)
Hi Elaine!

Actually I've made a CVI-based user interface (simular to simple operator interface supplied with TS3) for loading and launching tests. The step and test results can also be read from this interface. What I'm doing right now is:

- the user chooses a test to load.
- when it is launched, a Labview front panel is shown.
- the results of the other TestStand steps (all LV-tests) are updated in to this LV front panel.

I actually got this working (I don't remember who recommended it, someone from this site) by making the front panel loading its own sequence and starting it in its own thread. The other test steps are executed and the results are reported to the front panel via the Labview notifiers. Or atleast in theory, I haven't really go
tten started in writing (well, drawing) the code. So thanks to everyone who helped me!

Best regards,
Aleksi Sandqvist
0 Kudos
Message 5 of 5
(3,303 Views)