IviCounter_ConfigureDutyCycle
- Updated2023-02-24
- 1 minute(s) read
ViStatus IviCounter_ConfigureDutyCycle (ViSession instrumentHandle, ViChar _VI_FAR channel[], ViReal64 frequencyEstimate, ViReal64 resolution);
Purpose
This function configures the IVICOUNTER_ATTR_DUTY_CYCLE_FREQUENCY_ESTIMATE and IVICOUNTER_ATTR_DUTY_CYCLE_RESOLUTION attributes for a duty cycle measurement.
Parameters
Input | ||
Name | Type | Description |
---|---|---|
instrumentHandle | ViSession | The ViSession handle that you obtain from the IviCounter_init or IviCounter_InitWithOptions function. The handle identifies a particular instrument session.
Default Value: None |
channel | ViChar[] | Specifies the channel name on which the duty cycle is measured. The driver uses this value to set the IVICOUNTER_ATTR_DUTY_CYCLE_CHANNEL attribute.
Default Value: "" Note: You can specify the channel name as a string variable or as a literal enclosed in double quotes. |
frequencyEstimate | ViReal64 | Specifies the estimated frequency. The driver uses this value to set the IVICOUNTER_ATTR_DUTY_CYCLE_FREQUENCY_ESTIMATE attribute. Refer to the attribute description for more information.
Units: hertz Default Value: 300000000.0 |
resolution | ViReal64 | Specifies the resolution of the duty cycle measurement. The resolution is the quantization size, or the smallest delta value, that can be detected. The driver uses this value to set the IVICOUNTER_ATTR_DUTY_CYCLE_RESOLUTION attribute. Refer to the attribute description for more information.
Units: hertz Default Value: 1.0 |