[TRNSYS-users] Data reader: how to always read the last row of a file
David BRADLEY
d.bradley at tess-inc.com
Fri Nov 15 12:59:23 PST 2013
Sinliang,
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.
Kind regards,
David
On 11/15/2013 07:42, SUNLIANG CAO wrote:
> Dear all,
>
> 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).
>
> However, is there any data reader in TRNSYS which can always read the
> data file from the "last line (row)" of the data file?
>
> 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.
>
> Kind Regards,
> Sunliang Cao
>
>
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users
--
***************************
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
d.bradley at tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20131115/d91b89af/attachment-0004.htm>
More information about the TRNSYS-users
mailing list