I’m trying to do a HIL(hardware-in-the-loop) simulation with ATmega8535, as a digital controller and a virtual plant that implemented in Matlab Simulink. The AVR and Simulink are communicating using serial port. I used the Instrument Control Toolbox in Matlab to send and receive binary data via serial port to the AVR. I also include the direct simulation, without using the Instrument Control Toolbox, to compare both the results. Read the rest of this entry ?
