# LabVIEW

cancel
Showing results for
Search instead for
Did you mean:

Solved!
Go to solution

## xy graph to actual data

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

Message 1 of 9
(2,725 Views)

## Re: xy graph to actual data

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.
Message 2 of 9
(2,717 Views)

## Re: xy graph to actual data

Thanks!!

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

Regards,

Thijs

Message 3 of 9
(2,708 Views)

## Re: xy graph to actual data

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.
Message 4 of 9
(2,704 Views)

## Re: xy graph to actual data

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

Message 5 of 9
(2,692 Views)

## Re: xy graph to actual data

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

Regards,

Thijs

Message 6 of 9
(2,683 Views)
Solution
Accepted by ThijsBoeree

## Re: xy graph to actual data

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.
Message 7 of 9
(2,681 Views)

Wow!

Thanks!

Message 8 of 9
(2,677 Views)

## Re: xy graph to actual data

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.
Message 9 of 9
(2,675 Views)