I8088W_Setpwmduty_Float - ICP DAS USA I-8088W Api Reference Manual

I/o module
Table of Contents

Advertisement

3.7. i8088W_SetPWMDuty_float

The function is used to set the PWM parameters precisely.
Syntax
short i8088W_SetPWMDuty_Float(int slot,int ch,float f_Hz,float f_Duty);
Note:
i8088W_SetPWMDuty_Deci is the same as i8088W_SetPWMDuty_float in
usage, but the i8088W_SetPWMDuty_Deci will run faster than
i8088W_SetPWMDuty_floa for the floating calculation reason
Parameter
1. slot 0 ~ 7
2. ch 0 ~ 7
3. f_Hz 100 means f_Hz = 10 Hz
4. f_Duty 0.0~99.9, for example: 50.3 means 50.3% High Part
5. Low Part =100.0- f_Duty = 49.7 means = 49.7%
Return Values
Please refer to Error Code Table.
Examples
[C++]
int slot,ch;
slot = 0;
for(ch=0;ch<8;ch++)
{
i8088W_ SetPWMDuty_Float (slot,ch,50.3);
}
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010
--- 31

Advertisement

Table of Contents
loading

Table of Contents