04-11-2007 03:38 PM
04-12-2007 11:20 AM
Hi Wes_OH,
Does your main VI have a control that is used to pass this information into the
sub VI. Maybe you need to add a control on your Main VI front panel that
will allow you to control the serial port menu selection from the sub VI.
Please let me know if you have any further questions or if I have misunderstood
your question. If the latter is the case, please either clarify the
question, or post a simple example that illustrates the issue.
Best of luck on your application, and have a great day!!
04-12-2007 03:44 PM
I'm using a copy of the Basic Serial Write VI.
My GUI calls subVI which is run in popup dialog mode.
I create a string from user input and some defaults.
The user selects SEND and the message is sent to Basic Serial Write.
This all works fine if I am using only the host PC and its COM1 port.
When I try to use the serial port of the cFP-2120 controller, I cannot "see" it on the list of ports.
I have created a connector on the Basic Serial Write VI accessing the VISA resource control there.
I have created a VISA resource control on the subVI and connected it to the Basic Serial Write VI.
I have created a connector on the subVI referencing the VISA resource control.
I have created a VISA resource control on the main program GUI and connected it to the subVI.
I still only see COM1 and LPT1.
04-13-2007 01:57 PM
Hi Wes_OH,
Is your application running embedded on the cFP controller? Also, do you
have NI-VISA installed on your cFP-controller?
I hope to hear from you soon.
04-13-2007 02:49 PM
@Wes_OH wrote:
However, when running the main program on the host PC and calling the subVI, even if I change where run in the lower left corner of the VI, it cannot see all the serial ports on the controller.
04-13-2007 02:54 PM