Main Content

Digital Output

Represent one pin as digital output and set logical value

  • Digital Output block

Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller / Actuators


The Digital Output block is used to represent one of the 12 digital IO pins on an ARM® Cortex®-based VEX® Microcontroller as a digital output. The block sets the digital/logical value (1 or 0) of the pin. For information on the pin layout of the microcontroller, see the VEX Cortex Pin-Out diagram from VEX Robotics.



expand all

Connect the input port to a block that generates a logical value (1 or 0).

Data Types: Boolean


expand all

Connect an appropriate sink block from the Utilities library in Simulink® Support Package for ARM Cortex-based VEX Microcontroller to the output port to view the simulation output.

During simulations, this block emits zeroes if no block is connected the input port (see Block Produces Zeros or Does Nothing in Simulation).


This port appears only when you select the Add output port for simulation parameter.

Data Types: Boolean


expand all

You can select one of the 12 digital IO pins on the VEX Microcontroller to act as digital output.

Do not assign the same pin number to multiple blocks in your model.

Select this check box to add an output port that simulates the logical output of the block.

Version History

Introduced in R2016a