LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant array to data

I have seen how to convert from variant to data type.

I am using the Levenberg-Marquardt VI (optimization) to find minimize the input function.  The VI has an input - which is of type 'variant'

What I want to do is take a number of constant parameters (both integer and double) convert them to variant - pass this to the Levenberg-Marquardt LabVIEW VI  to be used for the  function calculating f(x,a). See LevMarCalc.vi

My problems....
 
The function template LevMar1.vit is independant of the LabVIEW Levenberg-Marquardt.vi so what is the process of extracting the data from the template.  Do I use several variant to data functions ?? How will the template know that it is actually being passed an "array" of variants with several pieces of dat inside.

It is probably better to look at the VI LevMarCalc.vi - I want to change - cosa, Jz, Zs and 'Number of dots' parameters - which are currently constants - to come from the 'data' variant control. How do I do this.



Download All
0 Kudos
Message 1 of 2
(2,569 Views)
Hi Sammy
 
Try to rebuild the LevMar1.vit template by using controls instead of constants for the desired parameters (Jz e.t.c.)...
 
After that, you will load the VI dynamically as described on the screenshot.
 
Thanks,
 
KostasB
 
National Instruments UK & IE
0 Kudos
Message 2 of 2
(2,497 Views)