[TRNSYS-users] event counter in TRNSYS15

Todd Houstein toddh at utas.edu.au
Tue May 16 00:06:22 PDT 2006


Graham,
I have written a TRNSYS TYPE I call the "Equipment Monitor" that does what
you require, along with several other things. You (and everyone else in the
TRNSYS community) are welcome to use it. The relevant files are attached in
a zip file, and some notes on it are given below.

Kind regards,
Todd

---------------------------

EQUIPMENT MONITOR (TYPE206)

INPUTS:
For any number of controllers/equipments the Equipment Monitor takes two
inputs:
- Switch: Whether the equipment is on or off
- Level:  For example, the load power for a diesel generator

OUTPUTS:
For each controller/equipment the Equipment Monitor gives the following
outputs:
- Number of uses (i.e. number of times switched on) (GRAHAM: I believe is
what you are after!)
- Total time in use
- Mean period of use (= total time in use / number of uses)
- Longest period of use (longest time between being switched on and switched
off)
- Shortest period of use (shortest time between being switched on and
switched off)
- Mean level (average level when switched on)
- Maximum level (greatest level when switched on)
- Minimum level (least level when switched on)

HISTOGRAM DATA:
In addition to the outputs above, the Equipment Monitor can also produce
histogram data, which can be quickly and easily plotted in Microsoft Excel
(or similar). It produces both frequency and cumulative frequency data of
the equipment levels while the equipment was switched on. The data is
exported as comma separated data to an external file, which may be opened in
Microsoft Excel (or similar). To use this feature:
- Set the "Give histogram data?" parameter to 1
- Select the number of points you want on your histograms
- The "LU" parameter is used as the logical unit for the external data file.
You can usually leave this set to the default value of 206, but you may need
to change it if you already have another file assigned to this number.
- Select the external file where you want the data to be written

IMPORTANT NOTE: The histogram option can cause the simulation to take a long
time to run. All of the processing for it is done after the last timestep,
so you may experience a long pause between the simulation reaching 99%
complete and the actual end of the simulation. If you don't require
histogram data then it's best to switch this option off by setting the "Give
histogram data?" parameter to 0.


HOW TO INSTALL:
1) Copy Type206.dll into \..\Trnsys16\UserLib
2) Copy Type206.bmp and Type206.tmf into \..\Trnsys16\Studio\Proformas or an
appropriately named subfolder.
3) In TRNSYS Simulation Studio, select "Refresh Tree" from the "Direct
Access" menu. The component should now appear in the access tree in
Simulation Studio as "Type206"


All feedback is welcome! My contact details are below.

Cheers,
Todd

-----------------------------------------------------------------
Todd Houstein  BEng(Hons)  MIEAust
President
Engineers Without Borders Tasmania
www.ewb.org.au/tasmania

PhD Candidate
Hydrogen & Allied Renewable Technologies (HART) research team
www.eng.utas.edu.au/research/hart/hydrogen.html
School of Engineering
University of Tasmania
Private Bag 65 Hobart
Tasmania Australia 7001

Office: +61 3 6226 2094
Fax:    +61 3 6226 7863
Mobile: +61 4 1071 7177
-----------------------------------------------------------------


-----Original Message-----
From: trnsys-users-bounces at engr.wisc.edu
[mailto:trnsys-users-bounces at engr.wisc.edu]On Behalf Of Graham Morrison
Sent: Tuesday, 16 May 2006 12:58
To: trnsys-users at engr.wisc.edu
Subject: [TRNSYS-users] event counter in TRNSYS15


Dear TRNSYS15 users

In TRNSYS15 is it possible to get a count of the number of times a
controller turns on.
eg when using a TYPE2  ON/OFF differential controller  is it possible to
count the number of times it turns on?

Thanks

Graham Morrison

26 Hopetoun St
Paddington 2021

02 93613835
0425 212 218

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Equipment monitor.zip
Type: application/x-zip-compressed
Size: 15342 bytes
Desc: not available
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20060516/3809d362/attachment-0005.bin>


More information about the TRNSYS-users mailing list