Counting true/false with status properties

Answered

Comments

6 comments

  • Official comment
    Avatar
    Rick Kossik

    You need to be more specific as to what you are trying to do. What do you mean by counting true and false?  So is some element changing throughout the simulation between True and False? If so, this is easy to do.  Trigger a Discrete Change and add it to an Integrator that is the counter.

    Comment actions Permalink
  • Avatar
    Peter Serey

    Hi Rick, 

    Yeah, that's what I am looking for. 

    Many thanks

    1
    Comment actions Permalink
  • Avatar
    Rick Kossik

    So can you figure it out based on my description?

    0
    Comment actions Permalink
  • Avatar
    Peter Serey

    Hi Rick, 

    Yes, I can. I know the amount that accounts for each trigger event. Am i doing correctly?

    0
    Comment actions Permalink
  • Avatar
    Rick Kossik

    Hard to tell without seeing the model. You are the best judge of that.  Does it appear to be working as you expect?

    0
    Comment actions Permalink
  • Avatar
    Peter Serey

    Yes, it does  

    Many thanks 

    0
    Comment actions Permalink

Please sign in to leave a comment.