LabVIEW Robotics Module

Table of Contents

Write PWM Line VI

  • Updated2023-02-21
  • 2 minute(s) read

Write PWM Line VI

Owning Palette: Direct Input and Output VIs

Requires: LabVIEW Robotics Starter Kit

Generates a pulse width modulation (PWM) output on a digital I/O line of the Starter Kit FPGA.

PWM line specifies the digital I/O line to which you want to generate the PWM output.

1004Port0/DIO4 (Left Motor) (default)
1005Port0/DIO5 (Right Motor)
1007Port0/DIO7 (Servo)
1700Port7/DIO0
1701Port7/DIO1
1702Port7/DIO2
1703Port7/DIO3
starter kit host in is a reference to the communication session between the host VI and the FPGA on the robot. Use the Starter Kit initialization VI that is appropriate for your application to generate this LabVIEW class object.
period (us) specifies the period, in microseconds, of the PWM output you want to write.
pulse width (us) specifies the pulse width, in microseconds, of the PWM output you want to write.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
starter kit host out is a reference to the communication session between the host VI and the FPGA on the robot. You can wire this output to other Starter Kit VIs.
error out contains error information. This output provides standard error out functionality.

Log in to get a better experience