03-29-2007 08:09 PM
03-29-2007 09:22 PM - edited 03-29-2007 09:22 PM
Since the USB 6008 has 8 analog inputs, I don't quite understand why you even need a mux.
I gave a solution here for a 16:1 mux. Below is a slightly different version where the first DAQ Assistant is set for Digital Port output. The second DAQ Assistant is an analog one for channel ai0, The for loop autoindexes the results so you have an array of results - each element corresponds to one channel of the mux. I also am not sure why you would need to have 000 to be a reset or no input. With most muxes, this 000 would correspond to channel 1. The way you are doing your logic with 001 being channel 1, then 111 would be channel 7 and what would be the decode for channel 8?
Message Edited by Dennis Knutson on 03-29-2007 08:23 PM
03-30-2007 06:24 AM