Description of the workaround:

How to set and generate a PWM signal in Dewesoft?


Description of the solution:


Requirements:

To use the PWM in Dewesoft you need one of the devices from the list below. In the future, PWM output will be supported also on KRYPTONi-8xDI-8xDO and KRYPTONi-16xDO. On the software side, Dewesoft X3 SP5 release or newer version is needed.


Dewesoft devices with PWM output option. 

  • KRYPTONi-4xDO
  • IOLITEi-4xDO
  • SIRIUS with Analog Out option (workaround)


Setup:

The PWM can be enabled in the A/D out module. Go to Settings of the digital out channel and choose the "On" option from the PWM drop down menu. Additional fields will appear where you can type the period. The maximum output Frequency is 100kHz.


Wire type can be "Use as switch" either "Use as digital output".


There are two different Value types:

  • Manual - Additional User control channel will be created, with which you can regulate the duty cycle
  • From Channel - The Duty cycle is defined by the selected channel


Measure mode:

When Value type is selected as Manual, use Input control widgets for controlling the duty cycle. It is 0 by default, but it can be adjusted with the input control display (0-100%):


Note that you won't see the PWM signal directly in the measure mode. For the representation the PWM signal (screenshot above), we use another KRYPTON device for measuring the Output signal from the KRYPTONi-4xDO.


Additional information:

PWM workaround for Sirius AO channels: