Skip to main content

The simulink-diagram directive requires at minimum one argument specifying the Simulink system:

.. simulink-diagram:: System

Additional options exist, including:

  • dir: the directory containing system

  • addpath: one or more directories containing dependencies needed by the system (if multiple directories, use a semi-colon, e.g. path1;path2;path3)

  • preload: specify a MATLAB script file (.m) to load before opening the system for print

  • subsystem: the layer in the system to navigate and print from

Note: All directories may be specified either as relative to the .rst document or an absolute path. If a list of directories, a mix of both may be employed.

.. simulink-diagram:: System
    :dir: optional/path/to/model
    :addpath: optional/dependency/path;another/path/to/a/dependency;
        feel/free/to/split/across/lines;C:/And/With/Absolute/Paths
    :preload: optional_preload.m
    :subsystem: SubsystemLayerInModel/At/Any/Depth

Dependencies

Ensure you install the following into your Python environment:

Example

Please look in this repository’s “example” folder for an example.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-simulink-0.0.1.zip (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_simulink-0.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page