MATLAB command line control of Simulink signal builder
Ältere Kommentare anzeigen
Hi All,
I have a Simulink model that contains a signal builder that has 3 groups of signals. What I want to be able to do is simulate the model from a Matlab m-file for each group of signals. i.e. I will use the sim command 3 times to simulate the model 3 times, but before each time I use the sim command I need to be able to set the active group of signals in the signal builder. Is there any way to do this without have the model file open i.e. run the m-file but not open the .mdl file? Any help is greatly appreciated.
regards,
Andrew
Akzeptierte Antwort
Weitere Antworten (4)
Kaustubha Govind
am 24 Jan. 2013
0 Stimmen
Andy
am 24 Jan. 2013
0 Stimmen
Albert Yam
am 24 Jan. 2013
0 Stimmen
Do you have to use a Signal builder? If you use a lookup table that references a variable 'mysignal' in the workspace, then redefine that 'mysignal' each time before running.
Tonelli
am 17 Mai 2015
0 Stimmen
Hi everybody, I can´t customize the name of the test cases of a signal builder created using a script. The "default name GROUPxx" is always taken as a reference. My goal would be to use a string digited by the user as a default name for the signal builder (i.e: test_case_A (from keyboard) --> Signal builder= test_case_A_1).
SBSystem = signalbuilder([ModelName,'/', SBName], 'create', [0 simulationTime], [0 0], char(ModelTLNameInport{1}), 'Test_COMPONENT_UNIT_Fctl_001');
(basically "Test_COMPONENT_UNIT_Fctl_001" must become the string given by the user).
Thanks a lot in advance. Regards
Kategorien
Mehr zu Signal Import and Export finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!