Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

NI9401 and linear encoder

Hi,

We use NI-9401 module on cDAQ-9189 device in slot 5 to measure a linear encoder (Heidenhain).

I used the drawing design specified there : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1riCAA&l=en-US

Under NIMAX, I have created a virtual channel to measure a linear position.

Then I have created a counter task for linear position (with call to my virtual channel).

If I set up my task with option one sample on request, it is working, but it will not be very efficient with Labwindows/cvi because it creats interrup.

I am not able to use continuous samples option ! : internal clock is dimmed and the other clock choises don't work.

Have you got an idea how to set up my task ?

Thank's

0 Kudos
Message 1 of 2
(2,625 Views)

I'm less sure about cDAQ, but on many other DAQ devices, counters can't derive their own sample clocks internally.  They need to borrow one from elsewhere.   For example, you could use a 2nd counter to generate a pulse train that your encoder counter uses as the sample clock.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(2,583 Views)