LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to combine 2 VIs.

I have 2 different VIs,one for outputting voltage & another for reading the current and voltage.I want to combine both VIs in such a way that I get the user interface(Front Panel) of both the VIs and can run both the VIs by running just one of them.Is there any way out?
0 Kudos
Message 1 of 5
(2,700 Views)
You can run both vi's in parallel.
See also an example:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000043240000&ECategory=LabVIEW.LabVIEW+General
0 Kudos
Message 2 of 5
(2,700 Views)
Hi,
Now do you want to run both VI's with some sequence,if so put these in a sequence frame and create the fronpanel for the same on a 3rd vi,else if you want to have both independent loops then use seperate while loops and a single control for both,else use vi servers to run the vi's.
hope one of it will solve your problem.
vicky
0 Kudos
Message 3 of 5
(2,700 Views)
I checked the above VI. Well basically what I want to do is run 2 separate VIs to work simultaneously by clicking on just one button and with the user interface of both.They should run simultaneously(no sequencing).Is there any way out to this?I"m attaching my VIs so that you can get a better idea.
Download All
0 Kudos
Message 4 of 5
(2,700 Views)
Hello LABVIEW TECHNICIAN,

I would recommend placing �Voltage Output.vi� as a parallel subVI (free-floating outside the while loop) in �Signal Amplifier.vi�. Set the VI properties of �Voltage Output.vi� to �Show Front Panel When Called� (under �Windows Appearance >> Customize�). When you start �Signal Amplifier.vi�, �Voltage Output.vi� will also start and pop up it�s front panel. When �Voltage Output.vi� is finished executing (it has no while loop, and hence no conditional), you can leave the front panel open, or set it to close by selecting �Close afterwards if originally closed� (under �Windows Appearance >> Customize�).

If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discus
sion above and any additional information that may help, and I�ll be happy to look further into it.

Have a nice day!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 5 of 5
(2,700 Views)