06-15-2008 03:21 PM
06-15-2008 03:53 PM
Your wiring seems to match the NI document but your program sketch does not make any sense. If you are using the DAQ Assistant where you get a Boolean array as a result, when you do the index array, you get a single Boolean out. If you trull need 5 different case statements, just wire them directly. You could also use the Boolean Array to Number function and wire the output of that to a single case statement. If you are using the DAQ Assistant where you get a numeric value out, you would not do any array indexing. You could AND this output but you could also just wire the numeric to a single case statement.
You could provide some more information about what you are detecting and why you might need 5 different case statements. Can only one input be high at a time? Are you trying to detect certain patterns? The values that you using with the AND function are no help with expaining what you need since you have only four bits and are acquiring 5.
06-16-2008 10:43 AM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)