u/Martin_fs

▲ 3 r/matlab

External analog input for RT simulation in Simulink

Hi there,

I built a car model in Simulink as a study project, and I'm looking to upgrade it into a simple simulator.

My model expects steering, brake and throttle inputs, and outputs car position, speed, orientation, etc... I also use Simulink 3D Animation environment, and so far I've been able to drive the car using dashboard knobs and slider, so the next step would be to plug in potentiometers linked to a simple sim racing setup to actually drive it.

From my research the best option seems to be using the Analog Input block from Simulink Desktop Real-Time, but I struggle to find resources to pick the right hardware. I need something very simple (3 analog inputs only), but I don't exactly know where to start.

Any advice on how to proceed, tips, experience feedback, and hardware reccomandation would be super useful! Thanks :)

reddit.com
u/Martin_fs — 4 days ago