LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

howto update numeric display only few seconds

I receive date over the CAN bus. But you can´t read the numbers in the display because they change very fast. I´ve already disabled "synchronous display".
How can I update the numeric display only every second without loosing some data or running the vi slower? Maybe something like getting the mean value, maybe?

Message Edited by reen on 08-01-2005 03:21 AM

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

You can collect the data in one loop in an array and in a second loop, a (GUI thread) you can display the last value of the array.  The GUI thread timing can be done with a wait statement (1sec) or an event timeout.  There are many other ways to do this but this is the easiest.  You can also average a group of points if the numbers are very noisy.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,882 Views)
how can i extract the last value of an array?
0 Kudos
Message 3 of 4
(2,865 Views)
Get the array length, then that minus one is the index of your last element.  Use Index Array with the length minus one, and you'll have the last element.
0 Kudos
Message 4 of 4
(2,859 Views)