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?
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
Add a New Tag:
Separated by commas
Ex.: root locus, bode
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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.