10-02-2014 04:52 AM
Hello
I have a strange problem in mathscript node, can u help me?
I just write a simple conditional style in mathscript node, but it dosent work and have attached error! my software has problem?
Best Regarsd
behzad
Solved! Go to Solution.
10-02-2014 09:49 AM
The problem is that your output "out" is undefined, as executed in your script. This might be what you want instead
out = -1; % define default value for out
if in == 7
out = 6;
end
Kevin C.
10-03-2014 11:39 PM
Hi
I really appreciate Kevin for his great help. that was very Helpful to me.
can u help me about new problem in output too? when I set output to zero or one, how can I convert to a boolean number? because output with 0 or 1 , cant connect to a boolean LED.
Best Regards
behzad
10-03-2014 11:53 PM - edited 10-03-2014 11:55 PM
use a !=0 before wiring to the led.
(Nothing of what you are doing requires the complications of the mathscript node. Why don't you just use plain LabVIEW instead?)
10-04-2014 02:52 AM
Thank u altenbach.
actually I have a Complex Matlab code, that I just try to seperate code to small parts to Understand that and Easily transform to labview code. Integrated form is some difficult to debug.
Best Regards