Hello
I have the problem that the attached vi hang it up when I let it run as executable. (LAbview 😎 There is no error message to see and when I let it run as source code (vi) everything is working well. What could be the failure?
Matlab script
%* Initialisation not used for LabView
LabView ='';
%LabView = 'DISABLE'; %;File runs standalone in Matlab
if strcmp(LabView,'DISABLE')
Ts = 2000;
ki = 0.00025;
ki = 0.051
kd = 1/(4 * ki)
kd = 127;
kd = 0.5;
end
% Start of LabView program
Ss = 1/Ts;
ti = Ss / ki;
td = kd * Ss;
complex_value = false
if ( 4*td < ti )
complex_value = true;
tb = (ti/2* (1 + sqrt(1- 4*td/ti)))
ta = (ti/2* (1 - sqrt(1- 4*td/ti)))
if (ta ~= 0)
fa = 1/ ta /2/pi;
else
fa = 99;
end
if (tb ~= 0)
fb = 1/ tb /2/pi;
else
fb = 99
end
else
fb = 0;
fa = 0;
end