Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

@Samuel de Vries: I was wondering if you could please advise me on the error I'm getting using the built-in variable: DayOfWeek - as presented below:

* Severe * EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered. * ~~~ * ...Name; Names used for EMS Programs cannot contain spaces * Fatal * Errors found in getting EMS Runtime Language input. Preceding condition causes termination. ...Summary of Errors that led to program termination: ..... Reference severe error count=1 ..... Last severe error=EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered.

Please find the section of my EMS Program - where I used that DayOfWeek variable - as shown below:

IF (DayOfWeek <= 5), Window_Control_S, IF (Q_Heating > 0) || (Q_Heating_Electric > 0), IF Win_Tout_S > Win_Tin_S && Win_Tout_S > T_SET_H, Set WinS_Construct = HighUHighSHGC, ELSEIF Win_Tout_S < Win_Tin_S, Set WinS_Construct = LowUHighSHGC, ENDIF,

Thanks!

@Samuel de Vries: Vries @Joe Huang: I was wondering if you could please advise me on the error I'm getting using the built-in variable: DayOfWeek - as presented below:

* Severe * EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered. * ~~~ * ...Name; Names used for EMS Programs cannot contain spaces * Fatal * Errors found in getting EMS Runtime Language input. Preceding condition causes termination. ...Summary of Errors that led to program termination: ..... Reference severe error count=1 ..... Last severe error=EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered.

Please find the section of my EMS Program - where I used that DayOfWeek variable - as shown below:

IF (DayOfWeek <= 5), Window_Control_S, IF (Q_Heating > 0) || (Q_Heating_Electric > 0), IF Win_Tout_S > Win_Tin_S && Win_Tout_S > T_SET_H, Set WinS_Construct = HighUHighSHGC, ELSEIF Win_Tout_S < Win_Tin_S, Set WinS_Construct = LowUHighSHGC, ENDIF,

Thanks!

@Samuel de Vries @Joe Huang: I was wondering if you could please advise me on the error I'm getting using the built-in variable: DayOfWeek DayOfWeek - as presented below:

* Severe * EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered. * ~~~ * ...Name; Names used for EMS Programs cannot contain spaces * Fatal * Errors found in getting EMS Runtime Language input. Preceding condition causes termination. ...Summary of Errors that led to program termination: ..... Reference severe error count=1 ..... Last severe error=EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered.

Please find the section of my EMS Program - where I used that DayOfWeek DayOfWeek variable - as shown below:

IF (DayOfWeek <= 5), Window_Control_S, IF (Q_Heating > 0) || (Q_Heating_Electric > 0), IF Win_Tout_S > Win_Tin_S && Win_Tout_S > T_SET_H, Set WinS_Construct = HighUHighSHGC, ELSEIF Win_Tout_S < Win_Tin_S, Set WinS_Construct = LowUHighSHGC, ENDIF,

Thanks!

@Samuel de Vries @Joe Huang: I was wondering if you could please advise me on the error I'm getting using the Erl built-in variable: DayOfWeek - as presented below:

* Severe * EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered. * ~~~ * ...Name; Names used for EMS Programs cannot contain spaces * Fatal * Errors found in getting EMS Runtime Language input. Preceding condition causes termination. ...Summary of Errors that led to program termination: ..... Reference severe error count=1 ..... Last severe error=EnergyManagementSystem:Program="IF (DAYOFWEEK <= 5)", Invalid variable name entered.

Please find the section of my EMS Program - where I used that DayOfWeek variable - as shown below:

IF (DayOfWeek <= 5), Window_Control_S, IF (Q_Heating > 0) || (Q_Heating_Electric > 0), IF Win_Tout_S > Win_Tin_S && Win_Tout_S > T_SET_H, Set WinS_Construct = HighUHighSHGC, ELSEIF Win_Tout_S < Win_Tin_S, Set WinS_Construct = LowUHighSHGC, ENDIF,

Thanks!