From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Polyfit example

I am new to VC++ and Component works. I am trying to implement
the PolyFit procedure.

My data structures are declared as:

double x[10];
double y[10];
double z[10];
byte order = 4;
double coef[10];
double mse;
My code populates the x and y arrays with data to be fit.

I see that PolyFit requires variants. I believe that the variant
references are holding me up. Could someone provide a simple
example of how I would get my information into the proper format
for a call to PolyFit and how configure that returned data.

Many thanks in advance,
Mark Everly
0 Kudos
Message 1 of 1
(3,205 Views)