09-24-2008 08:42 PM
I am trying to implement some code which I developed in Matlab in Labview. The code uses functions from the Control and Optimization toolboxes, and looks like it will port easily to Mathscript. I need to parameterize a state-space model of several drugs from several parameter (age, height,weight, gender). I can see how to create an lvclass Patient with a control which uses these four parameters in the private data. I'd like to be able to duplicate the Matlab-style syntax of Patient.Age, etc, by just wiring the Patient object to a Mathscript node. There doesn't seem to be a way to do this without unbundling first. This seems inelegant, as it requires me to hard-code the names of the private data fields in the mathscript node interface. Is there a simple way to define lvclass data in a class VI's mathscript node?
Matlab 2008a, Labview 8.6, MacPro OSX 10.5.
09-25-2008 08:40 AM
09-25-2008 11:07 AM
Thanks. I would suggest that the more the implementation resembles Matlab cell arrays, the easier it will be to adapt code.