How to run simulink through dSPACE(DS1104) without control desk?
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (3)
David HERNANDEZ
el 30 de En. de 2020
Editada: David HERNANDEZ
el 30 de En. de 2020
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 comentarios
Azzi Abdelmalek
el 19 de En. de 2013
Editada: Azzi Abdelmalek
el 19 de En. de 2013
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 comentarios
Prabhakaran Rajasekaran
el 4 de Jul. de 2013
Editada: Prabhakaran Rajasekaran
el 4 de Jul. de 2013
Is there any other software like control desk from dspace to access the target pc? comment here if anybody have suggestion on this..
khaled20
el 3 de Mayo de 2017
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
el 22 de Jul. de 2015
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
Ver también
Categorías
Más información sobre Modeling en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!