Houselight not turning on when given command in middle of session

MEDState Notation Repository Forums Coding Help Archive Houselight not turning on when given command in middle of session

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12634
    Med_Support
    Moderator
    Med

    I’m having an issue with some programming and I can’t figure out why its not working as what I’m trying to do is quite simple.
    I’m using a VI30 program that I’ve been using for a while, but I’ve added on an extra stateset (SS10) where I’m turning the houselight on 10 mins into the session, and then turning it off after ten mins. This isn’t working. I’ve also tried it the other way around where I start the session with the houselight on and try turning it off after 10 mins and that won’t work either. Any ideas?

    #12635
    Med_Support
    Moderator

    Hello,

    Here is S.S.10 from your code:

    S.S.10
    S1,
    #START: --->S2
    S2,
    10": ON^HOUSELIGHT --->S3
    S3,
    10": OFF^HOUSELIGHT --->Sx
    

    What this State Set does is after the START command the State Set waits 10 seconds and then turns on the House Light.  The State Set then waits for 10 seconds and turns off the House Light.

    A double quote is for seconds.
    A single quote is for minutes.

    So a simple change should do what you want:

    S.S.10
    S1,
    #START: --->S2
    S2,
    10': ON^HOUSELIGHT --->S3
    S3,
    10': OFF^HOUSELIGHT --->Sx
    

    Please let me know if this helps.
    Gary

    P.S. I’ve discovered that the forum editor does not like curly or smart quotes.  That is why your previous posts wouldn’t display.  If you only use straight quotes, then it works.

    #12638
    Med_Support
    Moderator
    Med

    Doh! I knew it would be something simple. Thanks for your help, I will go try it out.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.