LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"Undeclared identifier 'total1'...Expression invalid".

Got this message after compiling: "Undeclared identifier 'total1'...Expression invalid".  AFter acknowledging, was directed to a watch expression.
 
At one time the variable 'total1' was used, but has since been globally replaced after unsuccessfully trying to eliminate message.    The var 'total1' no longer exists and I rebooted the PC, but the message still pops up.  My program appears to run just fine, but  -- how do I get rid of this annoying phantom message?
0 Kudos
Message 1 of 2
(3,973 Views)
Chris -

I think if you go to the watch window and delete any expression referring to the total1 variable it will eliminate the error message.

I think the issue is that the watch window does not automatically clean up - if you enter an expression there, it's there forever until you manually remove it.

This can be annoying, I agree with you.  I'm curious if NI could come up with some better behavior for the watch window.

Menchar
0 Kudos
Message 2 of 2
(3,963 Views)