LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create waveform from a set of points with differtent time intervals

Hello,
 
I would like to create a waveform from a set of points like this
Time           Data
0                 0
0,5              1
0,6              2
1                 1
2                 0
5                 1
.....
 
The problem is that the time interval between each points are not the same.
The only idea I found was to create a waveform for each doublet of points with the same rate (100ms) and than to append them together.
Does anybody have a better idea?
 
Regards,
Risotto.
 
0 Kudos
Message 1 of 7
(3,668 Views)
Risotto,
 
XY charts are for such kind of waveform display.
 
got to Find Examples in LabVIEW and you will find a vi called xy graph. vi.
 
just take on array of time( x axis), an an array of data(y axis), bundle them and feed tem to xy graph
 
this should be of help to you.
 
0 Kudos
Message 2 of 7
(3,663 Views)
see attached pic
0 Kudos
Message 3 of 7
(3,661 Views)

Hello,

Yes, this is good. But how can I create with this curve a waveform with a rate of 1Hz for example?

Regards,
Risotto

0 Kudos
Message 4 of 7
(3,660 Views)

sorry Risotto, i misintepreted your query!

i am trying to come up with a possible way.

In meanwhile, let's hope others come up with a good approach

0 Kudos
Message 5 of 7
(3,656 Views)

You need to resample your unevenly spaced data.

Try here.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D93356A4E034080020E74861

Message Edited by unclebump on 09-15-2006 10:35 AM

0 Kudos
Message 6 of 7
(3,647 Views)

If you use a Wave From data type, re-sampling is not required.

When using a WF datatype the chart (graph) will pick-up the X value from the t0 of the waveform.

The trick is to just build an array of the single update value and make sure the t0 value is correct.

Re-create this example

and try it for yourself.

Ben

Note: make sure the data you pass is consistant with the data already displayed. If you post a t0 value that is older than what is already displayed, the chart will clear the display and start over.

Message Edited by Ben on 09-15-2006 11:49 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(3,632 Views)