DAQmx Create Channel (CO-Pulse Generation-Ticks) VI
- Updated2025-07-28
- 4 minute(s) read
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. The pulses appear on the default output terminal of the counter unless you select a different output terminal.

Inputs/Outputs
low ticks
—
low ticks is the number of ticks the pulse is low.
high ticks
—
high ticks is the number of ticks the pulse is high.
task in
—
task in specifies the task to which to add the virtual channels this VI creates. If you do not specify a task, NI-DAQmx creates a task for you and adds the virtual channels this VI creates to that task.
counter
—
counter specifies the names of the counters to use to create the virtual channels. The DAQmx physical channel constant lists all physical channels, including counters, for devices installed in the system. You also can wire a string that contains a list or range of counters to this input. If you have an array of counters, use the DAQmx Flatten Channel String VI to convert the array to a list.
name to assign
—
name to assign specifies a name to assign to the virtual channel this VI creates. If you do not wire a value to this input, NI-DAQmx uses the physical channel name as the virtual channel name. If you use this input to provide your own names for the virtual channels, you must use the names when you refer to these channels in other NI-DAQmx VIs and Property Nodes, such as the source input of the DAQmx Trigger VI. If you create multiple virtual channels with one DAQmx Create Virtual Channel VI, you can specify a comma-separated list of names to assign to the virtual channels. If you provide fewer names than the number of virtual channels you create, NI-DAQmx automatically assigns names to the virtual channels.
source of ticks
—
source of ticks is the terminal to which you connect an external timebase. A DAQmx terminal constant lists all terminals available on devices installed in the system. You also can specify a source terminal by wiring a string that contains a terminal name.
error in
—
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
idle state
—
idle state specifies the resting state of the output terminal.
initial delay
—
initial delay is the number of timebase ticks to wait before generating the first pulse.
task out
—
task out is a reference to the task after this VI runs. The task contains any newly created virtual channels. If you did not wire a value to task in, NI-DAQmx automatically creates the task this output refers to.
error out
—
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error. |
low ticks
—
task in
—
counter
—
name to assign
—
error in
—
idle state
—
task out
—
error out
—