A Visual Studio Code extension for PySysLink, a block‑diagram simulation environment similar to Simulink.
This extension provides:
Block Editor: Draw, arrange and connect high‑level blocks in a graphical canvas.
Property Inspector: Edit block parameters, including expressions and initialization scripts.
Live Simulation: Launch a Python‑based simulation server (using your selected Python interpreter) and receive progress, display, and plot events in the editor.
Block Palette: Browse installed block libraries and drag‑and‑drop blocks into your diagram.
🔧 Prerequisites
Python 3.7+ installed on your system.
PySysLink Toolkit installed in your Python environment:
pip install pysyslink-toolkit
VS Code Python Extension by Microsoft (automatically prompted on first run).
🚀 Features & Quick Start
Open or Create a .pslk model file (JSON).
Launch the Block Editor:
Right‑click your file in Explorer ▶ Open With ▶ PySysLink Block Editor.
Draw your Diagram:
Drag blocks from the Block Palette sidebar onto the canvas.
Connect ports by clicking and dragging between blocks.
Edit Parameters:
Select a block ▶ edit its properties (literals or expressions) in the sidebar form.
(Optional) Define a top‑level initScript in your JSON to run custom initialization code.
Run Simulation:
Click the ▶ “Play” button in the editor toolbar.
Watch progress notifications and view display/plot events inline.