Click or drag to resize

FX3ConnectionMeasurePinFreq Method

Measures the frequency of an input signal to the selected pin.

Namespace:  FX3Api
Assembly:  FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntax
public double MeasurePinFreq(
	IPinObject pin,
	uint polarity,
	uint timeoutInMs,
	ushort numPeriods
)

Parameters

pin
Type: IPinObject
The pin to measure. Must be an FX3 pin object
polarity
Type: SystemUInt32
THe edge to measure from. 0 - falling edge, 1 - rising edge
timeoutInMs
Type: SystemUInt32
The time to wait for the FX3 to return values before defaulting to infinity (in ms)
numPeriods
Type: SystemUInt16
THe number of periods to sample for. Minimum value of 1

Return Value

Type: Double
The signal frequency, in Hz. Goes to infinity if no signal found.
See Also