Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

9401, 2 encodeurs and sampling recording

Hello 

I have a NI9401 on a C-DAQ9171. 2 optical encoders are connected to the 9401.

 

My problem is that I want to make an internal timer, in order to be able to record the data with a sampling rate that I can easily change.

 

Thus, I should configure 2 counters for the input corresponding to the 2 encoders, and another counter to make the "internal" clock,  which will allow me to have a valid sampling requency (1000 hz) for example.

 

I have watched many topics about that, but I still don't manage to do that. (I am new to labview..)

 

If anybody could help I would be very gratefull.

 

Sincerely.

 

Jeff 

 

 

0 Kudos
Message 1 of 2
(5,002 Views)

To configure the counter output task you would refer to the counter as:

 

<chassis_name>/_ctrN

 

e.g.

 

cDAQ1/_ctr0

 

 

To reference the internal output for the sample clock you would refer to the terminal as:

 

/<chassis_name>/CtrNInternalOutput

 

e.g.

 

/cDAQ1/Ctr0InternalOutput

 

 

Neither of these options will appear in the drop down list for DAQmx channels/terminals due to default filtering options.

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 2
(4,968 Views)