<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sinliang,<br>
Interesting problem! I do not know of any component that can do
that, unfortunately. It would seem to me that you are going to need
a component as well that makes the TRNSYS simulation sit and wait
until the file has been updated. Since the simulation time is set
internally in the kernel this might prove to be challenging but if
you do force the simulation to wait before it is allowed to progress
on to the next time step then I would think that once time does
progress, Type9 would just advance the file by one line and read it
and that it wouldn't care if it were the end of the file or not. In
any case whether you have the component that reads the last line of
a file or whether Type9 will serve the purpose I think you will need
to write a component that will hold on to the simulation time until
the monitoring system updates the file.<br>
Kind regards,<br>
David<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/15/2013 07:42, SUNLIANG CAO
wrote:<br>
</div>
<blockquote cite="mid:BLU175-W30D314B0669D3FC3549CB2ADFB0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Dear all,<br>
<br>
I have a question about the "Data Readers" in TRNSYS. Normally
we use Type 9 as data readers in our simulation, which read the
data file either from the first line (row) or skipping several
lines (rows) from the first line (row).<br>
<br>
However, is there any data reader in TRNSYS which can always
read the data file from the "last line (row)" of the data file?
<br>
<br>
For example, certain data file is connecting to a monitoring
system, and continuously generates new data rows. And we need to
always use the last row of that data file for the TRNSYS
simulation at each time-step.<br>
<br>
Kind Regards,<br>
Sunliang Cao <br>
<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>