ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function Node

Hey,

I am trying to use the Call Library Function Node in LABVIEW and I am having some difficulties with understanding whether I configured it correctly. So I generated a C code from MATLAB for a regression model that I made in MATLAB. Since that regression model is an ensemble model(non-interpretable), I decided to use Call Library Function Node. Now when I used it and did tests on my setup, I noticed that the function outputs random values for each test that I made and therefore the results that I get are not valid. Do I need to initialize the model before running the tests, or is it that CLFN does not support ensemble models like LSBoost (MATLAB)? I checked the output values in MATLAB and they should be consistent, however in LABVIEW that is not the case.

Download All
0 Kudos
Message 1 of 3
(498 Views)

And what is the C header prototype of that function?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(457 Views)

Hey Rolf,

 

 

Thanks for a quick reply. This is the prototype function:


extern double predictEnsembleC(double Br1, double dB);

0 Kudos
Message 3 of 3
(452 Views)