LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What's the fastest way to stream data from one front panel to another?

Solved!
Go to solution

I'm writing a LabVIEW application that will use two monitors of different sizes on the same computer. I must stream four channels of 100 Hz data from a main VI to its front panel and to a second front panel on a different monitor.

 

My options:

 

1. The easiest way would be to call the second front panel as a subVI, but I don't like that because as a subVI the user could not click buttons or have any input.

2. Another way would be to use a LabVIEW queue to pass data from the main VI to the subVI; that way both panels could have their own UI loop.

3. Is there a better way?

0 Kudos
Message 1 of 7
(3,037 Views)

You could configure the second monitor to duplicate the display. Now you only need a single LabVIEW front panel. 😉

0 Kudos
Message 2 of 7
(3,021 Views)

I forgot to say I need different data on the two monitors. Otherwise that duplicate display would be ideal.

0 Kudos
Message 3 of 7
(3,011 Views)
Solution
Accepted by topic author bmihura

It kind of depends on your data, but I would recommend queues or user events to send your data over to the other VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,001 Views)

Thanks, I was thinking queues too. They will be sending waveforms to charts.

0 Kudos
Message 5 of 7
(2,996 Views)

@bmihura wrote:

Thanks, I was thinking queues too. They will be sending waveforms to charts.


Charts?  Or graphs?  Charts keep a history while graphs only show the latest waveform it was given.  If you are using graphs, then use notifiers.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(2,993 Views)

Charts, that way I only have to transfer the latest data from the main VI to the subVI. If I used graphs I would have to send the entire visible display each time.

0 Kudos
Message 7 of 7
(2,988 Views)