Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-49 LabWindows/CVI Standard Libraries
Parameter Discussion
typeOfMeasurement identifies the type of pulse width or period measurement to make. This
parameter accepts the following attributes:
• MEASURE_HIGH_PULSE_WIDTH—measure high pulse width from rising to falling edge.
• MEASURE_LOW_PULSE_WIDTH—measure low pulse width from falling to rising edge.
• MEASURE_PERIOD_BTW_RISING_EDGES—measure period between adjacent rising
edges.
• MEASURE_PERIOD_BTW_FALLING_EDGES—measure period between adjacent falling
edges.
sourceTimebase determines whether the counter uses its SOURCE pin or an internal timebase
as its signal source. Pass USE_COUNTER_SOURCE to count TTL edges at counter’s SOURCE
pin, or pass a valid internal timebase frequency to count the TTL edges of an internal clock.
Valid internal timebase frequencies are:
1000000 (Am9513)
100000 (Am9513)
10000 (Am9513)
1000 (Am9513)
100 (Am9513)
20000000 (DAQ-STC)
100000 (DAQ-STC)
ReadFromDigitalLineshort error = ReadFromDigitalLine (short device, char portNumber[], short line,
short portWidth, long configure,
unsigned long *lineState);
Purpose
Reads the logical state of a digital line on a port that you configure as input.