02-09-2011 04:42 PM
HI,
I am trying to write digital waveforms and constants on 14 bits of the port0 [see picture attached] but I always get the error of too small buffer size.
Actually I don't know what numeric value I should wire to the sample clock of the DO instead of 256.
Previously I generated digital waveforms simply autoindexing a for loop's loop index values at the loop's border and I wired this array directly to the DO write and it worked on 8 bits. At that time I put 256 as buffer size because 2^8=256.
Now the situation would be very similar, I want to output digital waveforms on 8 bits and constants on the other 6 bits. 2^14 as buffer size doesn't work. Can somebody please advise how to calculate the correct buffer size.
Thanks,
Krivan
02-15-2011 04:27 AM
Hey Krivan,
What DAQ device are you writing the output of your for loop to? you may find the resulting array is too large to write to the digital output of your device. I would not be able to tell you the max buffer size without knowing what device you are using.
02-15-2011 04:33 AM
Hi Andrew,
this is a PXIe-6358.
Thanks.
02-16-2011 05:44 AM
Hey Krivan,
You can use a property node to edit the size of the buffer much like I have done (see attached image.). For this piece of code you should also have a 1D Boolean array in order to write to the correct channels and also ensure that the line grouping on the create task is set to on channel for each line.