LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put 2 waveforms with different time stamps on a chart

Solved!
Go to solution

Hi,

I am trying to put 2 waveforms with different timestamps on the same chart.

 

I am able to do this if I post my data to my chart one time.

When I write to my chart more than one time, the new data overwrites the old data, instead of concatenating to the old data.

 

See the attached vi for what I am trying to do.

Can anyone suggest how to do this correctly?

 

Thanks.

 

- Matt

0 Kudos
Message 1 of 3
(2,303 Views)
Solution
Accepted by Matt3581321

It's working.  The problem is your data.  Put a longer wait statement in the for loop and watch.

 

You are creating 1/10 second of data in each Simulated waveform.  You have a 33 millisecond wait between your 2 simulations.  The For loop is going to run super fast with only this 33 msec wait which is less than 1/10th second.  So of course some data is going to overwrite old data.

 

Change your Simulations to "Simulate Acquisition Timing" rather than "Run as Fast as Possible"  That will slow down the loop and make it more realistic timing.

Message 2 of 3
(2,279 Views)

That solved it.

Thanks!

0 Kudos
Message 3 of 3
(2,215 Views)