From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Output of B-Spline Curve Fitting for defined step of X

I want to make a .VI in which I input data x and y for curve fitting as control points and at the output, I take data x and y for my range. For example 

 

My Control Points 

x = [0, 0.25,,0.5, 0.75, 1];

y = [0, 0.707, 1, 0.707, 0, -0.707, -1, -0.707, 0];

 

and I want series of output for my 'dx' starting from 0 with an incremetn 0.001 to 1. 

 

Please, help. Thanks. 

0 Kudos
Message 1 of 4
(5,633 Views)

This seems like a general LabVIEW question. Is there a reason you are posting it in the Mathscript forum? You don't need Mathscript for this!

 

(Unless you require a Mathscript solution, please ask the moderator to move this thread to the LabVIEW forum.)

0 Kudos
Message 2 of 4
(5,628 Views)

Yes, there is a solid reason for that. LabVIEW mathematics has fitting VIs in itsfunctions which B-Spline curve fitting. It is taking simple my X and Y but it cannot take my range of dx. Please see this attachment.

 

0 Kudos
Message 3 of 4
(5,626 Views)

 


@Bakar wrote:

Yes, there is a solid reason for that.  


What is "that"? I still don't see any solid reason, because your VI does not contain any Mathscript. Please explain!

 

When attaching a VI, please load the controls with some typical default data.

(enter values, make current values default, save under a new name and attach).

Also, please don't maximize the diagram and front panel to the screen, that's very annoying on large displays.


@Bakar wrote:

It is taking simple my X and Y but it cannot take my range of dx. 


Please tell us what you mean by "dx". Nothing is labeled with this term.

0 Kudos
Message 4 of 4
(5,622 Views)