05-18-2009 11:20 AM
I have a switch with two cases: "UpdateComplete" and "default".
For some reason, the "UpdateComplete" case is not testing true. I've tried capturing the input to the switch and replacing the case text with it, but that didn't work. what could be wrong?
05-18-2009 11:26 AM - edited 05-18-2009 11:29 AM
Not enough info. Post a vi or picture of what you're talking about and we can begin to have an idea what you're issue is.
Try probing the line coming into the structure to see what it's actually reading.
05-18-2009 07:15 PM
eearle wrote:I have a switch with two cases: "UpdateComplete" and "default".
I guess by "switch" you mean a case structure. Correct?
eearle wrote:For some reason, the "UpdateComplete" case is not testing true. I've tried capturing the input to the switch and replacing the case text with it, but that didn't work. what could be wrong?
Check for non-printable characters. Check upper/lower case, etc. Does the input string have the double-quotes or not?
Place an indicator on the string, right before the case structure. Run the VI so the new indicator contains what you think is "UpdateComplete". Right-click the indicator and "change to constant". Delete the old source for this wire. If you want, delete everything except the case structure and the new diagram constant. Save the VI under a new name and attach here.
05-19-2009 06:58 PM
05-19-2009 10:55 PM