LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have two VIs in a project that I can't get to work as single VI.

 
0 Kudos
Message 1 of 8
(2,875 Views)

Congatulations?

 

What is the  question?


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 8
(2,874 Views)

Hello1 🙂 The immediate goal is to be able to access these two VIs (and any other VIs I have to add) from one front panel. The ultimate goal is to have a sigle front panel interface to implemnt and contol my VI that will take in data (using DAQ device and compact Rio device) to perform signal analysis and caputre quantitiative data in a spreadsheet.

 

I am very new at this. 

0 Kudos
Message 3 of 8
(2,858 Views)
So my questiion is how do I get several VIs to work as 1 using DAQ and cRIO device VIs?
0 Kudos
Message 4 of 8
(2,855 Views)

I think you need to use a subpanel.

Search the Labview examples, and have a look.

0 Kudos
Message 5 of 8
(2,849 Views)

Are you also new to providing information as to what you are doing. You have not provided a single bit of relevant information except your program does not work. That is not adequate. Provide details. The best thing is to attach your main VI and the subVIs.

 

You might want to take a tutorial as calling a subVI from a Main is generally one of the simpler tasks in LabVIEW.

0 Kudos
Message 6 of 8
(2,847 Views)

I will review the subpanel example.

 

I am 1 week into Labview programming. I will take your suggestion and read through the tutorial you suggested. Attached are the following: the main project and the two VIs  I am trying to integrate.

 

 

 

0 Kudos
Message 7 of 8
(2,818 Views)

There are subVIs missing. Assuming that the top level VI is Sensor_GSFC, you made a fundamental mistake. Once you call it, then only way to stop it and return to the main VI is by pressing the stop button on it's front panel. Unless you make the front panel visible, you can't do that. If you eliminate the while loop, you would still only be calling the subVI once since it is outside the while loop.

 

With Sensor_GSFC is a subVI, you've made an even bigger mistake by wiring a False constant to the while loop's termination terminal. The loop can never terminate unless you abort the whole program. Never, ever use the abort button as the normal way to stop a VI.

Message 8 of 8
(2,806 Views)