LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spline interpolation and alternative interpolation

Hi Folks:

I don't know if the last post made it so I am resubmitting.

The attached code with test.vi as the main VI shows spline interpolation of an irregularly-spaced 1d array. In sparsely-populated data areas, unwanted peaks and/or valleys result that do not follow the form of the original data. Short of doing curve fitting (which has its own problems), is there a modification or variation of spline interpolation that might truly follow the form of the original data?

Thanks,

Don
0 Kudos
Message 1 of 12
(4,583 Views)
The message board does not seem to want to let me post the LLB so I would like to email it to those interested in this post....Don
0 Kudos
Message 2 of 12
(4,576 Views)
Looks like the attachment made it this last time.....Don
0 Kudos
Message 3 of 12
(4,580 Views)
Hello DonRoth,

The behavior we are seeing with the Spline Interpolation is intrinsic of the operation and therefore expected when we have sparsely populated areas of data.

While LabVIEW currently does not have other types of spline interpolations, it can call external code to perform the operation. A search of Google will probably yield publicly available implementations of cubic or B-Splines that may be more appropriate in this application.

Please let me know if you have any more questions about this.

Regards,

Matt F
0 Kudos
Message 4 of 12
(4,506 Views)
I don't know the answer to the problem asked, but I have found a different problem using the VIs that show the spline problem (see the second post in the link below). The input graph on test.vi is totally messed up. The data is obviously stored correctly as the VI runs, but the front panel control is not at all right. There is no grid and there is no data. In fact, there is no data display area. If I grab the right or left edges, it immediately extends them off the screen. It is weird.

I just updated to LabVIEW 7.1.1 and I was wondering if that was the problem, but a co-worker opened it in 7.1 and he saw the same thing.

Anyone know what happened to this graph? Is this a bug of some sort?

Thanks,
Bob Young
0 Kudos
Message 5 of 12
(4,489 Views)
Here is what it looks like when I open it (looks fine)...Don
0 Kudos
Message 6 of 12
(4,470 Views)
Again seem to be having trouble posting attachments. Trying again right now....Don
0 Kudos
Message 7 of 12
(4,469 Views)
I beleive thre was an issue with attaching a doc and then doing a spell check.

Check that your attachment is correct just before you hit "submt Post".

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 12
(4,380 Views)

@BOB Y. wrote:
I don't know the answer to the problem asked, but I have found a different problem using the VIs that show the spline problem (see the second post in the link below). The input graph on test.vi is totally messed up. The data is obviously stored correctly as the VI runs, but the front panel control is not at all right. There is no grid and there is no data. In fact, there is no data display area. If I grab the right or left edges, it immediately extends them off the screen. It is weird.



I saw the same behavior on my system and was able to format it properly by right clicking on the graph and selecting Advanced >> Reset Scale Layout. Attached below is the VI with the proper formatting.

I do not know why this is occurring and it appears to be an isolated case. Please let me know if you are able to reproduce this behavior.

Regards,

Matt F
0 Kudos
Message 9 of 12
(4,322 Views)

Hi Matt,

We are observing similar problem and I wanted to know if things have improved since your post.

What we observe is that if the points are spaced equidistant, the spline comes OK. In other cases there is distortion.

Thanks,

Gurdas

Gurdas Sandhu, Ph.D.
ORISE Research Fellow at US EPA
0 Kudos
Message 10 of 12
(4,102 Views)