User manual

PCI-DA12-8/16 Manual
Page 6-6
Manual MPCI-DA12-16.Dh
Generate Frequency
The Generate Frequency function will generate a square wave (0 to +5V) with the desired frequency.
The Base Address of the card as well as the frequency are required as input to the function. The
counter can generate a frequency with a range of 1Hz to 250KHz. The square wave can be read on
the CLOCK OUT pin of the card.
void generatefrequency(unsigned BaseAddress, unsigned long frequency);
Pulse Width
The Pulse Width function will measure the width of an applied event from its rise to its fall (effectively
one half the period). The Base Address of the card is required as input to the function. The signal
should be applied to the CLOCK IN pin of the card. Software latency will be affected by the operating
system and will set a limit on the precision of the measurement.
unsigned pulse_width(unsigned BaseAddress);