how to read data from out port block.?

how to read data from out port block.? and can we save it in a file...? and how to insert outport block to each conditional operator and get the result in a file..? but this should be trough programming.. can any body help?

 Akzeptierte Antwort

Andreas Goser
Andreas Goser am 21 Feb. 2013

1 Stimme

The signals of the outport blocks are written into the MATLAB workspace in case the setting in the "Data Import/Export" tab of the "Configuration Parameters" GUI is accordingly. See the "Output" checkbox.
You can post process those signals in MATLAB including saving them in a file with SAVE.
You can't insert outports into operators, but certainly you could add an outport after each block you are interested in.

3 Kommentare

shoaib badshah
shoaib badshah am 24 Feb. 2013
sir i want to insert outport block to every conditional block(i.e OR,AND,NOR) in a model. That should be by Matlab command prompt. So that i can see the signal after leaving each conditional block.
Andreas Goser
Andreas Goser am 24 Feb. 2013
You can surely do that. ANd if this is a larger model you may want to do this programatically. Although I doubt it is practible. But anyway, see the ADD_BLOCK, GET_PARAM etc. commands
shoaib badshah
shoaib badshah am 26 Feb. 2013
when ever i apply loop on simulink models then i give me this error ''add' is not recognized as an internal or external command, operable program or batch file.' how i can apply loop on simulink models?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by