From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get time based external encoder position.

I have a servo linear motion system with 7344 and PCI6024. I run a
onboard program in a loop while i measure force and sound with AI on
6024 triggered by RTSI0 line from the onboard program each time a new
move is started and samples are syncronized (rate = 20kHz) by a
counter. I use continuous sampling because i don't no the time one
move takes.

Question 1.
I want to show data for one move, but at the same time don't loose any
samples from the second move and so on. How can i get the excact time
the next start or stop trigger arrives and continue sampling? (See
drawing) The closest i get now is to stop sampling before next trigger
arrives so i am ready to start a new sampling on trigger. I use DAQmx.

Question 2.
I have
a second incremental encoder to collect time based position
from the move. Rate = min. 500samples/sec. Software read is not
accurate enough, so i have to do it with hardware. The encoder is
connected to encoder 2 input in 7344. How to reach this position
syncronized with the earlier mentioned measurement? Do i have to
connect it to the second counter on 6024 to get it syncronized? What
is the best methode?
0 Kudos
Message 1 of 2
(2,827 Views)
To retain data during each move, you may consider using high speed capture, such as demonstrated in the following example:
Developer Zone Example: Onboard Program - Continuous High Speed Capture into General Purpose Buffer

You might also find the following resources helpful:
Developer Zone Example: Motion Synchronization with DAQ via RTSI (Routing Onboard Breakpoints to DAQ...

Developer Zone Tutorial: Integration with Motion Using RTSI
0 Kudos
Message 2 of 2
(2,827 Views)