Announcement

Collapse
No announcement yet.

Load setpoint into variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • email68
    replied
    Originally posted by Rupp View Post
    Sorry it should be hs.setDeviceValue "$7", sTempVar
    That was it Rupp.

    Thank you so much!

    -Tim

    Leave a comment:


  • Rupp
    replied
    Sorry it should be hs.setDeviceValue "$7", sTempVar

    Leave a comment:


  • email68
    replied
    Thanks Rupp,

    I tried it and I'm getting this error:

    12/25/2010 4:36:59 PM - Error - Running script, script run or compile error in file: setVar.txt13:Type mismatch: 'setDeviceValue' in line 3 More info: Type mismatch: 'setDeviceValue'

    Leave a comment:


  • Rupp
    replied
    *3 holds the thermostat setpoint. $7 is the stargate variable that I need to load with the value from *3.

    Once $7 has the value, I can display it on my LCD Keypads.

    Try this. Name this file setVar.txt
    sub main()
    sTempVar = hs.deviceValue("*3")
    setDeviceValue "$7", sTempVar
    end sub

    This is for the device value, if you want to "see" the value then you need use SetDeviceString

    Leave a comment:


  • email68
    replied
    Originally posted by Rupp View Post
    When you say a variable, are you writing a script and need to use the value in a script or do you mean to load the value into another virtual device?
    I have a device from stargate that is a variable.

    I need to copy the thermostat setpoint value into that other variable.

    For example *3 holds the thermostat setpoint. $7 is the stargate variable that I need to load with the value from *3.

    Once $7 has the value, I can display it on my LCD Keypads.

    The first screen shot is *3 that holds the setpoint value. The second is the stargate variable that I need to load with the setpoint.



    -Tim
    Attached Files

    Leave a comment:


  • Rupp
    replied
    When you say a variable, are you writing a script and need to use the value in a script or do you mean to load the value into another virtual device?

    Leave a comment:


  • email68
    replied
    Originally posted by Rupp View Post
    Is the setpoint value in a device string?

    Yes, the device string has the degree symbol with it, but the device value has the same number w/o a symbol.

    Maybe the device value would be easier to load to another variable?

    Still need to know how.

    Thanks

    -Tim

    Leave a comment:


  • Rupp
    replied
    Is the setpoint value in a device string?

    Leave a comment:


  • email68
    started a topic Load setpoint into variable

    Load setpoint into variable

    How can I load the heat or cool setpoints into another variable?

    I'm trying to pass the information to a JDS Stargate for display and adjustment on the LCD keypads. I've created a tstat setpoint variable but I can't see how to load that information from the HAI device into it.

    Thanks

    Tim
Working...
X