Engee documentation

GP-LC-4x PWM

Page in progress.

PWM assignment to the GP-LC-4X DAC using the output DMA.

gp lc 4x pwm

Description

The block is used to set the PWM on the GP-LC-4X DAC using the output DMA.

Ports

Input

Amplitude - signal amplitude (data type Float64) in the range from 0 to 5 volts
scalar

Frequency - signal frequency (data type Float64) in the range from 500 to 100000 Hz
scalar

Phase - phase of the signal (data type Float64) in seconds
scalar

Square - PWM duty cycle (data type Float64)
scalar

Details

The duty cycle refers to the ratio of the signal period to the pulse width.

Parameters

All parameters listed above except the last three set the waveform only at initialisation. If at the first calculation step the corresponding parameters at the block inputs are different, the waveform will be changed.

Amplitude - initial amplitude at signal initialisation (data type Float64) in the range from 0 to 5 volts
0.0 (By default).

Square - initial PWM slope (data type Float64)
`0.0 (by default).

Details

The duty cycle is the ratio of the signal period to the pulse width.

Frequency - initial frequency of the signal (data type Float64) in the range from 500 to 100000 hertz
0.0 (By default).

Phase - initial phase of the signal (data type Float64) in seconds
`0.0 (by default).

Module number — unique module identification
1 (by default) | 2 | 3 | 4 | 5 | 6 | 7 | 8

Details

Used when more than one I/O module of the same type is installed in a real-time machine.

Channel number - number of the analogue output channel on which this signal will be generated
1 (By default) | 2

Calculation Step - calculation step in seconds for sending counts to digital output channels from the real-time application
`-1 (By default).