03-09-2015 05:52 PM
In the attached file , I want to to how how to correct the logical and runtime error .. I need the upper enum "s0/s1/s2/s3" to be connected to the lower "s0/s1/s2/s3" .
I want this example to rus as follows .. if session in binary = s2 then s2 outputs 11 so the appended array must have 2 bits for the command "00" and the output from session in binary "11" according to the lower enum
03-09-2015 06:21 PM - edited 03-09-2015 06:21 PM
Something like this?
03-09-2015 06:23 PM - edited 03-09-2015 06:27 PM
yes can you send me the VI itself but but my labview version is 13.0 ? what was the error in my code ?
03-09-2015 06:31 PM - edited 03-09-2015 06:32 PM
@MarinaNashaat wrote:
what was the error in my code ?
Trying to make things way more complicated than they needed to be. Personally, I would do the combining in the integer format and then change into the Boolean array (like in the attached).
03-09-2015 07:09 PM
But I need to do it with case structure and for every input 00/ 01/ 10 /11 will go a specific state s0/s1/s2/s3 and in each state will do something else so how to connect the enum with the case structure ?
03-10-2015 03:11 AM
03-10-2015 05:16 AM
Why must you use a case structure? And why do you need to go through another data type?Does my code not give you the right answer? My point is that you can do the process on the original enum value and simplify things.