LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strip Chart Scrolling Problem

Hi,

 

I'm having an issue with the displayed data on a waveform chart, operating in 'Strip Chart' mode.  When data is being written to empty visual space on the chart, the data is plotted appropriately.  But when data reaches the right-hand side of the chart, causing the chart to scroll, data 'appears' to be stretched/dilated over time.  I'm using a simulated DAQ device so all data being plotted is a sinusoidal, making this easy to observe (it's as if the sine wave suddenly has a lower frequency/longer period).

 

But when I adjust x-scale of the chart (either programitcally or by using the 'hand' pallete tool), the data snaps back to being correct (i.e. all having the smae, original frequency).  Any ideas for causes/fixes?  Thanks.

 

-Joe

0 Kudos
Message 1 of 18
(3,271 Views)

Hi Joe,

 

Could it possibly be to do with your chart history length? As the chart history fills up the display generally slows down and can sometimes cause the data to look a little bit off. You could try increasing/decreasing the chart history length to see if this changes the chart behaviour.

 

Kind Regards,


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

0 Kudos
Message 2 of 18
(3,270 Views)

I adjusted the chart to History=1000, but the issue is still there.  Even with a higher history and displaying 5 minutes of 20 Hz data, it was only using ~2%CPU, so I kind of doubt they are related.

 

Any other ideas?  Thanks.

0 Kudos
Message 3 of 18
(3,266 Views)

Hi Joe,

 

Would it be possible to take a look at your block diagram (VI snippet or upload VI) so that I can get a better understanding of how you are writing your data to the chart?

 

Thanks,


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

0 Kudos
Message 4 of 18
(3,263 Views)

Sure.  There is a DAQ handler that makes AI read calls, and writes 1-D waveforms to a queue:

AI_snippet.png

 

Then a Display Handler reads from the queue. spilts the array of waveforms for display on two separate charts, and divides one waveform into another to create a ratio:

Display_snippet.png

 

Thanks.

 

 

0 Kudos
Message 5 of 18
(3,261 Views)

I confirmed that the same behavior exists for the 'Voltage - Continuous Input.vi' example (when you replace the graph with a chart).  Could this be a new problem?  I've never seen it before.  Thanks.

0 Kudos
Message 6 of 18
(3,252 Views)

Attached is a example VI saved in LV2009.  It reads data from a DAQ, and writes it to a waveform chart.  If you read from simulated DAQ, you will see the result.  You could also just write any other cyclical data.

 

When you run it in LV2009, LV2010 or LV2011 the data is displayed correctly.

 

When you run it LV2012, the displayed data is incorrect (time-dilated) when the chart starts to scroll.

0 Kudos
Message 7 of 18
(3,217 Views)

I can confirm the behavior.

 

See the attached screenshot.

 

0 Kudos
Message 8 of 18
(3,211 Views)

Thanks for validating my sanity!

 

Did you verify normal behavior on a pre-2012 version of LV?

0 Kudos
Message 9 of 18
(3,194 Views)

Yes.  LV 2011 did not do that.

 

Overall, it seems kind of weird, and the VI seems slow to run in both versions.  But I don't know if that is related to the way the NI_DAQmx generates the simulated sine wave and the way it is "sampled" within the VI.  I always thought the simulated signal was either a 1Hz sine wave or a 10.1 Hz sinewave.  But in the VI, the sinewave seems much, much lower frequency.

0 Kudos
Message 10 of 18
(3,191 Views)