RecordDiscrete
The RecordDiscrete function of the HistoryFill class is used to record the history of a discrete point.
Parameters
Parameter | Type | Usage |
---|---|---|
Address | string | The full address of the data point |
Date | datetime | The UTC date/time of the data point |
Value | varies | The value recorded |
Example
discrete, analog = history.SplitAddresses() for d in discrete: #Do work here to determine a time (currenttime) and value (value) for the point... history.RecordDiscrete(d,currenttime,value)