Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
Automation
> TimeSeriesExport
TimeSeriesExport
Declaration
Parameters
Return Value
Remarks
Example
See Also
Declaration
object.TimeSeriesExport(filename, appendmode)
Parameters
object
Required. Always the name of a
R2DToo.FrontEnd
object.
filename
Character string holding the (path and) name of the destination file.
appendmode
"append"
to append the data to the file or
"overwrite"
(or anything else) to replace the file.
Return Value
Returns 1 on success, 0 on fail.
Remarks
Dumps the timeseries to the file
filename
. If
appendmode="append"
then appends data to file (if it exists), otherwise replaces existing file.
Example
' [VBScript] ' load Dim R2DToo Set R2DToo = Wscript.CreateObject("R2DToo.FrontEnd") ' set data to record R2DToo.TimeSeriesAdd("Average alive") ' run... R2DToo.SimRun() ' ...wait for 60 seconds... WScript.Sleep(60000) ' ...stop R2DToo.SimPause() ' append to file R2DToo.TimeSeriesExport("out.dat","append") ' unload Set R2DToo = nothing
See Also
TimeSeriesAdd
,
TimeSeriesClear
,
TimeSeriesRemoveAll
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:49pm