06-09-2010 06:57 PM
I want to connect two subvi, one is a serial port setup and the other is serial control, I use a third subvi, connect.vi, to connect two visa reference name together, but I got error" You have connected an inout of subvi to an input of subvil".
However, if I define a visa reference name in the connect.vi and connect to serial control, no complain.
What did I dio wrong? Please see the attached vi file.
Thanks
06-09-2010 08:31 PM
Well, of course you have no error when you connect the constant. That wire between the two VIs needs a source. If you ha a VISA Resource out from sbVI 1, then you could wire that to the resource input of subVI 2. That's basic dataflow - connect a data source to a data sink.
06-10-2010 11:47 AM
Here is my problem, I don't want to display any of the controls in connect.vi, all the controls are in setup.vi where my source should be in.
How am I able to serial_ctrl.vi without showing all of those controls in the main vi(connect.vi)?
06-10-2010 11:51 AM
06-10-2010 12:18 PM
cguan wrote:
In other word. how do I change all the controls in setup.vi to output?
You would have to change the control to an indicator, each one individually. Right click on the control and select Change to Indicator.
06-10-2010 01:34 PM
06-10-2010 04:09 PM
I can add indicators for each of the controls and the hide them from the front panels, that work-around can solve the problem.
Actually, what I really want to create a wizard to run setup.vi first, then click a next button to goto another dialog to run serial vi.
Any examples?
Thanks
06-10-2010 04:20 PM