LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot legend flicker when in RUN mode

 Hi all,

 

i have written a code in LV to acquire data from 12 sensors and display them. In the waveform chart I tried renaming the legend. When I run the vi, the legend name flickers to module name and channel name. I am attaching a snapshot to give you guys a clear idea.

The vi is also atttached.

 

Any help is appreciated.

 

Regards,

Arihant

Download All
0 Kudos
Message 1 of 2
(2,127 Views)

I think it's flickering because you placed the code that writes the plot labels inside the while loop, so at each iteration you re-write it, just place all that code before the while loop, so that it executes only once before you get into the loop.

And also since you're using waveforms, DAQmx automatically includes metadata with your channels, if you want you have to remove those metadata plot by plot.

 

You can also optimisze a bit the code to write all the plots' names. See attached VI.

 

Hope this helps

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 2
(2,117 Views)