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?

 Risposta accettata

Andreas Goser
Andreas Goser il 21 Feb 2013

1 voto

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 Commenti

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.
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
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?

Accedi per commentare.

Più risposte (0)

Categorie

Prodotti

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by