LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting 2 traces with different rates/frequencies

How can I specify X position for a value I'm plotting? I'm trying to graph two traces. Both are captured at different rates so if I just put them in the array and then plot a strip chart, graph looks wrong.
0 Kudos
Message 1 of 3
(3,123 Views)
> How can I specify X position for a value I'm plotting? I'm trying to
> graph two traces. Both are captured at different rates so if I just
> put them in the array and then plot a strip chart, graph looks wrong.

I don't remember (Last used 4 years ago) a way to change the scrolling speed of strip charts.
What you can do is:
- use a canvas and ScrollCanvas for very precise positioning
- memorize the data and use PlotWaveForm playing with the Xincrement parameter.

--
Guillaume Dargaud
http://www.gdargaud.net/
"If it's green or wriggles, it's biology.
If it stinks, it's chemistry.
If it doesn't work, it's physics..." - Handy guide to science.
0 Kudos
Message 2 of 3
(3,123 Views)
Hi,

The strip chart does not allow for different plotting speed. Basically every time that you plot a point for one trace you must plot a point for each trace in you chart.

The way I see this, there are 3 workaround: use a graph and maintain the running buffer, extrapolate the data or use 2 separate strip charts. I have created a small example that uses 2 separate charts. There are the same size and they are one on top of the other. The Top one is transparent. There are some issues to fix, but it's a good start.

Let me know if you have any questions on this.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 3
(3,123 Views)