-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zero and Due support in MATLAB/Simulink #192
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I have a verbal update from Kubo about his lack of success in the Zero department in Simulink. Can you confirm this? Due was working fine. Testing other platforms (e.g. Due / Zero) could be something you do @PeterChmurciak as well. |
Arduino MKR Zero is compatible with Simulink support package since 2019b
version.
In older versions it looks like it is not supported.
https://www.mathworks.com/help/supportpkg/arduino/release-notes.html
|
@gergelytakacs Based on support package pages, Arduino Zero is suported neither by matlab nor by simulink, so using it might prove to be impossible for now. Arduino Due is supported by both, with some limitations concerning DAC and CAN channels (not sure if those limitations will have any consequences in our case). Arduino MKR Zero is supported only by matlab support package without shield support, not by simulink. (Based on release notes found by @KuboJakub, they added some Simulink support to it in latest 2019b version). I have currently matlab 2019a installed (as we agreed on this version for the simulink examples to be saved in), and have tried to connect with Zero to Matlab and Simulink, but with no success - it does not recognize Zero at all. I find Zero and MKR Zero to be too different boards for us to even hope that we could use partial support of MKR Zero for Zero. Concerning Matlab/Simulink examples I would for now focus on using Due and possibly other, but supported boards. |
Both of you agree that Zero is unsupported in both MATLAB and Simulink. So for now, just ignore it and attempt to make your respective shields work with the Uno/Mega (not much difference) and the Due.
Exacly. However, the other (possibly new) boards must be R3 pinout compatible, so that we can use the shields physically on them. So for now, Due is fine - our main motivation is the speed increase anyways. |
@PeterChmurciak |
@gergelytakacs @PeterChmurciak
Here are my program Simulink program and files created by builder + required libraries If you have an idea why is it not working you will rly help me. Minimally could you write me which libraries you included in S-Function and maybe some quick explanation of how you did it? Because it is possible I have just used the S-Function Builder in a wrong way. |
Yes, the sensor in the FloatShield uses I2C communication. So you will also need it for the DAC module in Simulink.
I'd leave this consultation to @PeterChmurciak please. You may try to take up communication with him using email etc. |
@gergelytakacs @KuboJakub Indeed I did use the S-function block to realise the I2C sensor in simulink. There might have been a better way but I did not know about it. For some to me unknown reason, I am getting error: The best way (at least the way I did it) of debugging the building process is to read the report from diagnostic viewer thoroughly and change one thing at a time to see if the error perished. From what I have seen in your files, you really did use the builder bit incorrectly, but it can work anyway. Some tips to solve few of your possible errors:
This is for now all that I have managed to figure out from reading errors while building the function for Uno. I am not able to build it for Due currently, as the compiler can not find |
Faster dynamic systems (MagnetoShield) and more complicated control and estimation schemes are unlikely to work in MATLAB/Simulink, at least on an Uno. So it is essential to learn
The text was updated successfully, but these errors were encountered: