LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI not getting data?

Solved!
Go to solution

Hello, 

 

I am trying to get these subVIs to automatically open after the main vi finishes, but I noticed that the subVIs are not even collecting any data, only the main. Please help.

 

0 Kudos
Message 1 of 7
(3,393 Views)

I only looked at LPF Popup.  The wires coming into the Case Statement include 5 Dbls and one Cluster of 2 Arrays.  The LPF Call VI has no code at all, but has 5 Dbl indicators and one XY graph.  If you place it in the Calling VI, all the wires instantly "break", as you cannot wire into an Indicator, only into a Control.  

 

Time to go back to the introductory tutorial on LabVIEW and review the difference between a Control (an input to a VI, diagrammed with the wire coming out of the right side and moving left-to-right) and an Indicator (an output from a VI, diagrammed with the wire coming in on the left side, again moving left-to-right).

 

Bob Schor

0 Kudos
Message 2 of 7
(3,380 Views)

I look at the sub VI and I guess it disconnected, or I gave you the wrong one.

 

Here are the completed ones. The subVIs are only supposed to display information (indicators and xy graph) I am just trying to get it to popup after main VI finishes, but it's not doing anything. 

0 Kudos
Message 3 of 7
(3,369 Views)

I looked at the sub VI and that was not the right one, sorry. 

 

Here are the completed ones, I renamed them. The subVIs are only supposed to display information (indicators and xy graph) I am just trying to get it to popup after main VI finishes, but it's not doing anything. 

Download All
0 Kudos
Message 4 of 7
(3,368 Views)

Sigh.  Why do I bother?  Yes, you replaced the sub-VIs, but your Main VI still calls the old sub-VIs.  Come on, don't you at least test that your code doesn't have lots of broken wires and broken arrows before asking us for help?

 

But to maybe get you to think about how LabVIEW works and what it is, go back and read (and really, go back and read) the section(s) of the tutorials on creating sub-VIs.  Then answer the following question -- when an "ordinary" sub-VI, such as your Filter VIs, execute, what "shows" while they are executing?

 

The answer to this question gets directly to what I think is bothering you.  You need to figure this out for yourself by learning just a little bit more LabVIEW ...

 

Bob Schor

Message 5 of 7
(3,343 Views)
Solution
Accepted by Jibica

Debugging Tools in LabVIEW

 

I looked through your code and you definitely have some logic errors that make the VI's only pop up when everything works perfectly.  If there is any error they don't pop up.  That is most likely what it is as I wired true constant's into your case structures and the sub VI's popped up.  

 

The code is working fine it is just the logic that is implemented that is causing the VI's to not perform like you want.

 

-Bear

Regards,

Ben Johnson
ʕง•ᴥ•ʔง
0 Kudos
Message 6 of 7
(3,283 Views)

Thank you, I'm new to this language and don't understand all the in's and out's.  

0 Kudos
Message 7 of 7
(3,250 Views)