Use Union Datatype in Simulink

Simulink doesn't generate Union datatype but the same can be imported into Simulink


Updated Sat, 20 Aug 2022 18:16:51 +0000

View License

Objective: Use union datatype in Simulink model
Simulink doesn't support union datatype whereas the same can be imported from C file
  1. Define a Bus which is similar to the required Union datatype
  2. Configure the scope of bus as imported and define the corresponding header file
  3. Define the union datatype in the header file mentioned

Cite As

Muthukumar Ganesan (2023). Use Union Datatype in Simulink (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes