LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customized Control and Case Bug

I've run into a problem writing some code, I'm getting a fatal error that says my Case is not compatible with my control.  But I can't seem to see anything wrong.  The ZIP file has the same name as the high level VI that is supposed to execute.  See attached ZIP file. This control worked fine with this case, until I made a small change to some code inside one of the cases.  Something broke, but I can't seem to figure out what broke.

0 Kudos
Message 1 of 2
(2,533 Views)

You have a case called "Default" (string!), but your enum does not contain that item. You need to remove the quotes around "Default" so it is recognized as the default case instead. (... or just delete that red string and right-click...make this case the default).

 

 

DeDefault.png

 

 

(Also reading from a global and immediately writing the same back to itself does not seem very useful (default case). Of course you could place the globals outside (before and after) the case structure to simplify the code. If you do that, you would need to wire across in the default case)

Message 2 of 2
(2,522 Views)