LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent graph or gauge from updating when no CAN data is received

I am creating a program to decode CAN messages and display relevant information on screen in gauges, graphs, etc. The main program is a while loop that on each executing will check for new CAN messages. I have been forced to put each graph and gauge indicator in its own case structure, because if the loop runs, and the particular message that contains a corresponding value is not received, the graph or gauge will update anyway with a value of 0.

 

Wondering if there is a right way to do this that I am missing.

 

Thanks.

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

Can you provide the VI or a snippet so we can see the code?

It would be helpful for anyone trying to provide useful feedback.

LabVIEW 5.0 seems so long ago...
0 Kudos
Message 2 of 4
(2,562 Views)

Sure. Here is a snippet.

 

CAN graph display.png

Message Edited by dave6k on 04-30-2010 01:36 PM
0 Kudos
Message 3 of 4
(2,547 Views)
So the read function reads all values even though they're not all necessarily valid?  If that's the case, I'm not sure you have many options to change your program.  You will have to check the validity of each value before deciding to display it to the indicator which is what it sounds like you're doing now.
Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,518 Views)