Somebody help me please!! ramp and pulse train combination

Use this forum to post Vensim related questions.
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Somebody help me please!! ramp and pulse train combination

Post by RWTH_FCN »

tomfid wrote: Wed Jul 24, 2019 1:16 pm Here's a simple structure that generates pulses. There are a couple limitations - width=TIME STEP, and it wouldn't work with RK4 integration. I'm guessing it would work for your case though.

PULSE TRAIN alternative 1.mdl
In the attached model the pulse function does not work properly. I was wondering, what is the reason.
Attachments
testmodel.mdl
(13.26 KiB) Downloaded 154 times
data II.cin
(858 Bytes) Downloaded 161 times
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Somebody help me please!! ramp and pulse train combination

Post by Administrator »

Can you let us know which parameter is the problem one, and why you think it is not working properly?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Somebody help me please!! ramp and pulse train combination

Post by tomfid »

Seems fine to me. Pulse starts at 3 and lasts for 5?
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Somebody help me please!! ramp and pulse train combination

Post by RWTH_FCN »

Administrator wrote: Wed Oct 28, 2020 2:36 pm Can you let us know which parameter is the problem one, and why you think it is not working properly?
Pulse func. Because it does not produce a pulse at time 3.
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Somebody help me please!! ramp and pulse train combination

Post by RWTH_FCN »

tomfid wrote: Wed Oct 28, 2020 3:35 pm Seems fine to me. Pulse starts at 3 and lasts for 5?
I do not see any pulse when I open a graph for pulse func.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Somebody help me please!! ramp and pulse train combination

Post by Administrator »

Is pulse func in your savelist?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Somebody help me please!! ramp and pulse train combination

Post by tomfid »

The savelist is probably the problem - I deleted it when I ran the model because it wasn't included, so the results looked fine.
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: Somebody help me please!! ramp and pulse train combination

Post by RWTH_FCN »

Administrator wrote: Wed Oct 28, 2020 4:02 pm Is pulse func in your savelist?
No, but I removed the savelist completly and it works now!
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Somebody help me please!! ramp and pulse train combination

Post by Administrator »

If it was not in the savelist, the results from it's calculation would not have been saved. That means no graphs.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply