+ Reply to Thread
Results 1 to 9 of 9

Thread: KitControl ?

  1. #1
    Join Date
    Aug 2008
    Posts
    1,104
    Post Likes

    KitControl ?

    How would you set up a "StatusEnum To StatusBoolean" conversion? I have a schedule enum coming in but i cannot get the boolean output to change when i set the schedule from occup to unoccup or vice versa.

  2. #2
    Join Date
    Dec 2007
    Location
    Connecticut
    Posts
    1,228
    Post Likes
    Quote Originally Posted by gazoo View Post
    How would you set up a "StatusEnum To StatusBoolean" conversion? I have a schedule enum coming in but i cannot get the boolean output to change when i set the schedule from occup to unoccup or vice versa.
    Did you set your facets and active values? If that doesn't work, you can use a boolean select.

  3. #3
    Join Date
    Aug 2008
    Posts
    1,104
    Post Likes
    Thread Starter
    i have my in facets as "LonOccupancyEnum" and my active values as occupied, unoccupied...the out stays true{ok} all the time...does not change....

  4. #4
    Join Date
    Sep 2002
    Location
    Hampton Roads, Virginia
    Posts
    2,062
    Post Likes
    Quote Originally Posted by gazoo View Post
    i have my in facets as "LonOccupancyEnum" and my active values as occupied, unoccupied...the out stays true{ok} all the time...does not change....
    with both occupied and unoccupied set as active when do you expect the output to be false?

    Kevin

    Controls is a lifestyle not a job

  5. #5
    Join Date
    Aug 2008
    Posts
    1,104
    Post Likes
    Thread Starter
    the active value represents what???

  6. #6
    Join Date
    Dec 2007
    Location
    Connecticut
    Posts
    1,228
    Post Likes
    The active values are all enum values that you want to use to set the boolean output to be active. If your schedule is 0=UNOCC and 1=OCC, set the active values to be 1 only. Then anything other than a value of 1 will result in an output of false.

  7. #7
    Join Date
    Aug 2008
    Posts
    1,104
    Post Likes
    Thread Starter
    thanks man......lots of sense now.....help manual in docs is very cryptic....

  8. #8
    Join Date
    Jan 2010
    Posts
    44
    Post Likes
    We simply take the Schedule into a boolean select and define outputs of select.

  9. #9
    Join Date
    Jul 2008
    Location
    Melbourne
    Posts
    1,611
    Post Likes
    Quote Originally Posted by gazoo View Post
    How would you set up a "StatusEnum To StatusBoolean" conversion? I have a schedule enum coming in but i cannot get the boolean output to change when i set the schedule from occup to unoccup or vice versa.
    kitControl/conversions/StatusEnumToStatusBoolean.

    ...why not use a schedule/EnumSchedule and set the Schedule Facets to use the Frozen Enum for lonOccupancyEnum?
    1 + 1 = 3 ( *** for very large values of 1)

    ...everybody wants a box of chocolates and long stemmed rose

    Be brave. You cannot get eaten by an imaginary tiger.

+ Reply to Thread

Quick Reply Quick Reply

Register Now

Please enter the name by which you would like to log-in and be known on this site.

Please enter a password for your user account. Note that passwords are case-sensitive.

Please enter a valid email address for yourself.

Log-in

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •