DRV_CounterReset

INT32S DRV_CounterReset (  
  PTR_T DeviceHandle, 
  INT32U counter );

Purpose

On the device indicated by the DevcieHandle, it resets a specific counter or timer to stop the current operation. The function works for all types of counter/timer functions, including DRV_CounterEventStart, DRV_CounterFreqStart, DRV_QCounterStart, DRV_CounterPulseStart, DRV_CounterPWMEnable and DRV_TimerCounterSetting, except the special function DRV_FreqOutStart of PCI-1780/MIC3780/PCM3780.

Parameters

Name

Direction

Range

Description

DeviceHandle

input

default

The pointer retrieved from DRV_DeviceOpen which specifies the target device.

counter

input 

default

The user-specified counter to be stopped.
From a minimum of zero for the first channel to the maximum channel number minus one. For example, the range is from 0 to (N-1) on a device with N counter channels.

Return

   1. 0

Successful.

   2. InvalidDeviceHandle

The Devicehandle is NULL.

   3. InvalidChannel

The target channel is out of range.