Io Pwm Generate Pattern

Generates an io pattern for a specific channel.

Arguments Description

channel_name (str): Hardware channel name.

enable (bool): True if the activity is on else False

ontime (int): The duration that the signal is activated (ON) in milliseconds (ms).

offtime (int): The duration that the signal is deactivated (OFF) in milliseconds (ms).

Returns

bool: True if the io_pwm is well set; otherwise, False.

Example

${channel_name}= ChannelName
${enable}= True
${ontime}= 2
${offtime}= 1
Io Pwm Generate Pattern ${channel_name} ${enable} ${ontime} ${offtime}