LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

my case structure values chnged form words to numbers.

I have a case structure and the values changed to numbers, also i am not sure why it is not cycling through? any help would be appreciated.


0 Kudos
Message 1 of 4
(2,769 Views)
I think that some of the constant ordering from the case statement got confused.

I have attached a vi that I think does what you intended.

To me it looks as though the code will be hard to maintain though and at first sight it would be easier to increment the value by adding one in the while loop. I suspect though that there will be more going on here than in this revision. Perhaps you could consider a different approach as maintaining so many case structures could well be an issue.

Hope this is what you needed.
Message 2 of 4
(2,748 Views)
thanks for the help, I was hoping to use an enum indicator to display what case it was in on the fron panel but the values have changed to numbers. any ideas?
0 Kudos
Message 3 of 4
(2,734 Views)
You have too many cases (167) That is a number you can't maintain.
The reason you get a numeric as datatype and not an enum is because you should change the enum into a type def control.
To do this right click the instance left of the while loop->Create control. On the control on the front panel right click->advanced->Custimize control and set the control to type-def (see attachment).

Then save this control, and use this everywhere.

But first limit you cases, or use a plain string to explain the state...

Ton

Message Edited by TonP on 10-16-2006 08:05 AM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(2,720 Views)