LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer size to what value? Digital Output

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

0 Kudos
Message 1 of 4
(2,908 Views)

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.

Regards

Andrew George @ NI UK
0 Kudos
Message 2 of 4
(2,867 Views)

Hi Andrew,

 

this is a PXIe-6358.

 

Thanks.

0 Kudos
Message 3 of 4
(2,864 Views)

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.

 

Regards

Andrew George @ NI UK
0 Kudos
Message 4 of 4
(2,848 Views)