LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change detection instaed of X4 encoding

HI

I 'd like to acquire some analog input using an external sample clock from an encoder. My problem is that I want an X4 encoding. Is it possible to use change detection.vi to detect the both falling and ring edges of both signals A and B of the encoder?I needt to now how,and if, with this method, apart the delay due to the multipexer for the multychannel acquisition, I have other delay or if it works as a normal external clock and (so sample clock/convert clock).

(PCI6221)

thanks

 

(PCI6221)

0 Kudos
Message 1 of 4
(2,728 Views)

With the help of some external circuitry:

 

XOR A and B  -> x2

short RC delay -> x2d

 

XOR x2 and x2d -> x4  🙂

see XOR @ wiki 😉

 

 

your RC delay define the pulselenght you need to check with the minimim pulse lenght of your external trigger input. And use propper shielding and grounding to not disturb your analog signals.

Buffer the XOR, use the slowest logic you can use (fast transients are nasty)

 

Have fun

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 4
(2,703 Views)

AND trigger on the rising edge , the falling one is by the RC delay and might produce more jitter and has a tempCo....

 

just in case this might be of intrest ..... 😉

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 4
(2,698 Views)

An LS7184 quadrature clock converter would be an easy and efficient solution.

 

  • Leave MODE unwired for X4 counting
  • Configure the pulse width (RBIAS) according to the frequency of your encoder's signal
  • Use the !CLK output to trigger the acquistion.
0 Kudos
Message 4 of 4
(2,678 Views)