LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do complex engineering calculation in labview.I tried using MATLAB script

Hello,
I am trying to use matlab script node to solve two complex equation.But i get different  errors everytime i run my program.sometimes 1048 sometimes 1050 and sometimes it says LABVIEW could not extract variable from Matlab.I am attaching  my MATLAB script node with this thread.Please Help me out to get rid of this problem.
I am  using LV-8 and MATLAB R-2006a.
0 Kudos
Message 1 of 5
(2,847 Views)
Hi Praween,

not able to look at your vi at the moment, but have you tried to do your calculation with simple LabView functions?
LabView has Complex datatypes and math functions are able to calc with complex numbers...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,845 Views)
Hi Praween,

beside my little MatLab knowledge I tried to replace your formula with equivalent LV code...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(2,842 Views)
Dear GerdW,
Thanks for reply.But there's a bit of misunderstanding of problem from your side.
I meant how to calculate the value of x and y by simultaneously solving the two equation(with given values of t1,t2 and z=100).Thrugh your LV code you are just formulating the two equation,but not giving the value of x and y .To remind you x and y are not controls rather they are indicators.
0 Kudos
Message 4 of 5
(2,827 Views)
Hi Praween,

I just read an explanation of the "solve()" command, but I don't see their correct use in your MatLab structure!?!
Where is the equation to solve? You only give one side of the equation, but the solutions (the parts with "= result") are missing...
Best regards,
GerdW


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