04-04-2014 05:29 AM
Hello I am new to labview. My subvi has a progress bar (Indicator) and i want it to be also displayed in my Main VI. Is there any process to do this.
I am very new to lab view so step by step procedures are appreciated.
Thank you in advance.
04-04-2014 08:29 AM - edited 04-04-2014 08:30 AM
Promice,
I have put together an example for you. Control references work well in this situation, but there are many ways of communicating between running VI's, dont misuse control references by passing large ammounts of data. This is what Queues, Notifiers, User Events andDVR's (to name a few) are for. I think a progress bar is a great use case of control references.
Michael.
04-07-2014 12:11 AM
Hi Promice,
the easiest way to pass data in and out of a (sub)-VI is using the connector pane.
When you create a (sub)-VI, you can choose a pattern and select which control or indicator (frontpanel elements) belongs to which terminal.
The way Michael has supposed is more advanced an a very common way to change values of frontpanel elements of a main VI.
There is no wrong way, it depends on the application. So thanks to Michael.
For the first steps, I would suggest using the connector panel.
I've attached a modified example.
Kind Regards,
Philipp K.
Applications Engineer | NI Germany
04-07-2014 01:56 PM
04-07-2014 02:59 PM
04-07-2014 03:05 PM
04-07-2014 03:22 PM
04-07-2014 03:26 PM
04-07-2014 03:27 PM
04-07-2014 03:41 PM