Search found 4 matches

by thomas_schlotter
December 23rd, 2015, 5:56 pm
Forum: Simantics System Dynamics
Topic: Define min max value for Stock Symbol
Replies: 0
Views: 67362

Define min max value for Stock Symbol

Hi all, Unfortunately I don't have very much experience with Stock and Flow Diagrams. But I want to define a min and a max value for a stock symbol. In the normal Equation tab of the element I cannot find such an option. Is there such a functionality available? Or is there a possibility to do it wit...
by thomas_schlotter
December 23rd, 2015, 5:41 pm
Forum: Simantics System Dynamics
Topic: mod function not working
Replies: 5
Views: 54778

Re: mod function not working

Cool. Thanks a lot.
I'll try it out with the latest version :-)
by thomas_schlotter
December 21st, 2015, 11:32 pm
Forum: Simantics System Dynamics
Topic: mod function not working
Replies: 5
Views: 54778

Re: mod function not working

I've used the latest version v1.9.3. But the problem still exists.
Wrote my own mod function:

Code: Select all

    input Real a;
    input Real b;
    output Real z;
algorithm
    z := a - floor(a/b)*b;
This works fine.

Thanks a lot.
by thomas_schlotter
December 19th, 2015, 4:03 pm
Forum: Simantics System Dynamics
Topic: mod function not working
Replies: 5
Views: 54778

mod function not working

Hi all, I have a problem that I cannot use the mod function in my simulation model. Whe I try to start the simulation I'm getting this error message: Simulation failed Did not find initial state for model: -modTest: Undefined function 'mod' The formula is this one: mod(4, 3) Do you know what is wron...