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

Revision history [back]

Your HouseModel is expecting a vector of doubles. Currently it is a String. I hence suggest to do the following:

  1. Change value to be a Vector by changing the curly brackets to square brackets: value = [out, 20]

  2. Use the ExpressionToToken actor from the BCVTB library to convert that String to a vector of doubles. The ExpressionToToken is in the Conversions package of the BCVTB library.
    You will need to configure the output of ExpressionToToken to be a vector of doubles. You can do it by right clicking on the actor -> selecting Customize -> Ports and by setting the Type of the output Ports to be [double]. This type should be compatible with the input of your HouseModel.

Your HouseModel is expecting a vector of doubles. Currently it is a String. I hence suggest to do the following:

  1. Change value to be a Vector by changing the curly brackets to square brackets: value = [out, 20]

  2. Use the ExpressionToToken actor from the BCVTB library to convert that String to a vector of doubles. The The ExpressionToToken is in the Conversions package of the BCVTB library.
    You will need to configure the output of ExpressionToToken to be a vector of doubles. You can do it by right clicking on the actor -> selecting Customize -> Ports and by setting the Type of the output Ports to be [double]. This type should be compatible with the input of your your HouseModel.

Your HouseModel is expecting a vector of doubles. Currently it is a String. I hence suggest to do the following:

  1. Change value to be a Vector by changing the curly brackets to square brackets: value = [out, 20]

  2. Use the ExpressionToToken actor from the BCVTB library to convert that String to a vector of doubles. The ExpressionToToken is in the Conversions package of the BCVTB library.
    You will need to configure the output of ExpressionToToken to be a vector of doubles. You can do it by right clicking on the actor selecting Customize -> selecting Customize -> Ports and by setting the Type Type of the output Ports to be [double]. This type should be compatible with the input of your HouseModel.