LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronisation with Timer

Hi,
I use UDP protocole to communicate with an external machine. I have to send to this machine a bloc every 10 ms. To do this, I use a Timer with a function callback. My problem, I have now 5 panels and I find not practical to make a Timer for each Panel.
How can communicate with an external machine using a defined interval e.g. 10 ms?

Tanks for your answers!

Alex
0 Kudos
Message 1 of 4
(3,146 Views)
HI,

maybe try to use the asynchronous timer. It's a timer that is running inside a thread. Look at the sample "asyncdem.prj" : samples\toolbox\asyndem.prj.
Message 2 of 4
(3,146 Views)
Hello,
You do not need to add a timer to each panel. You only need to add one timer to one of the panels, and create a callback for it. Inside the callback, you can interact with any panels, even the ones that you did not place the timer on.

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,146 Views)
Thank you Pierre. It works...
Alex
0 Kudos
Message 4 of 4
(3,146 Views)