Path: news.mathworks.com!not-for-mail
From: "Sven-Erik Tiberg" <set@dc.ltu.se>
Newsgroups: comp.soft-sys.matlab
Subject: Database Toolbox use in Simulink
Date: Wed, 28 Oct 2009 18:57:18 +0000 (UTC)
Organization: Lule&#229; Tekniska Universitet
Lines: 21
Message-ID: <hca46e$lv9$1@fred.mathworks.com>
Reply-To: "Sven-Erik Tiberg" <set@dc.ltu.se>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256756238 22505 172.30.248.35 (28 Oct 2009 18:57:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 28 Oct 2009 18:57:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 267486
Xref: news.mathworks.com comp.soft-sys.matlab:580727


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