11-16-2012 04:25 AM
I would appreciate some assistance on how to generate a TTL pulsetrain that is at the same frequency and synchronised with the NI-9074 scan engine scan period.
The purpose is to synchronise sampling on an external item of equipment with analogue sampling on the NI-9074. Analogue sampling on the NI-9074 is synchronised with the scan engine and is at a rate of 32Hz.
At this point my attempt is shown below but this gives a pulse train frequency of 16Hz, ie the scan engine frequency divided by two. I can understand why this happens but I cannot see a simple modification that will give a pulse train of 32Hz.
Best regards,
nos
11-16-2012 07:04 AM
If your loop is running at 32 Hz and you toggle the out each itteration you will get a pulse train at 16Hz (16 on cycles 16 off).
2 options, double your loop rate or do a pulse(On-Wait-off) on each itteration. You will have to know the cycle wait time (which you can get by looking at the timing between the cycles for your wait. This assumes that your 32Hz is constant however.
11-16-2012 09:09 AM
Paul,
Thank you for your suggestion, which gives the required performance.
Prior to your response I hadn't thought properly about what was needed, in that all that really mattered was the interval between pulses rather than the pulse train having a 50% duty cycle.
Best regards,
nos