08-12-2016 11:37 PM
Hi There,
I know that there is a lot of information about Queues and Globals for achieving data transmission between VI's. I just think there's a simple way to do what I want but I can't quite seem to figure it out currently.
The current setup has two VIs called from the VI server with their respective Front Panels opened. One of the front panels is literally just a boolean control push button that controls a case structure (so how the VI behaves essentially). I want to combine the two front panels so that this boolean control is in the same front panel as the other one. I could use a global to move all the controls indicators from both VIs into one front panel but feel like that is over the top. I thought there must be something simpler that whenever this push button is pressed it would change case of the other VI.
Thanks
Solved! Go to Solution.
08-12-2016 11:54 PM
Can you attach a simplified version of your code? Thanks.
08-13-2016 12:31 AM
Hi there,
This is basically the VI with which I want to move the Talk and Stop controls from this VI to the others Front Panel.
Hope it helps and let me know if not. Thanks
08-13-2016 02:09 AM
@Treesus wrote:This is basically the VI with which I want to move the Talk and Stop controls from this VI to the others Front Panel.
Hope it helps and let me know if not. Thanks
No this is just a picture. Where are the actual VIs?
08-15-2016 09:18 AM
If you just want to pass the state of those controls (I suspect not) when those VIs are called you can just pass the value as a wire to the sub-VIs.
If you want them to detect changes while running then creat control referernces for them and pass the referenc to the sub-VIs so they can use property node>>>Value to check for the value or Dynamic Event Registration to register for the value changes.
Ben
08-15-2016 10:24 AM
@Treesus wrote:The current setup has two VIs called from the VI server with their respective Front Panels opened. One of the front panels is literally just a boolean control push button that controls a case structure (so how the VI behaves essentially). I want to combine the two front panels so that this boolean control is in the same front panel as the other one. I could use a global to move all the controls indicators from both VIs into one front panel but feel like that is over the top. I thought there must be something simpler that whenever this push button is pressed it would change case of the other VI.
To reiterate my previous comments, you need to give us the full information in order for us to try to solve the problem. You need to attach simplified version of all code (caller, subVIs, etc.)
My advice would be to ...
08-15-2016 11:08 AM
You can connect controls via datasockets.
08-15-2016 12:03 PM
The possibly simplest solution would be to use a subpanel. Just insert your VI with the button into a subpanel on your other GUI VI. Then you don't have to worry about passing the data around and it just looks like it is a single window.
08-15-2016 03:59 PM
Hi all,
Thanks for all the replies. Working through your options now and I believe one should work. I am relatively new to LabVIEW yes so I'll go through those beginner things and for future reference will be able to provide full code samples and more information. Thanks again everyone
08-15-2016 04:20 PM
We were all beginners once. And while this isn't a replacement for a menor, here are some of the free training links we share on the forums:
Here are some free training links if you are interested:
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord