INT32S DRV_CounterPulseStart ( PTR_T DeviceHandle, PT_CounterPulseStart *lpCounterPulseStart );
On the device indicated by the DeviceHandle, it configures the specified counter for pulse output and start the operation.
Some parameters, such as target counter channel (counter), pulse period (period), length of the upper cycle (UpCycle) of pulse output and gate mode (GateMode), are stored in the PT_CounterPulseStart structure pointed by the lpCounterPulseStart.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from DRV_DeviceOpen which specifies the target device. |
| lpCounterPulseStart | input / output | default | The pointer to indicate the user-prepared structure PT_CounterPulseStart that stores target counter channel (INT16U counter), gate period (FP32 period), length of the upper cycle (FP32 UpCycle) of pulse output and gate mode (INT16U GateMode). |
| 1. 0 | Successful. |
| 2. InvalidDeviceHandle | The Devicehandle is NULL. |
| 3. InvalidChannel | The target channel is out of range. |
| 4. InvalidInputParam | The input parameter is incorrect. Please check the correctness of period. |
| 5. Other value | Please reference ErrorCodes |