07-06-2018 01:51 PM
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.
Solved! Go to Solution.
07-06-2018 02:23 PM
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
07-06-2018 02:53 PM - edited 07-06-2018 02:59 PM
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.
07-06-2018 02:53 PM - edited 07-06-2018 02:59 PM
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.
07-06-2018 03:45 PM
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
07-09-2018 09:21 AM
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
07-09-2018 03:43 PM
Thank you, I'm new to this language and don't understand all the in's and out's.