The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Simulink Q: Access to integrated variable
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Didik Soetanto

Posts: 1
Registered: 12/11/04
Simulink Q: Access to integrated variable
Posted: Dec 12, 1996 5:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I have a Simulink model consisting 3 S-blocks among other things. An
output (a 12x1 array) of these S-blocks is constrained. All elements in
this array must be positive (not an absolute value, but more like a
saturation constraint) even though the derivatives can be negative.

How do you constraint these values? These are a few things I have tried
(and failed)/thought of:
1. Try to change the values inside a user-defined function. Apparently the
variable is kept by Simulink to itself since the values did change
at the
output of this user-defined function, but the output of the S-block is
unchanged. I even tried to make the variable global!!
2. Same idea as in no. 1. Instead of a user-defined function, I used
Simulink blocks.
3. Same idea as in no. 1 but I placed the constrain inside the S-function.
It changed all the derivatives, but the output is all wrong (and it still
can be negative).

If you have encountered this problem before or/and you have the solution
for it, please e-mail me (preferably) or post it here.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.