Effacer les filtres
Effacer les filtres

How to run simulink through dSPACE(DS1104) without control desk?

46 vues (au cours des 30 derniers jours)
Manikandan
Manikandan le 19 Jan 2013
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

Réponses (3)

David HERNANDEZ
David HERNANDEZ le 30 Jan 2020
Modifié(e) : David HERNANDEZ le 30 Jan 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.

Azzi Abdelmalek
Azzi Abdelmalek le 19 Jan 2013
Modifié(e) : Azzi Abdelmalek le 19 Jan 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 commentaires
Prabhakaran Rajasekaran
Prabhakaran Rajasekaran le 4 Juil 2013
Modifié(e) : Prabhakaran Rajasekaran le 4 Juil 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
khaled20 le 3 Mai 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,

Connectez-vous pour commenter.


Robin Andersson
Robin Andersson le 22 Juil 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
  1 commentaire
Manikandan
Manikandan le 22 Juil 2015
This will explain control dSPACE card via another front end. but not clear how to interface with direct SIMULINK. Take an example of Arduino, we can control the Arduino board through SIMULINK via external mode. Same kind possible in dSPACE?

Connectez-vous pour commenter.

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by