Runtime error 1050 using matlab

Asked By 0 points N/A Posted on -
qa-featured

Hello friends

 I'm trying to provide a MATLAB Script Node with a path or string, but I get a run-time error every time.

The screenshot of the error is attached below:

The error reads as:

Error 1050 occurred at LabVIEW: Error occurred while executing script.  Error message from server:???  Error using ==> char.  Complex values cannot be converted to chars.  Possible reason(s): LabVIEW: Error occurred while executing script.

I can run the Fractal example just fine, but I get the same error when I try to Lorenz Diff Eq. Your help is required in this regard. Please help me out to get rid of the problem.

Waiting for your response

Regards

Brian

SHARE
Best Answer by Scott Douglas
Answered By 0 points N/A #149241

Runtime error 1050 using matlab

qa-featured

Hallo Brian,

There are the two fixes that you can try to use to resolve that issue:

  • You can try removing the 7.1.1 maintenance patch.
  • If you still get the issue, you can go ahead and try changing the data type from complex to whatever it should be within the script node.

One of the above should resolve the issue.

Regards,

Nicke

 

Best Answer
Best Answer
Answered By 5 points N/A #149242

Runtime error 1050 using matlab

qa-featured

 

Hi,

This can be occurred when Matlab script node is improperly converted the array from real data to complex data. So you need to add two commands to convert this data.

For example: If you use input as a variable you need to convert input to the char. Input is a complex.

 Output = real ( input );

But this can’t convert complex to real vector. So first you need to convert complex variable to uint8. Then you can convert uint8 to real vector. Example is shown below.

Output = real ( uint8 ( input ) );

Hope you understand this very well. 

Related Questions