Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6624 only writes one sample in pulse mode

Solved!
Go to solution

Hello all

 

I am trying to write a pulsetrain to the counter output of a PXI-6624, however only the first sample is ever written.

 

My pulsetrain has 50 samples, and with simulated hardware the output "number of samples written per channel" matches that. If I build the application and run the program on the target system it only outputs one sample indefinitely and also "number of samples written per channel" is always 1.

 

I tried adjusting the value for "numSamplesWriten" in "DAQmx Write (Counter 1D Time 1Chan NSamp).vi" to a non-zero value without any influence. The timing is set to 50 samples in continuous sample mode with implicit timing.

 

What am I missing, how do I get the counter to go through the array of samples one by one to output the desired timing series?

 

Thanks in advance,

Raphael

0 Kudos
Message 1 of 3
(3,076 Views)
Solution
Accepted by topic author raphael.wittwer

I think the 6624 is an older model with an NI-TIO timing chip that doesn't support buffered pulse train output.   The best you can do is to change on-the-fly with software timing.

 

Note also that finite pulse trains will occupy a 2nd counter known as the "paired counter".   The pairing is set internally, cannot be changed, and goes like:

0<-->1

2<-->3

4<-->5

6<-->7

 

A newer card like the 6612 can do buffered pulse train output with hardware-level timing, *and* finite pulse trains no longer occupy a 2nd paired counter.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 3
(3,063 Views)

Hello Kevin

thank you for your reply. It really seems it is not possible with this hardware.

Since the hardware is already fixed I will have to think of something else.

Thanks, Raphael

0 Kudos
Message 3 of 3
(2,997 Views)