ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

weird matlab script error of boolean condition a=(b>0); [error 1048]

1: a=(b>0); return a 1048 error, and the result of a is wrong.

2: modify the above equation using a if-then clause

if b>0

a=1;

else

a=0;

end

3:  comment (2) away, (1) still return a 1048 error but the result is right.

 

i donot know whether you have experienced the same before, but this error is surely annoyed me and cause a night to debug....

 

the version of matlab and labview is

-------------------------------------------------------------------------------------
MATLAB Version 7.0.4.365 (R14) Service Pack 2
MATLAB License Number: 199834
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 3)
Java VM Version: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
-------------------------------------------------------------------------------------

labview 8.5

 

here are the pics:

1.png


2.png

3.png
0 Kudos
Message 1 of 2
(3,539 Views)