Simulink Models on ADwin
Real-Time code from Simulink®
With the ADsim blockset(the familiar “yellow” ADwin hardware blocks), real-time code is generated from the Simulink® models, which is executed on the ADwin with stable cycle times in the μs range. The I/O signals can be processed with ns precision. Typical model execution rates are 1-5 kHz, up to 500-1000 kHz.
ADsim

ADsim – Simulink® models in Real-Time
Simulink models are well established and validated, and are therefore well suited for in-the-loop testing. With ADwin real-time systems, very large time-discrete models can be calculated and the corresponding signals generated. Perfect for extensive industrial Xil/HiL applications. Simply add the ADsim blockset for ADwin to Simulink® and generate code what may run on ADwin systems with μs range cycle times, with an absolutely deterministic ns timing precision. It only takes a few mouse clicks and a few seconds to go from "viewing a model" in Simulink® to "running it in real-time" on an ADwin system!

ADsim is set as default that all signal processing from and to an ADwin device are synchronized automatically. So the timing will be stable after recompiling. Finally this promises an absolute high degree of reproducibility, because the signal time behavior is fixed.
A powerful advantage of ADsim, especially for test bench applications!
- Perfect Simulink hardware for the test bench area
- Signal synchronization -High degree of reproducibility of code execution after recompilation!
- Complex large models @ high speed, Xil/HiL applications
- Integration of the ADsim model into the proven real-time languages ADwinC and ADbasic
- Multitasking models, priority controlled
- Data acquisition, signal analysis, filters
- Controllers, PID, flow control via stateflow and ADwin tools
- Waveform generation, numeric, arbitrary
- Benchmark example: 16 × PID @ 300 kHz
- RT cycle frequencies from kHz to MHz

ADsim - User interfaces for Simulink® models
ADsimDesk is a graphical user interface for Simulink® models that can exchange data with an ADwin system. Simply customize the GUI to suit your needs: Select any model signal. block parameter or even tunable parameter and monitor, display, control and modify the values; online of course, while the model is running in real-time.
- Using ADsimDesk, the Simulink® model signals and parameters(block and tunable) can be monitored, displayed, controlled or modified with a graphical user interface of this tool.
- Using ADlab, data can be bi-directional exchanged with Real-Time Simulink® models.
- Our standard ADwin/ADsim drivers can be used to create user interfaces that can also exchange data with Simulink ADwin.
- With the common ADwin software ADtools and ADinspect you may monitor and control Simulink® models too.

Requirements for ADsim
From Mathworks Inc.:
- Matlab® 8.2 (R2013) or higher
- Simulink® 8.2 (R2013) or higher
- Simulink Coder® / Real-Time Workshop ®
- Embedded Coder® / Real-Time Workshop Embedded Coder®
From ADwin:
- ADsim Software Package; current version: 6.00.44.01
- Compiler ADbasic (version 6.2)
- ADwin-Pro II and ADwin-Gold III with processor T12
- ADwin-X-A20
- ADlab (optional)