LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending message by button and event structure

Good afternoon. I need help very much. I have a set of buttons. When the button is clicked in the event structure, the main cycle cycle is executed once. But there is one button that is clamped. How to make that at the pressed button - the cycle was carried out continuously?

Here is part of the project.

 

0 Kudos
Message 1 of 4
(2,553 Views)

Do a search for Queued Message Handler.  The general idea is that you use many loops.  One loop should be used for the GUI.  Another loop for your TCP communications.  You can use a queue to send a message from the GUI loop to the TCP loop telling it to start doing its loop.


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 2 of 4
(2,540 Views)

Thanks. Beside how to use the queue to send messages to TCP. I'm beginner in LV

0 Kudos
Message 3 of 4
(2,488 Views)

@teslo wrote:

Thanks. Beside how to use the queue to send messages to TCP. I'm beginner in LV


Like I said before, do a search for Queued Message Handler.  You might also want to look at the Producer/Consumer architecture as well since it is very similar.


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 4
(2,470 Views)