08-21-2012 11:23 AM
I am creating a Sub VI to perform a VISA Read followed by a VISA write operation and I would like to pass the
Resource and error cluster info into and out of this Sub VI.
Do I set these inputs as controls and outputs as indicators or do I need to specify another type to do this?
Thanks
08-21-2012 11:42 AM
Nope, just as you said. The inputs are controls and the outputs are indicators. Make sure you connect them to your connector pattern.
08-22-2012 10:03 AM
Hello robojeff,
The LabVIEW help documentation includes a number of references to creating and wiring SubVIs. This page seems to be closest to what you are trying to do. It details how to connect controls and indicators to the connector pane. For more information, try clicking some of the links in the help documentation until you can find what you are looking for.
Basically, in your subVI, click on the upper left corner of the connector pane (Note that the convention in LabVIEW is to use the upper left for inputs, the lower left for error in, the upper right for outputs, and the lower right for error out). Your mouse will change to the wiring tool. Click on the Resource control on the front panel. The connector pane corner you selected will change colors to match the data type selected. Repeat this process for your controls and indicators, including Error In and Error Out.
In this way, by wiring into the appropriate location on the block diagram you will pass the VISA reference in to your subVI to do with as you please. Hope this helps!