Discussion:
Case structure: selector values have wrong type
(too old to reply)
Darren
2006-01-17 17:40:57 UTC
Permalink
You should probably also attach the typedef file for the enum controlling the states of the Case Structure.  Also, you should tell us what exactly you're doing to cause the error condition.  Are you ctrl-dragging the case structure to make a copy of it, then attempting to wire the same enum into its selector? 
-D
tst
2006-01-17 19:40:42 UTC
Permalink
Just to throw something else in -
I don't have the SDTK, but I remember a thread from a few months back about it using Xnodes, which also allowed it to lock the code so that you can only modify it using the SDTK.
Ben
2006-01-19 01:41:06 UTC
Permalink
It is a lot easier to answer these questions after someone else has asked all of the questions.
I have, use, and love the SDE (State Digram Editor).
I have also attempted to hack it a bit and realized early on that playing with the enum used to drive the resulting SD (State Diagram) was a bad idea. I seem to remember that if you copied off the enum constant and attempted to use it in a comparison that would throw either an insane object error or crash LV, I forget which. :smileysurprised:
The bottom line is don't play with the enums and case structures from the SDE. There are better ways to create and edit enums and cases. :smileywink:
Just use the SDE for what it is intended (writing complex algorithms in a self documenting graphic over-view).
But...
It looks like you just found that out. :smileysad:
Ben
Message Edited by Ben on 01-18-2006 07:13 PM

Continue reading on narkive:
Loading...