LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting correct system time on waveform chart

Hello,

 

I'm trying to use a waveform chart to plot several lines of data, and I would like to be able to leave this thing running for a long time (8 hours straight) and then go back and scroll through the waveform chart to any particular point in those 8 hours.  But, I can't get the waveform chart to use the right system time information from my computer, it usually starts at 6pm (it's 11am right now)... well, I can get it to work when I feed my data (doubles) to a merge signals and then feed that to the chart, but not when I use an array to cluster instead of a merge signals... I would really like to get this working with array to cluster... or at the least just to understand why it works one way and not the other... i'm including a screen shot.... much thanks 

0 Kudos
Message 1 of 2
(2,675 Views)

Hey Fibo,

 

The main reason for the behavior that you are seeing is the different data types. When you do array to cluster, you just have a cluster of doubles, containing no information other than the value of the doubles. However, when you merge the signals, the output is dynamic data. Dynamic data has bundled into it the current timestamp, dt, and value of the double. Hopefully this explains the two a little more for you.

 

Another problem that I can see you running into is chart history length. Basically, when using a waveform chart, you will eventually run out of buffer size via the chart history length. This can be changed by right clicking the chart and increasing the value of the length.

Chris Van Horn
Applications Engineer
0 Kudos
Message 2 of 2
(2,628 Views)