01-03-2018 06:04 AM
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
01-04-2018 05:07 AM - edited 01-04-2018 05:10 AM
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.
Regards
Steve
01-04-2018 05:41 AM
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
01-04-2018 06:09 AM
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.
Here is what the TestStand call to the VI would look like. I have chosen to run the VI for 5 seconds:
Hope this helps
Steve