06-21-2012 01:44 AM
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
Solved! Go to Solution.
06-21-2012 06:29 AM - edited 06-21-2012 06:32 AM
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
06-21-2012 10:52 PM
Thanks for your reply although I do not quite understand your solution.
06-22-2012 01:48 AM
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 😉
06-22-2012 09:15 AM
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.