imgPulseRate
- Updated2023-02-21
- 1 minute(s) read
Usage
rval imgPulseRate(double delayTime, double widthTime, uInt32* delay, uInt32* width, uInt32* timebase);
Purpose
Converts delay time and width time into delay, width, and timebase values used by imgPulseCreate.
Parameters
| Name | Type | Direction |
| delayTime | double | input |
| widthTime | double | input |
| delay | uInt32* | output |
| width | uInt32* | output |
| timebase | uInt32* | output |
| rval | Int32 | output |
Parameter Discussion
delayTime: duration of the first phase of the pulse, in seconds.
widthTime: duration of the second phase of the pulse, in seconds.
delay: on return, the function populates the variable with the number of cycles of the first phase of the pulse.
width: on return, the function populates the variable with the number of cycles of timebase of the second phase of the pulse.
timebase: on return, the function populates the variable with the code that represents the timebase on the device that the counter uses to produce the pulse.
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.