03-03-2014 02:57 AM
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
Solved! Go to Solution.
03-03-2014 03:21 AM
There is an example included with LabVIEW called 1D Interpolation. If you check that out I think it does what you are after.
03-03-2014 03:29 AM
Thanks!!
I think that is indeed the right way to do it!
Regards,
Thijs
03-03-2014 03:31 AM
No worries. There are a few other cool interpolation demos included as well. Worth having a look at them all.
Olly
03-03-2014 03:51 AM
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
03-03-2014 04:04 AM
When X1 is the same value as X2 and only Y is different then it should only have 1 value interpolated...
Regards,
Thijs
03-03-2014 04:07 AM
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?
03-03-2014 04:08 AM
Wow!
Thanks!
03-03-2014 04:10 AM
No worries, if only all LabVIEW problems were that simple to solve!!
Olly