LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab runtime string error

Hello,

 

I'm running labview with a matlab script that runs OK .

after compiling I get

"parameter must be a string" error

 

my runtime engine is 7.1.1

 

any ideas

Yuval

0 Kudos
Message 1 of 7
(4,137 Views)
Where does the script run OK. In Matlab, or in LabVIEW? When does the error come up? When you build the application, or when you run the application? Please provide more details. Seeing the code would help also.
0 Kudos
Message 2 of 7
(4,136 Views)

 

The script runs OK at labview.

the error comes up when I ran the compiled labview application right after the matlab block is done at the "error out" output.

 

The code is not on this computer.

 

The matlab code though is very simple:

cd(vriablename);

 someMatlabFunction;

 

"

 

the CD function is unable to operate since my input is not a string (so does the error say)

 

thanks,

Yuval

 

0 Kudos
Message 3 of 7
(4,129 Views)

 

 

I have just found that this happens only on runtime 7.1.1

 

with 7.1 it works OK

 

Yuval

0 Kudos
Message 4 of 7
(4,121 Views)
What version of Matlab do you have installed on the machine that's running the LabVIEW app?
0 Kudos
Message 5 of 7
(4,109 Views)
matlab 6.5.0.1.180913a release 13
0 Kudos
Message 6 of 7
(4,107 Views)

Hi Yuval,

 

You said that the built application runs with the 7.1 runtime engine but not with the 7.1.1 runtime engine.  What version of LabVIEW was the applications built in?  You have to use the runtime engine from the version of LabVIEW it was built in. 

 

Also,  does the machine that you are trying to run the application on have the same version of MATLAB® as the development machine?

 

 

 

 

MATLAB® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.

 

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 7 of 7
(4,069 Views)