04-23-2002 08:11 PM
04-23-2002 10:20 PM
04-23-2002 10:37 PM
04-24-2002 01:11 PM
04-18-2007 10:55 AM
04-18-2007 11:05 AM
04-18-2007 11:06 AM
Remove the local variables and wire directly from the port indicators to the build array. That may help.
In addition I would suggest adding a stop boolean control to the front panel rather than wiring a false constant into the while loop conditional terminal. You should not be using the stop sign button (abort) near the run button. There is rarely if ever a reason to use that button.
04-18-2007 12:35 PM
04-18-2007 12:54 PM
04-18-2007 01:03 PM - edited 04-18-2007 01:03 PM
I think I know what the problem is. The DAQ Assistant alwats returns an I32 array. When you convert an I32 number to a Boolean Array, you get a Boolean array with 32 elements. You could click through all of the elements in the result array and you will see that you've appended 3 32 element arrays together. Your true indicators are there. To fix your problem, place a To Unsigned Byte Integer (U8) conversion on the output of the DAQ Assistant. Then you'll just have arrays with 8 elements.
p.s. If you were to use the lower level DAQmx Read function, you wouldn't have to do this. The DAQmx Read gives you the option of returning a U8 array. The DAQ Assistant does not have this flexibility.
Message Edited by Dennis Knutson on 04-18-2007 12:03 PM