LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

mathscript syntax question

Solved!
Go to solution

Can any tell me why this does not compile.  I get a red X on the last line, and the variable LampV is shown in red, and is an output.

I seem to have a problem using multiple conditional statements in one script. 

Deleting the last conditional statement removes the error.  The error refers to the last line and says "Line 14, column 1: expecting EOF, found 'end'

 

Thanks

 

if (RadLampV > IrrLampV)
Bench = 'Radiance' ;
CradleT = RadCradT;
LampV = IrrLampV;
LampT = IrrLampT;
else
LampV= RadLampV;
CradleT = RadCradT;
LampT = IrrLampT;
Bench = 'O_Irradiance';
end;
If LampV < 0.1
Bench = 'unknown';
end;

0 Kudos
Message 1 of 3
(6,862 Views)
Solution
Accepted by topic author rockybooth

I think your error may be that your second if statement is capitalized. Try replacing "If" with "if".

 

Kevin C.

National Instruments

Message 2 of 3
(6,849 Views)

ThanksThat solved it!

 

0 Kudos
Message 3 of 3
(6,837 Views)