I am asking for help in writing a VI that will monitor three digital input channels using DAQ Assistant in Labview 8.0. I want to use a case structure to execute code, depending on which digital input channel is active. Assume that only one channel will be active at a time. (In some cases, no channel will be active)
The VI (attached) was written just to see if I could read and "separate" each channel. When I set up the DAQ Assistant I added the three virtual channels and tested each channel. Each channel worked. Each one is set up as a virtual channel in MAX.
I closed the DAQ Assitant and ran the VI. I applied a "Hi" (+ 5 volts) dignal to the channels, one at a time. I expected that the top boolean on the front panel) to lite when I applied my "Hi" signal to channel 1. The boolean did not change. I repeated for channel 2, same result. When I applied a "Hi" to channel 3, the top boolean lit up. I expected to bottom one to lite. I'm not that familiar with DAQ Assistant so I'm guessing I'm missing something very basic.
My goal is to take the ouptut of the DAQ Assistant (which is a 1D array of boolean) maniulate it somehow so a case structure can "read" the channel name.
Thanks fokr your help.
Bill
PS When should I use a virtual channel and when should I use the physical channel?