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.