RB_Impact
2005-08-01 18:40:53 UTC
I've been having a problem with Matlab script nodes...
After upgrading LV 7.1 to 7.1.1 and performing the mass compile per the maintenance release instructions, all data passed to Matlab scripts are received by Matlab (v6.5) as complex arrays. This has been causing errors in many VI's that worked fine before the upgrade. An example of which is the "MATLAB Script - Lorenz Diff Eq.vi" example. This VI now returns the following error:"Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Error using ==> charComplex values cannot be converted to chars."
The script input, s, though defined as a real vector is received by Matlab as a complex array thus causing the first line of the script (pa=char(s)) to error out. Prior to the upgrade this worked without error and I could pass any data type I wanted to Matlab (including real and string).
Has anybody else experienced this problem? Are there any solutions other than removing the maintenance pack or converting each input from complex to real in the script?
Thanks - Ryan
After upgrading LV 7.1 to 7.1.1 and performing the mass compile per the maintenance release instructions, all data passed to Matlab scripts are received by Matlab (v6.5) as complex arrays. This has been causing errors in many VI's that worked fine before the upgrade. An example of which is the "MATLAB Script - Lorenz Diff Eq.vi" example. This VI now returns the following error:"Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Error using ==> charComplex values cannot be converted to chars."
The script input, s, though defined as a real vector is received by Matlab as a complex array thus causing the first line of the script (pa=char(s)) to error out. Prior to the upgrade this worked without error and I could pass any data type I wanted to Matlab (including real and string).
Has anybody else experienced this problem? Are there any solutions other than removing the maintenance pack or converting each input from complex to real in the script?
Thanks - Ryan