LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading analog channel for every pulse of encoder

Hello

 

  • I want to read one analog channel for every pulse of quadrature encoder (both rising and falling) for both A and B pulse. The reading should start exactly when Z pulse is received. I am using 360PPR encoder running at 1500rpm speed. I am using USB6210 card. I am using Labview 11.
  • I tried to run example vi Acq&Graph_Voltage-Int_Clk-Retriggerable.vi to read one sample. It works for one sample only and not for every pulse. Also not able to start exactly when I receive Z pulse. I want to take reading for one revolution of encoder it for every 0.25 degree upto 360 degree.
  • pl help me
  • Prasanna
0 Kudos
Message 1 of 3
(2,291 Views)

I am not a DAQ expert (and you should probably repost your question in the DAQ forums to find DAQ experts faster), but it sounds like you could succeed with a combination of hardware and software.  To reiterate your requirements:

 

  1. Trigger on Z pulse
  2. Take data at each pulse of quad encoder (up or down)
  3. Finite data acquisiton

If I had one DAQ board, I would create a simple digital circuit which produced a pulse every time there was a level change on the quad encoder.  It is relatively easy to do this with off-the-shelf integrated circuits.  You need a one-shot multivibrator which is triggered every time there is a level change.  This will produce a pulse train you can use as the sample clock for your DAQ board (external sample clock).  The Z trigger can be used directly as a trigger, but you may need pretrigger points due to delays in the electronics.  This also assumes your device is spinning before the Z-trigger is generated.

 

This becomes much easier with two DAQ boards.  In this case, use the quad encoder pulse as the sample clock on both boards, but take data on the positive slopes on one, and the negative on the other.  Interleave the data in software after each acquisition.  You wil need to account for gain differences between the boards, if you have stringent measurement requirements.

 

This is just a vague outline of some possibilities, but it should get you moving in the right direction.  Good luck!

0 Kudos
Message 2 of 3
(2,266 Views)

Thank you very much for your advice.  I have only one DAQ card. I can alos read in one revolution only  positive slope triggering and in another revolution negative slop triggering in this way I can use only one DAQ card. 

I can understand how to retrigger for every pulse of A and B after i trigger using z pulse.

 

Thank you very much for your advice. I will repost in DAQ forum.

 

prasanna

 

 

 

0 Kudos
Message 3 of 3
(2,253 Views)