NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

graphic in teststand

I have two questions:

 

1. I have an .vi with a signal that it varies beetwen 0 y 1, and I run this .vi in teststand but I don't know how to established the time that I want the program have run.

 

2. How can I do visualizate in a graphic this signal? it is possible in teststand?

 

 

thanks

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

Hi cristina.lopez

 

1. I have an .vi with a signal that it varies beetwen 0 y 1, and I run this .vi in teststand but I don't know how to established the time that I want the program have run.

You could add a parameter to your VI and use it to allow the time you want the VI to run to be passed from TestStand when it calls your VI.  Then inside your VI run for the time passed in, from TestStand, and stop.   You could also add a STOP button to your VI to allow the user to stop the VI before the time expires.

 

2. How can I do visualizate in a graphic this signal? it is possible in teststand?

You can configure VIs to display their Front Panels when running, from the VI Properties->Window Appearance (see below).  Then add code to your VI to graphically display the state of the signal.  Then when the VI is called from TestStand the VI Front Panel will be displayed and be graphically displaying the state of your signal. 

 

VI Properties.PNG

 

Regards

 

Steve

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

Could you explain with and example or capture of block diagram?

I'm started with teststand.

1. You could add a parameter to your VI and use it to allow the time you want the VI to run to be passed from TestStand when it calls your VI.  Then inside your VI run for the time passed in, from TestStand, and stop.   You could also add a STOP button to your VI to allow the user to stop the VI before the time expires.

 

 

Thanks so much 

0 Kudos
Message 3 of 4
(2,787 Views)

It is all done in LabVIEW not TestStand (other than the passing of the time you want the VI to run for). 

 

Add a control to your VI, I have chosen VIRunTime(Seconds), connect the Control to the VI Connector Pane to allow a value to be passed to it when called from TestStand.   Then within your VI; periodically check to see if your VI has been running for the required amount of time.  The checking period is determined by how close to the specified VI run time you want to get and in the case of the example below how often you want to update your graphical display.  I have chosen to check/update every 500ms.  Also you need to add a case to the Event Structure to stop the VI when the user presses the Stop Button.

 

TimedVI.png

 

Here is what the TestStand call to the VI would look like.  I have chosen to run the VI for 5 seconds:

SignalDisplayVI.PNG

Hope this helps

Steve

 

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