Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Simulink Problem


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic
Share this topic:
| More

#1 hoyoku

hoyoku

    Gold Member

  • Members
  • 61 posts

Posted 23 October 2008 - 08:01 AM

Hi there, I have some simulink problem. Lets say I have a transfer function like this:

az^-1 + bz^-2 +cz^-3

The initial value of a,b,c are 0.1 0.2 0.3. I would like to change the value to 0.4 0.1 -0.5 at the nth iteration step. How to do I do it? How to I code the simulation time in simulink so that I can write "if the time > 70, a = 0.4, b =0.1, c= -0.5? Thanks.

#2 joerd

joerd

    Gold Member

  • ChE Plus Subscriber
  • 371 posts

Posted 23 October 2008 - 08:40 AM

You need a Clock block to provide the time.
See http://www.caspur.it...lref/slref.html
or http://www.mathworks...olbox/simulink/


#3 hoyoku

hoyoku

    Gold Member

  • Members
  • 61 posts

Posted 23 October 2008 - 10:14 AM

But how do I quote the outputs of the clock so that I can write the following:

If clocktime < 70

a = ..
b = ..
c = ..
.
.
.
.
j = ..

else

a = ..
b = ..
c = ..
.
.
.
.
j = ..

end

Thanks


QUOTE (joerd @ Oct 23 2008, 09:40 PM) <{POST_SNAPBACK}>






Similar Topics