12-17-2019
07:00 AM
- last edited on
12-19-2024
09:49 AM
by
Content Cleaner
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
12-17-2019 11:19 AM
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