DAQmxCreateCOPulseChanTicks

NI-DAQmx C Functions

DAQmxCreateCOPulseChanTicks

int32 DAQmxCreateCOPulseChanTicks (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], const char sourceTerminal[], int32 idleState, int32 initialDelay, int32 lowTicks, int32 highTicks);

Purpose

Creates channel(s) to generate digital pulses defined by the number of timebase ticks that the pulse is at a high state and the number of timebase ticks that the pulse is at a low state and also adds the channel to the task you specify with taskHandle. The pulses appear on the default output terminal of the counter unless you select a different output terminal.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task to which to add the channels that this function creates.
counter const char [] The name of the counter to use to create virtual channels. You can specify a list or range of physical channels.
nameToAssignToChannel const char [] The name(s) to assign to the created virtual channel(s). If you do not specify a name, NI-DAQmx uses the physical channel name as the virtual channel name. If you specify your own names for nameToAssignToChannel, you must use the names when you refer to these channels in other NI-DAQmx functions.
If you create multiple virtual channels with one call to this function, you can specify a list of names separated by commas. If you provide fewer names than the number of virtual channels you create, NI-DAQmx automatically assigns names to the virtual channels.
sourceTerminal const char [] The terminal to which you connect an external timebase. You also can specify a source terminal by using a terminal name.
idleState int32 The resting state of the output terminal.
Value Description
DAQmx_Val_High High state.
DAQmx_Val_Low Low state.
initialDelay int32 The number of timebase ticks to wait before generating the first pulse.
lowTicks int32 The number of timebase ticks that the pulse is low.
highTicks int32 The number of timebase ticks that the pulse is high.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.