Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a digital output which is the half frequency of the input

Solved!
Go to solution

Hi, I am new with DAQ. I would like to get your help.

 

I have a digital signal input which is generated by an encoder. I would like to generate an output signal in the way that its signal level will change at every raising edge of the input signal so that the frequency is the half of that of the input.

 

I would like to know how to do that using NI DAQ M 6221 card.

 

Thanks for your help

 

0 Kudos
Message 1 of 5
(3,613 Views)
Solution
Accepted by Westman

 

Hardware solutions can be so simple ..... sometimes I prefer a solder iron to wire 😄

 

Look at the counter section..

I think there is a prescaler/divider for the counter ... and next would be trying to route that output to an PFI

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 5
(3,608 Views)

Thanks for your reply although I do not quite understand your solution.

 

0 Kudos
Message 3 of 5
(3,594 Views)

What is shown is a D-FlipFlop ( an eletronic basic logic building block see 7474) wired to a hardware frequency divide by 2 .

 

If you read through the manual of your card (or the DAQmx counter section) you might find that an equivalent circuit could be activated in your card.

The next step would be to use the advanced DAQmx functions to route that divided signal to another PFI output.

 

If you explain the main task and why you think you need a divide by 2 function, we maybe can find a solution without 😉

 

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 4 of 5
(3,588 Views)

In addition to Henrik's IC solution, you can achieve a divide by two with the 6221. I'm not sure what API you are using, but here is an example of how to set it up in LabVIEW:

Divide External Clock by Two Using Counter in DAQmx 

 

Hope this helps,

Andrew S.

0 Kudos
Message 5 of 5
(3,581 Views)