Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Database Toolbox use in Simulink

Subject: Database Toolbox use in Simulink

From: Sven-Erik Tiberg

Date: 28 Oct, 2009 18:57:18

Message: 1 of 3

Hi

Would like to read data from a MySQL data base into a simulink model and write values back to the db.

Maybee an easy task but the "challange" are that the record in the db has dynamic content that should be read. And the result of a simulation loop or every 10'th should be stored in the db.

The records to be read are updated from a real time unit. In this case a 3D web-browser and the writen data from the model will be read by the same 3D browser.

Made a s-scripts that read a UDP-string and another one that wrote model states into a s-script to be transfered by UDP. Also had a script that made simulink runing in pseudo realtime.

This application are similar to Matlab's VR-toolbox but in case it can be multiple 3D browsers with diffrent presentation and task in a 3D-space.
Will use tecnique from www.bitmanagement.com for 3D browser and multi-user protocol-handler.

Thinking of modifying the Simulink UPD s-script for ODBC connection to a MySQL-db unsin the Database Toolbox.
Any comment on this?

/Sven-Erik Tiberg



 

Subject: Database Toolbox use in Simulink

From: Sven-Erik Tiberg

Date: 1 Nov, 2009 19:09:02

Message: 2 of 3

Hi
Found mym http://sourceforge.net/projects/mym/
seems to be the code I need.
Any comments on it?

Subject: Database Toolbox use in Simulink

From: Sven-Erik Tiberg

Date: 2 Nov, 2009 15:09:02

Message: 3 of 3

Tested mym() in matlab command window, works fine.
Writing s-functions now.
Only where did I put the book?? it's 5 years since editing s-function.
Any hint on manuals on this?

/Sven-Erik Tiberg
 

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us