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

Schedules in BCVTB

asked 2018-12-04 12:36:21 -0600

M 108014 gravatar image

updated 2018-12-08 20:28:26 -0600


I am trying to have another external schedule for "ePlus85-schedule" example in BCVTB examples library. However, the file that I am reading my data from is creating some problems. I have the files uploaded here. I would appreciate that if someone can help me with this issue.


edit retag flag offensive close merge delete


@Thierry Nouidui Could you please help me with this.?

M 108014 gravatar imageM 108014 ( 2018-12-05 11:58:02 -0600 )edit

I don't seem to have access to that google drive...Could you please change the permissions so I have access to it?

Thierry Nouidui gravatar imageThierry Nouidui ( 2018-12-05 12:20:20 -0600 )edit

@Thierry Nouidui Could you please check this link? I have the link available for edit for others also. Could you please let me know if you have access to that?

M 108014 gravatar imageM 108014 ( 2018-12-05 14:56:38 -0600 )edit

Before unmet hours, I uploaded this files in the googlegroup. They might be available through google drive also. Thanks

M 108014 gravatar imageM 108014 ( 2018-12-05 15:21:19 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-06 00:00:01 -0600

Thierry Nouidui gravatar image

I looked at your model and you seem to have added an extra port to the Simulator Actor. You shouldn't do that.

The Simulator Actor is expecting one vectorized double input and one vectorized double output. You should use the VectorAssembler in your model to concatenate the outputs of your TSetPoi block to one vectorized output. Please make sure that the types are the same. I see for instance that one of your outputs is of type String. You will need to convert it to a double prior to concatenation. You will then be able to feed the vectorized output to the input of the Simulator Actor.

Note: I haven't run your model to see whether it works but think this to be one mistake which will certainly prevent the model to run properly. I suggest to read the BCVTB manual to correctly set-up the Simulator Actor.

edit flag offensive delete link more


@Thierry Nouidui Thanks a lot for your help. I revised that section (simulator) which is really important. However, even checking the Ptolemy II manual, I did not find any section to discuss how I can transform strings to doubles. From the output of the "File Reader", I have a string output but I checked converters like "AnythingToDouble" and they are just giving me "NaN" as output. I would appreciate that if you could help me with this issue also?

M 108014 gravatar imageM 108014 ( 2018-12-06 10:55:02 -0600 )edit

Use the LineReader instead of the FileReader actor and then use the StringToDouble actor to convert the output string into a double.In BCVTB version 1.6, the StringToDouble actor is in the Actors -> Conversions library

Thierry Nouidui gravatar imageThierry Nouidui ( 2018-12-07 11:40:13 -0600 )edit

@Thierry Nouidui Thanks a lot for your help.

Thanks again

M 108014 gravatar imageM 108014 ( 2018-12-08 20:26:52 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2018-12-04 12:36:21 -0600

Seen: 49 times

Last updated: 22 hours ago