From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-26-2020 03:55 PM
Hi
I have four waveforms displayed on the front panel of my main VI. How can I pass and display them on my sub VI when it is called? Is there any way?
Thanks in advance
07-26-2020 09:50 PM
Send the data through the connector panel.
Pass the data to the subVI via a queue.
I would recommend you learn more about LabVIEW from here. How to Learn LV
07-27-2020 07:47 AM
Is it safe to say that you are a relatively new user of LabVIEW? Although "Top-Level VIs" (the one VI that you run to start your program) and "sub-VIs" (which are all the VIs that are called by other VIs) have the same basic Structure, with a Front Panel having Controls and Indicators and a Block Diagram having "graphical code", there is a significant difference during "ordinary execution" in the treatment of the Front Panel (and the Connector Pane):
This being the case, in an ordinary LabVIEW program, you will not be able to see the Front Panel of your sub-VI when you are running your code. Among other reasons, that is why you place Charts and Graphs on the Front Panel of the Top-Level VI. You can pass the data to be displayed to a sub-VI for calculations (for example, to do an FFT) and pass the results back to the Top Level for display (for example, a Waveform input, transform, and a Gain and Phase pair of arrays back out).
Having said that "ordinarily" you cannot display the Front Panel of a sub-VI while the Main VI is running, there are ways around this. You could display the sub-VI in a separate Window (but this requires some more-advanced code). You can also display the Front Panel of the sub-VI is a "sub-Panel" of the Main VI, but this is also more advanced (I learned how/why to do this after about 5 years of LabVIEW work).
Bob Schor