Two PIDs in simulink for Arduino

Hey I am trying to build a feedback control model in Simulink having more than one PIDs which is supposed to run on Arduino based hardware. In doing so I soon realised that two PIDs wont work as arduino doesn't support two integrators block. In the attached file I have tried to re-create the error. The error is hardware specific and needs to be running on an arduino device. Error message : error: unable to find a register to spill in class 'POINTER_REGS'
Is there something that I may have missed? Thanks

1 Comment

Hi Sahil,
What version of MATLAB are you using?

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 17 Sep 2019

Commented:

on 25 Sep 2019

Community Treasure Hunt

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

Start Hunting!