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)
Solved! Go to Solution.
There is an example included with LabVIEW called 1D Interpolation. If you check that out I think it does what you are after.
No worries. There are a few other cool interpolation demos included as well. Worth having a look at them all.
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...
When X1 is the same value as X2 and only Y is different then it should only have 1 value interpolated...
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?
No worries, if only all LabVIEW problems were that simple to solve!!