[Equest-users] Quest BDL Function Programming

Aaron Powers caaronpowers at gmail.com
Fri Jun 19 14:06:06 PDT 2015


Daric, the following code should work for you.  Add extra if-then
statements for additional space types.


/*

 * Sets minimum outside air based on control zone activity description.

 * Copy and paste into Minimum Air Schedule field under Outside Air

 * tab of system.

 */

if(#LR("CONTROL-ZONE","SPACE","C-ACTIVITY-DESC") =="Off") then

 #SI("Office Min OA Sch", "SYSTEM", "MIN-AIR-SCH")

else

 #SI("Residential Min OA Sch", "SYSTEM", "MIN-AIR-SCH")

endif


In this case, I have spaces with Activity Description = "Off" and two
fraction schedules (one for offices and one for residential).  A short
warning: the Activity Description field always gets cut off at 4 letters.
So if you have two space types with with Activity Description =
"Residential 1" and "Residential 2", then running #L("C-ACTIVITY-DESC")
will return "Resi" for both space types and won't recognize them as
different.  As a safety precaution, I always keep my Activity Descriptions
to 4 letters or less so that I don't get surprises.  I'm not exactly sure
for the reason of the cut-off, but I have a feeling this keyword was
originally only intended to be used internally by eQuest for code
compliance runs.


Aaron



Hello All;



Has anyone had success using  a User Default expression  for a System to
reference the control zone’s Activity Description to set a MinOA Schedule?

Effectively, the System’s MinOA Schedule to references the Control-Zone,
which will look at the Control-Zone’s to determine the Space, and then
determine the Activity Description of the Space.

I believe the use of #LR and #L gets me on the right path, but haven’t been
able to ‘crack the nut’….

The code below attempts pass referenced names, but unsure where the
breakdown is…





   FAN-SCHEDULE     =

   {switch(#LR(#LR(#L("CONTROL-ZONE"),"NAME")),"SPACE")

case "SCHO" : #SI("FAN SUP EVNT","CONTROL-ZONE","FAN-SCHEDULE")

case "OFFI" : #SI("FAN SUP EVNT","CONTROL-ZONE","FAN-SCHEDULE")

default : no_default

endswitch}





There are more than 2 activity types, but it has been shorted for testing &
debugging.

In reality, IF this is possible, any of the System level schedules should
be able to be set from the Controlling Zone’s Space’s Activity Description.

Any help is greatly appreciated.









Thanks,

DARIC R. ADAIR  PE, C.E.M.
Mechanical Engineer, Energy Analyst

[image: HEI logo]

*Henderson Engineers, Inc.*  8345 Lenexa Drive, Suite 300   Lenexa, KS 66214
*dir* 913 742 5530  *tel* 913 742 5000  *fax* 913 742 5001  *tx id* #F-001236
 *www.hei-eng.com* <http://www.hei-eng.com/>

Licensed in KS.
Sending me large files? Please use my HEI DropBox
<https://apps.hei-eng.com/DropBox/upload.aspx?to=daric.adair@hei-eng.com>

[image: Facebook Logo] <http://www.facebook.com/hendersonengineers>

[image: Twitter Logo] <http://twitter.com/hei_eng>

[image: Linkedin Logo]
<http://www.linkedin.com/company/henderson-engineers-inc>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150619/a8356fc5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 198 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150619/a8356fc5/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 177 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150619/a8356fc5/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 192 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150619/a8356fc5/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 5566 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/equest-users-onebuilding.org/attachments/20150619/a8356fc5/attachment-0003.gif>


More information about the Equest-users mailing list