Skip to content

spec pwm set frequency

Ken Sharp edited this page Dec 10, 2025 · 2 revisions

PWM Set Frequency

Set the frequency of the specified PWM channel(s).

LabVIEW

Command Packet

PWM Set Frequency Command
Description Set the frequency of the specified PWM channel(s).
Size Variable
Format 0 1 2 3 4 5 6 7 8 9
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SoF : 0xFF PACKET SIZE PACKET NUM CMD : 0x0082 Num Chans PIN NUM(S) Frequencie(s) CHECKSUM
SoF Start of Frame. Always 0xFF.
PACKET SIZE Packet Size In Bytes
PACKET NUM The Current Packet Number. This value increments with each new packet.
CMD PWM Set Frequency Command.
Num Chans Number of PWM Channels to Set
PIN NUM(S) Variable Length. The PWM pin numbers. Each byte represents one pin.
Frequencie(s) Variable Length. U32 Frequency for each PWM pin. MSB frequency corresponds to MSB PWM pin.
CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

LINX Target

Response Packet

PWM Set Frequency Response
Description LINX device's response to PWM Set Frequency command
Size 6 Bytes
Format 0 1 2 3 4 5
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SoF : 0xFF PACKET SIZE PACKET NUM STATUS CHECKSUM
SoF Start of Frame. Always 0xFF.
PACKET SIZE Total packet size in bytes.
PACKET NUM The packet number of the packet that generated the response.
STATUS See Return Status section below.
CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

Return Status

No function specific statuses. See Return Status for universal return statuses.

Related Links

LINX

Clone this wiki locally