How to run simulink through dSPACE(DS1104) without control desk?
23 次查看(过去 30 天)
显示 更早的评论
can any one help me how to run the simulink through dSPACE (DS1104) by changing external mode and to connect target link after build code, so as verify the signals through simulink scope block and vary the parameter using slider gain like RTW with out going control desk software.
if possible mean give me the procedure.
thanks in advance..
Reg,
R.Manikandan,M.E.,(Ph.D)., AP / Department of EEE, The Kavery Engineering College, Mecheri (po), Salem(dt), pin:636453 Tamil Nadu, India. Cell: 9944270473 Email: electricmani@yahoo.co.in
0 个评论
回答(3 个)
David HERNANDEZ
2020-1-30
编辑:David HERNANDEZ
2020-1-30
Answering five year later but still we faced this problem lately and hopefully my answer will help someone out there.
The short answer to the initial question is: is possible to not use ControlDesk but not with the external mode.
Since some years now, dSPACE does not support the external mode simulation directly from Simulink. But you can still make things work without a ControlDesk license (as was our case). So what you will need to do is to make things communicate right? We need communication between whatever you are modeling in Simulink that will be compiled on the target (the ds1104) and an external device. For this we used Modbus. Our external device (a PLC) support Modbus so it was the easiest option. So we used the dSPACE communication interface (cp1104) to connect via a serial cable using RS232. Then the final step is to "model" the Modbus protocol inside your Simulink model. For this we heavily relied on this work:
And that's it, with your PLC you can do monitoring and control of any device in your simulation using Modbus.
0 个评论
Azzi Abdelmalek
2013-1-19
编辑:Azzi Abdelmalek
2013-1-19
Try to build your model, then set your system target file to rti1104, and click on connect to target, then start simulation. I 've never did it before, I will try it tomorrow (I am working on the same card, and always used Controldesk). To configure your model, I think you can do it with rtwinconfigset (you are using with real time windows target)
7 个评论
Prabhakaran Rajasekaran
2013-7-4
编辑:Prabhakaran Rajasekaran
2013-7-4
Is there any other software like control desk from dspace to access the target pc? comment here if anybody have suggestion on this..
khaled20
2017-5-3
Hi dear Abdalazziz I have a request about the controldesk, We have a block diagram in Simulink. We have 'build' the model in Simulink and run it. Now we are trying to use the model in Control Desk to run the real time interface. Everytime we load a .sdf file or a .ppc file of the model, a new tab for the model does not open in the tool window of Control Desk.Hence we are unable to see the variable browser. The instrument selector - we managed to get the data acquisition icon but we could not find the icon for the plotter. we got this error message'may be a wrong file was loaded'. So If you could help us that would be great!
Thank you,
Robin Andersson
2015-7-22
What I think you are looking for are this: https://www.dspace.com/support/patches/TASC/MLIB/discontinuation/MLIB_HIL_API_MigrationGuide/MLIB_HIL_API_MigrationGuide.pdf
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Development Computer Setup 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!