Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

configuring a PFI pin as a counter source/gate

Hi,

 

Did you sort ths problem out? I need to do the simular thing.

 

Cheers

0 Kudos
Message 11 of 12
(1,147 Views)

Hi palmnz,

 

What specific question are you asking?  Since you posted to this thread, I'll assume your issue is the same as the original poster's:

 

 


@9845567540 wrote:
I have a NI 6229 M series DAQ. I would like to perform a pulse width measurement using the same. There are two counters (ctr0 and ctr1) in the board. I would like to know if i can configure any PFI pin as a patricular counter's source / gate input??...
 

 

 

Yes, you can certainly do this.  The syntax would of course be different depending on what development environment you are using:

 

 

Routing the source:

  1. LabVIEW: 
    2011-02-14_162326.png
  2. ANSI C:

        DAQmxSetCICtrTimebaseSrc

  3. .NET

        CIChannel.CounterTimebaseSource

Routing the Gate:

  1. LabVIEW
    2011-02-14_162736.png
  2. ANSI C:

        DAQmxSetCIPulseWidthTerm

  3. .NET

        CIChannel.PulseWidthTerminal


If your question is different from the original poster's, please post to a new thread with more specific information about what you need to do.  Note that if you're not configuring a Pulse Width task then the property used for the Gate input would be slightly different and would correspond to the task type.

 

 

Best Regards,

John Passiak
0 Kudos
Message 12 of 12
(1,113 Views)