National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-27 LabWindows/CVI Standard Libraries
Parameters
Input
device
short
integer
Assigned by configuration utility.
counter
string The counter to be used for the counting operation.
counterSize
unsigned
short
integer
Determines the size of the counter used to
perform the operation.
sourceTimebase
double USE_COUNTER_SOURCE: count TTL edges at
counter’s SOURCE pin; or supply a valid
internal timebase frequency to count the TTL
edges of an internal clock.
countLimitAction
unsigned
short
integer
The action to take when the counter reaches
terminal count.
sourceEdge
short
integer
The edge of the counter source or timebase signal
on which it increments.
gateMode
unsigned
short
integer
Specifies how the signal on the counter's GATE
pin is used.
Output
taskID
unsigned
long
integer
The reference number assigned for the counter
reserved for this operation. You pass taskID to
CounterStart, CounterRead, and
CounterStop.
Return Value
error
short
integer
Refer to error codes in Table 10-5.
Parameter Discussion
counter is the counter to be used for the counting operation. The valid counters are shown in
Table 10-2, which is found in the Valid Counters for the Counter/Timer Functions subsection of
the Easy I/O for DAQ Library Function Overview section of this chapter.
counterSize determines the size of the counter used to perform the operation.
For a device with DAQ-STC counters, counterSize must be ONE_COUNTER (24-bit).
For a device with Am9513 counters, counterSize can be ONE_COUNTER (16-bit) or
TWO_COUNTERS (32-bit).