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:
-- *************************** 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@tess-inc.com http://www.tess-inc.com http://www.trnsys.com |