Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add schedule to ZoneControlHumidistat #1772

Closed
lincolnharmer opened this issue Aug 16, 2015 · 2 comments
Closed

Can't add schedule to ZoneControlHumidistat #1772

lincolnharmer opened this issue Aug 16, 2015 · 2 comments

Comments

@lincolnharmer
Copy link

Schedules can't be add to this object in the GUI or via measure rendering it useless. This may have something to do with the fact that OpenStudio doesn't support schedules with unit type 'Humidity'

@mbadams5
Copy link
Contributor

@lincolnharmer You need to make sure the schedule has a ScheduleTypeLimits that has Units of "Percent".

In the GUI you do this when defining a new schedule...
screen shot 2015-08-16 at 9 50 28 am

When using ZoneControlHumidistat through a measure you need to build the ScheduleTypeLimits yourself. Here is example code to add a ScheduleRuleset to ZoneControlHumidistat.

m = OpenStudio::Model::Model.new

percent_type_limits = OpenStudio::Model::ScheduleTypeLimits.new( m )
percent_type_limits.setLowerLimitValue( 0.0 )
percent_type_limits.setUpperLimitValue( 100.0 )
percent_type_limits.setNumericType( "Continuous" )
percent_type_limits.setUnitType( "Percent" )

sch_ruleset = OpenStudio::Model::ScheduleRuleset.new( m, 50 )
sch_ruleset.setScheduleTypeLimits( percent_type_limits )

zone_control = OpenStudio::Model::ZoneControlHumidistat.new( m )
zone_control.setHumidifyingRelativeHumiditySetpointSchedule( sch_ruleset )
zone_control.setDehumidifyingRelativeHumiditySetpointSchedule( sch_ruleset )

@lincolnharmer
Copy link
Author

@mbadams5 That does the trick. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants