Search found 4 matches
- December 23rd, 2015, 5:56 pm
- Forum: Simantics System Dynamics
- Topic: Define min max value for Stock Symbol
- Replies: 0
- Views: 70807
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...
- December 23rd, 2015, 5:41 pm
- Forum: Simantics System Dynamics
- Topic: mod function not working
- Replies: 5
- Views: 57862
Re: mod function not working
Cool. Thanks a lot.
I'll try it out with the latest version
I'll try it out with the latest version
- December 21st, 2015, 11:32 pm
- Forum: Simantics System Dynamics
- Topic: mod function not working
- Replies: 5
- Views: 57862
Re: mod function not working
I've used the latest version v1.9.3. But the problem still exists.
Wrote my own mod function:
This works fine.
Thanks a lot.
Wrote my own mod function:
Code: Select all
input Real a;
input Real b;
output Real z;
algorithm
z := a - floor(a/b)*b;
Thanks a lot.
- December 19th, 2015, 4:03 pm
- Forum: Simantics System Dynamics
- Topic: mod function not working
- Replies: 5
- Views: 57862
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...