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)
Syntaxpublic double MeasurePinFreq(
IPinObject pin,
uint polarity,
uint timeoutInMs,
ushort numPeriods
)
Public Function MeasurePinFreq (
pin As IPinObject,
polarity As UInteger,
timeoutInMs As UInteger,
numPeriods As UShort
) As Double
public:
double MeasurePinFreq(
IPinObject^ pin,
unsigned int polarity,
unsigned int timeoutInMs,
unsigned short numPeriods
)
member MeasurePinFreq :
pin : IPinObject *
polarity : uint32 *
timeoutInMs : uint32 *
numPeriods : uint16 -> float
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:
DoubleThe signal frequency, in Hz. Goes to infinity if no signal found.
See Also