From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph to actual data

Solved!
Go to solution

Hi,

 

I've made a vi where i can draw with cursors on an XY graph to make a plot through time. Now i want to export the plotted data to an array of samples with a sample frequency of lets say 1000Hz, is there a standard way doing this? I already quantized (is this the right word, i mean rounded to) the data at points of 50ms.

 

In the attachment is an XY graph filled with sample data, but it needs to be converted to more samples... (1000Hz)

 

Best regards,

Thijs Boeree

0 Kudos
Message 1 of 9
(2,518 Views)

There is an example included with LabVIEW called 1D Interpolation. If you check that out I think it does what you are after.

**********************************************************************************************
The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
0 Kudos
Message 2 of 9
(2,510 Views)

Thanks!!

 

I think that is indeed the right way to do it!

Regards,

Thijs

0 Kudos
Message 3 of 9
(2,501 Views)

No worries. There are a few other cool interpolation demos included as well. Worth having a look at them all.

 

Olly

**********************************************************************************************
The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
0 Kudos
Message 4 of 9
(2,497 Views)

Hi Again...

 

It did not work all the way for me... See attachment.

As you can see, it doesn't work when X has to be the same value for a while...

Other ideas?

Regards,

Thijs

0 Kudos
Message 5 of 9
(2,485 Views)

When X1 is the same value as X2 and only Y is different then it should only have 1 value interpolated...

Regards,

Thijs

0 Kudos
Message 6 of 9
(2,476 Views)
Solution
Accepted by topic author ThijsBoeree

The Interpolate 1D.vi has an input to it, "X is monotonic". Create a false constant and wire it to it.

 

Has that solved it?

**********************************************************************************************
The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
0 Kudos
Message 7 of 9
(2,474 Views)

Wow!

Thanks!

0 Kudos
Message 8 of 9
(2,470 Views)

No worries, if only all LabVIEW problems were that simple to solve!!

 

Olly

**********************************************************************************************
The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
0 Kudos
Message 9 of 9
(2,468 Views)