Rik's Treehouse
>
Babbling in Binary
>
My Software
>
Orphanware
>
R2DToo
>
R2DToo Help
>
Automation
> TimeSeriesAdd
TimeSeriesAdd
Declaration
Parameters
Return Value
Remarks
Example
See Also
Declaration
object.TimeSeriesAdd(series)
Parameters
object
Required. Always the name of a
R2DToo.FrontEnd
object.
series
Character string with the following format:
"operation state"
where
operation
is one of the operations found in the
TimeSeries Operation Listbox
. (Case sensitive.)
state
is one of the states found in the
TimeSeries State Listbox
. (Case sensitive.)
Return Value
Returns 1 on success, 0 on fail (eg. if
operation
or
state
not recognized, or if the
maximum
number of series have already been added).
Remarks
Adds a timeseries to plot, providing a convenient way to record experimental data. Use
TimeSeriesExport
to output the accumulated data to a 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
TimeSeriesClear
,
TimeSeriesExport
,
TimeSeriesRemoveAll
.
[Rik's Office Hours]
[Contact Rik]
Last updated: Fri Apr 30 2004, 1:49pm