09-10-2007 09:23 AM
09-11-2007 04:26 AM
Hi there,
You have set up the output to be written in port format (specifically U32) This means that if you were to write a single U32 to the write function it will populate all of the 32 lines in that port with the appropriate value in binary (line0 = 1, line1 = 2, line2 = 4 etc).
You need to either, set up to write in line format, or do a little more bit bashing.
Firstly write all the arrays to be U32's instead of U8's.
Then instead of using the build array, use an OR function. (Not forgetting to multiply the line1 values by the value 2^1)
Finally, because I am assuming you won't use more than 32 lines, change the DAQmx write function to write to a single channel (32 lines in port format are a single channel) multiple samples output.
Here is a screen shot.
Hope this helps
AdamB