LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using quadrature encoder pulse to trigger DAQ

I currently have a program that uses encoder pulses via RTSI as the scan clock for DAQ on a 6023E card.

However, I am also interested in being able to acquire data in the time domain.

I am not experienced with using triggers. What VI's would I use, to trigger DAQ on the card with this pulse, but then collect data at 1000 Hz?? I want to be able to do this without making any additional hardware or wiring changes.

Thanks
Chris
0 Kudos
Message 1 of 4
(2,572 Views)
The first thing I would suggest is opening one of the Cont Acq&Graph (buffered) D-Trig.vi shipping example. Next, bring up the help for AI Start.vi and wire a control to the analog chan and level input of the AI Start.vi. The help explains that you need to change the trigger channel to GPCTR0. Don't worry about the level, it is only used in analog triggers.

I hope this helps.

Joshua
0 Kudos
Message 2 of 4
(2,572 Views)
Thanks for the reply.
I'll check it out.

I forgot to mention that the pulses are being routed through a 7334 motion controller card, and for position based daq I'm using the Select signal.flx VI. I don't know if that changes anything.
0 Kudos
Message 3 of 4
(2,572 Views)
You use Select Signal to route the encoder signal onto the RTSI bus and the AI Clock Config to route that RTSI line to the scan clock. This can be relatively complex if you do not have years of experience with DAQ and Motion. I have built serval NI base systems integrating DAQ and motion for optical component alignment. If you need a consultant, I offer free proposals. Contact Jim Rupp @ 303 516 1336
0 Kudos
Message 4 of 4
(2,572 Views)