Group Abstract Group Abstract

Message Boards Message Boards

[?] Run this example of SystemModeler Blog?

Posted 8 years ago

Hello!

I have tested several WSM examples with Arduino. So I got an example on Wolfram Blog : http://blog.wolfram.com/2014/11/07/using-arduinos-as-systemmodeler-components/

It seems helpful to me. So I tested it on my PC. But I got an error like the below screenshot. enter image description here

But I have already checked all settings. I got the information of Arduino port. And I also tested the Arduino example. enter image description here

So I set the port correctly. enter image description here

My friend said that it runs well on previous version. But I do not want to downgrade to previous version!

I asked to WRI TS team but they suggested me to check the C++ compiler....I used WSM since version 2.1. Of course, I checked the compiler. enter image description here

Please let me know any solution.

My WSM version is 5.0 and Mathematica version is 11.2. And my machine is MacOS Sierra 10.12.6 ( MacAir 2014 Version).

The test file is located the blog page.

POSTED BY: jiwon hwang
3 Replies
POSTED BY: Patrik Ekenberg

It is resolved! Your advice is really helpful to me!

Thank you Neil!

The example runs on current version with Arduino and all graphs are drawn in real time. But only the animation works a few seconds delayed. I cannot understand the reason.

Regards,

Jiiwon

POSTED BY: jiwon hwang

Its not your setup. There is a bug in the LQ Control system. I cut out the arduino and pin14 and put a sine wave into the pendulum and it still crashes under version 5. There appears to be a bug with the TimeTable used in the LQ regulator. That is unused in the default mode (referencetype =2). So I cut it out and replaced it with a constant of zero and the LQ regulator now runs properly.

Try this with your arduino.

Here is what I did:

enter image description here

Regards,

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard