LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Matlab code in LabVIEW

Hello. Im trying to read a Matlab code using Labview but there is a function that labview can't read and produce a syntax error. how can I add that function in labview?

0 Kudos
Message 1 of 6
(2,401 Views)

Hi Goku,

 


@GokuJubilao wrote:

Im trying to read a Matlab code using Labview but there is a function that labview can't read and produce a syntax error. how can I add that function in labview?


How do you "read" Matlab code in LabVIEW?

 

Are you trying to execute Matlab code?

If so: how do you try to execute that code? Mind to attach your code?

(Btw. MathScript is not Matlab…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,371 Views)

yes, Im using Mathscript to run the Matlab code and it can't run the function. There is no other way to run the code?

0 Kudos
Message 3 of 6
(2,366 Views)

Hi Goku,

 


@GokuJubilao wrote:

yes, Im using Mathscript to run the Matlab code and it can't run the function. There is no other way to run the code?


Sure there is a way: use the Matlab script node

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,364 Views)

I think i tried before...Im trying again and there are not errors but the program do not nothing, i tried to run the labview program with the matlab script open in matlab but it doesnt work

0 Kudos
Message 5 of 6
(2,354 Views)

Hi Goku,

 


@GokuJubilao wrote:

I think i tried before...Im trying again and there are not errors but the program do not nothing, i tried to run the labview program with the matlab script open in matlab but it doesnt work


I repeat what I wrote in my first answer:

How do you try to execute that code? Mind to attach your code?

 

And I add the question:

Why do you have that script open in Matlab when you want to execute it in the Matlab script node?

 

You really should have learned by now how to provide neccessary information when you expect help from this forum…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,347 Views)