04-11-2009 06:16 PM
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;
Solved! Go to Solution.
04-13-2009 11:44 AM
I think your error may be that your second if statement is capitalized. Try replacing "If" with "if".
Kevin C.
National Instruments
04-13-2009 11:50 PM
Thanks. That solved it!