[TRNSYS-users] Real-time simulation

keilholz, werner werner.keilholz at cstb.fr
Tue Mar 29 02:29:08 PDT 2011


CSTB is using TRNSYS to run various test benches and measurements.
We also use it for on-site monitoring (running TRNSYS on autonomous EEE-PC boxes) using data transmission (implemented as TRNSYS types) via Internet or cell phone (via an air card in the EEE-PC).

I have worked on a number of TRNSYS components (TYPES) implementing communication with various devices:

- Controllers and measurement devices using the Modbus protocol: KS-45 (industrial controller), AJ12B (electricity meter), Kamstrup (thermal energy meter)

- Delta Dore wireless sensors for temperatures (ambient, room or other sensors)

- Data acquisition systems and specific devices such as Agilent 34980, Yokogawa PZ4000, HP 3852, Resistance box 5011

- RS232 hardware

- The 'Peacemaker' component to slow simulations down to 'real world time' (now standard type 82)


I also made
- A generic "Data Source" component allowing to drive simulations from a GUI.

- An "Sql" component, allowing to send simulation results directly to a Sql data base in real time.
- A "PostUrl" component, allowing to send simulation results directly to any data base, Web-service, or whatever ; this has been used for co-simulation with equipment at different sites, the data base being used to sync the experiments. Data is immediately available on the web site as the experiment runs.

As usual with TRNSYS types, all these concepts can be mixed as needed, which makes for a lot of flexibility : to add a data point from a Modbus device to your web-site, just make a connection in the Trnsys project … it’s a lot of fun actually).

The work has not been published in any way, but if you are interested, you can send me an email and I can check in which form CSTB could collaborate.

Werner


De : trnsys-users-bounces at cae.wisc.edu [mailto:trnsys-users-bounces at cae.wisc.edu] De la part de Matt Duffy
Envoyé : lundi 28 mars 2011 22:53
À : Santiago Naranjo Palacio; trnsys-users at cae.wisc.edu
Objet : Re: [TRNSYS-users] Real-time simulation


Dear Santiago Naranjo Palacio,

Perhaps I am mistaken, but I vaguely remember a presentation at IBPSA Building Simulation 2009 from a gentleman at CSTB who was doing real-time simulation with TRNSYS? Does anyone else remember that? If not, I can ask my colleague upon your request.

Also, TRNSYS can be paused by pressing the "F7" key; TRNSYS also pauses when you run TRNSYS from the compiler in Debug mode and you step through the source code. Thus, I do believe there is a way to do this, but I am unfortunately not sure how.

Best regards,

Matt Duffy
----- Original Message -----
From: "Santiago Naranjo Palacio" <sn377 at cornell.edu>
Sent: Thu, March 24, 2011 9:11
Subje! ct: [TRNSYS-users] Real-time simulation
Dear TRNSYS Users,

Is there a way to run TRNSYS on real-time? I am working on a project where a real controller and a TRNSYS project have to communicate with each other. One of my problems right now is trying to force TRNSYS to run on real-time so that the commands from/to the controller are received at the appropiate time. If this is not possible, is there a way in which TRNSYS can be externally paused after each TIME STEP and restarted after receiving an external signal? (I figure this would be another way of forcing the system to run on real-time).

Thanks!

--
Santiago Naranjo Palacio
________________________________



_______________________________________________

TRNSYS-users mailing list

TRNSYS-users at cae.wisc.edu<javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')>

https://mailman.cae.wisc.edu/listinfo/trnsys-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110329/7ac9f653/attachment-0005.htm>


More information about the TRNSYS-users mailing list