GUI and real time simulation of Simulink model

1 view (last 30 days)
Hi eveybody,
im relative new to matlab/simulink/stateflow and i've created a model of a car in simulink.
Inputs here are for example the angle of the gas pedal and the gradiente of the street. Outputs are mainly the position, speed and acceleration of the car.
Now i would like to create an interface just like the ones from LabView, where i can change the values of the inputs and see the effects on the outputs of the car. For example i may increase the gradient of the street and maintain the gas pedal constant, and i would like to see how the acceleration/speed/position of the car changes.
However i need to simulate it im real time!
Do you guys have a solution for my case?
Thanks in advance!
ps: if this solution would be easier in others softwares, please let me know how!

Answers (1)

Kaustubha Govind
Kaustubha Govind on 16 Aug 2011
For real-time simulation of Simulink models, you can use either Real-Time Windows Target or xPC Target. Both products support various options for I/O interfacing. For example, according to the Real-Time Windows Target product page, it supports joysticks for interfacing - which may be ideal for inputs such as yours.

Community Treasure Hunt

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

Start Hunting!