FX3ConnectionStartPWM Method |
This function configures the selected pin to drive a pulse width modulated output.
Namespace:
FX3Api
Assembly:
FX3Api (in FX3Api.dll) Version: 2.9.4.0 (2.9.4)
Syntaxpublic void StartPWM(
double Frequency,
double DutyCycle,
IPinObject Pin
)
Public Sub StartPWM (
Frequency As Double,
DutyCycle As Double,
Pin As IPinObject
)
public:
void StartPWM(
double Frequency,
double DutyCycle,
IPinObject^ Pin
)
member StartPWM :
Frequency : float *
DutyCycle : float *
Pin : IPinObject -> unit
Parameters
- Frequency
- Type: SystemDouble
The desired PWM frequency, in Hz. Valid values are in the range of 0.05Hz (0.05) - 50MHz (20000000.0) - DutyCycle
- Type: SystemDouble
The PWM duty cycle. Valid values are in the range 0.0 - 1.0. To achieve a "clock" signal set the duty cycle to 0.5 - Pin
- Type: IPinObject
The pin to configure as a PWM signal.
See Also