Hi, I want to use the output of a block as the upper limit in a saturation block. Is there a way to store the ouput of block in a variable name and use the variable name in the saturation block parameters? Thanks in advance. Srinivas |
Simulink
Started by ●September 25, 2003
Reply by ●September 25, 20032003-09-25
No, but you can use the minimum (min), maximum (max), and absolute value blocks to accomplish what you want. Although you may be able to do what you literally asked, you have to be very careful because (to save execution time) Simulink blocks only check their parameters when the model is initialized (i.e., before the simulation really starts running). You would have to force an update of the model at every time step, and then I'm not sure that the states within your other blocks would be preserved. You'll be much better off using the minimum, maximum, absolute value, and/or comparison (<,<=,>,>=,==,~=) blocks to implement what you want. Sincerely, Glen Ragan -----Original Message----- From: srinivas kowta [mailto:] Sent: Thursday, September 25, 2003 8:56 AM To: Subject: [matlab] Simulink Hi, I want to use the output of a block as the upper limit in a saturation block. Is there a way to store the ouput of block in a variable name and use the variable name in the saturation block parameters? Thanks in advance. Srinivas _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/matlab More DSP-Related Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/ |