LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

input output parameters

Solved!
Go to solution

Hi, I don't know if this message should be posted in the Test Stand or LabView forum.

 

I need to call a LabView VI from within TestStand which will update a station global upon exitting. How do I specify input parameters into my VI and return parameters out?

 

I'm sure there must be documentaion somewhwre on how to do this and it must be fairly straight forward but I can't seem to be able to find it or figure it out.

0 Kudos
Message 1 of 5
(3,919 Views)

There is documentation on this. Included with TestStand is the manual 'Using LabVIEW with TestStand'. It's even a printed manual though an electronic copy is also included. Try using Help>Guide to Documentation.

 

When you add a LabVIEW step, In the step settings window, you will see something like the image below once you have picked the VI. To assign TestStand variables to the VI's inputs or outputs, click on the 'f(x) button and browse to your TestStand variable. For inputs, make sure you unselect the 'Default' box.

Message 2 of 5
(3,886 Views)

Dennis Knutson wrote:

There is documentation on this. Included with TestStand is the manual 'Using LabVIEW with TestStand'. It's even a printed manual though an electronic copy is also included. Try using Help>Guide to Documentation.

 

When you add a LabVIEW step, In the step settings window, you will see something like the image below once you have picked the VI. To assign TestStand variables to the VI's inputs or outputs, click on the 'f(x) button and browse to your TestStand variable. For inputs, make sure you unselect the 'Default' box.


Hi Dennis, thanks for your response. I do have quite a bit of Test
Stand experience so calling a VI isn't an issue for me. However, I have
very limited experience with LabView and am not sure how to specify
input and return parameters to and from a VI i built. I've attached a
screen shot of my current VI. I would like to pass in a refernece to an
error container and return the platform selected from the combobox.

0 Kudos
Message 3 of 5
(3,841 Views)
Solution
Accepted by topic author JulesG

Your first step is to wire the control/indicator to the VI's connector pane. There is an entire topic on this in the LabVIEW help but put simply, you right click on the VI's icon and select 'Show Connector'. You use the wiring tool to connect a terminal to a control/indicator. If you want, you can place a Sequence Context control on the VI's front panel to get TestStand references or an any other appropriate control (i.e. numeric/error in cluster, etc.)

 

I would recomend you get rid of the LabVIEW error handling code and pass the error back to TestStand. I'm not sure why you are even using LabSQL to query the database instead of the built-in TestStand functions. Also, are you aware that you have to make the VI's front panel visible when you call it from TestStand?

Message 4 of 5
(3,830 Views)
Thanks Dennis. The "Connector Pane" is what I needed to look up. I will take your suggestions into consideration regarding the error handling as well. Thanks again.
0 Kudos
Message 5 of 5
(3,819 Views)