LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

edit of connector

I'm currently trying to write a sub-vi that takes as inputs, two comm port identifiers (COM1, COM2).  It will configure two VISA serilal ports based on some fairly static values (baud, data, etc).  I would like it to then output two "VISA Configure Serial Port" references.  With these references, I plan (in the VI containing the sub VI) to write to one comm port and read from the other.  What I'm having problems with is adding to the connector pane the two VISA serial port references.  I'm not sure how to make the VISA Configure Serial Ports accessable/visible on the front panel so as to add them to the Connector pane outputs.
0 Kudos
Message 1 of 4
(2,743 Views)
I think the attached should be what you're looking for.
Message 2 of 4
(2,742 Views)
In general, are you supposed to use references for inputs when in a subVI
0 Kudos
Message 3 of 4
(2,728 Views)
I don't understand what you are asking. The VI you posted has the VISA Resource names wired to the connector pane. You also have the error in/error out wired. If you want to control the com port settings from a main VI, you would also have to wire the baud rate, data bits, etc. to the connector pane as well. Since the connector pane you have doesn't have enough connections, you can simply choose another pattern that does. If you want to return the VISA Resources from this subVI, then you would create indicators for each and wire those to the connector pane. Nothing in the subVI you have posted has anything to do with references.
0 Kudos
Message 4 of 4
(2,711 Views)