How to save or convert a simulink model to csv file
8 次查看(过去 30 天)
显示 更早的评论
Hi all,I have a tank system in simulink and would like to save or convert it to a csv file.Does anyone know how this can be done?
0 个评论
采纳的回答
Kaustubha Govind
2012-3-23
A .csv file is typically a text-file with comma-separated numerical values - how can a Simulink model be represented simply in terms of numerical values? AFAIK, such a conversion is not possible.
更多回答(3 个)
K E
2012-3-23
Are you trying to pass the output of a Simulink model into LabView, such as a time series of simulated position and velocity? If so then you can use a To Workspace block in your Simulink model to pass the time series out of Simulink and into Matlab's workspace, then in Matlab you could save the variable to a CSV file using a Matlab utility such as csvwrite. Then you could read the resulting csv file into LabView. There are other ways to go from [Simulink time series] to [saved csv file]; this is one example.
3 个评论
K E
2012-3-26
Here is a thread on reading a mat file into Labview,
http://forums.ni.com/t5/LabVIEW/I-want-to-read-a-Matlab-MAT-file-into-labview/td-p/322423
Since I am not a Labview user, you would want to follow up in that forum with any followup Labview questions.
Joseph
2012-3-26
1 个评论
Kaustubha Govind
2012-3-26
This might be of help: Building a LabVIEW User Interface for a Simulink® Model with LabVIEW Simulation Interface Toolkit (http://zone.ni.com/devzone/cda/tut/p/id/3057).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LabVIEW 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!