LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about event structure and subVI.

Hello 2 all ! The attached vi contains my program wich intends do to the following things: Communicate over rs232 an array of boolean, constructed using boolean controls,receive that array and translate it under digital format. Everything works fine, except for the following thing: I would like that when i press one of those boolean controls, a pop-up window would appear containing a digital graph of the transmitted array. To create the pop-up window, i've used the "Reetrant Panels.llb" wich is provided with my LabView 8.2. I am currently trying to achieve this behavior through a "event structure". The subVI, named "clone", contains an indicator( digital graph) and a control. How can i get the received digital data, to be displayed the graph in the pop-up window ? Am i on the right track ? What do i need to do to get it working correctly? Any input would be greatly appreciated ! Thank you ! P.S.: The library attached, contains the "event structure" based version and the "case" based version of my vi. Message Edited by Andoro on 07-30-2008 10:02 AM

Message Edited by Andoro on 07-30-2008 10:03 AM
Message 1 of 6
(3,205 Views)
Hi Andoro,

Great work interfacing with your serial device!  To achieve the second part of your application, I recommend using the Call by Reference Node with your digital data wired to one of the inputs.  Then, use the VI reference to show/hide the front panel of the pop-up VI using methods/properties.  Refer to the Main.vi within the attached library for a visual explanation.
Message 2 of 6
(3,152 Views)
Excelent reply ! Thank you very much ! It was exactly what i was loking for ! 😉
Message 3 of 6
(3,138 Views)
Interesting technique in the "Display.vi". I've never seen the use of a while loop in such a manner.
Message 4 of 6
(3,135 Views)
There really should be a small wait statement inside the loop of the Display VI so that the processor doesn't run 100% while the loop spins continuously doing nothing.Smiley Wink
Message 5 of 6
(3,101 Views)
Thanks for appreciating my example Andoro, and good catch, Ravens Fan! 
Message 6 of 6
(3,066 Views)