LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the data rate of a digital write to a port on a PCI-6509

I am using a PCI-6509 to write digital words to a custom digital board. I can generate the proper patterns with the 6509 but the resulting pulse rates are very high (150+ khz) which is very noisy. I know the board cannot have its clock controlled. Is there a simple way to adjust the output rate? I am generating a 1D array and writing this to the device with the NI-DAQmx commands. About all I could come up with is interleaving this array multiple times to stretch the resulting pulse. Anything more elegant, as this seems pretty brute force?

Thanks,

Tom
0 Kudos
Message 1 of 2
(2,350 Views)
Hello Tom,

When doing software-timed updates, you can use a delay function in your loop which is doing the DAQmx Write. Increasing this delay should increase the delay between every sample that is written. Because this is software-timed, it is not deterministic so the time between the samples being output might be greater than what you are actually specifying the delay. However, this is not really a disadvantage compared to the current method you are using (duplicating array values to stretch the pulse) because it is also software-timed. I hope this helps!
Eric
DE For Life!
0 Kudos
Message 2 of 2
(2,335 Views)