06-13-2018 03:52 AM
Hello all,
I'm using a test sequence and I disable the tracing to save cycle time.
I would like to create a status bar that show "Test running" or "Passed" or "Failed" according to the result.
So I thought to create a VI front panel very simple which contains only a change of background color and text indicator.
Is it possible in TestStand to run a VI, show the front face and continue the sequence without wait an action in the VI ? Like a new thread.
Or if you have a better idea...
Thank you.
06-13-2018 05:04 AM
I think is totally possible. Have you read this Running 2 threads in TestStand in Parallel ?
06-13-2018 06:35 AM
Use Run VI Asynchronously.
06-13-2018 06:52 AM - edited 06-13-2018 06:57 AM
I tried with Run VI Asynchronously but I don't have the updated value.
It looks like my VI is not running.
May be I need to use another vi to command the run of the Run VI Asynchronously ?
Thank you for your answers !
Guillaume
06-14-2018 12:07 AM
You need to design your asynchronous VI in such a way that it waits for the data from the running sequence and update in the FP of itself (Asynchronous).
Preferably use queue to transfer data from Running Sequence to Asynchronous VI.
07-16-2018 09:50 AM
Another way to go is to call a VI which asynchronously opens and runs a second VI and passes the data you want. The second VI only needs to run until it's frontpanel is updated, then it will go idle again.
Keep the reference to the second VI in a shift register of the first one so the second VI is kept in memory. Otherwise the second VI would be reloaded over and over (that happens if you use the "Call VI asynchronously"-step).
Once the first (caller) VI leaves memory the second will as well. No need to worry about shutting it down.