Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ardisdk:recordanalogue [2024/12/12 01:33] – optrix | ardisdk:recordanalogue [2025/12/18 22:50] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====RecordAnalogue==== | ||
| + | The **RecordAnalogue** function of the [[histhelper|HistoryFill]] class is used to record the history of an analogue 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=== | ||
| + | |||
| + | <code python> | ||
| + | discrete, analog = history.SplitAddresses() | ||
| + | |||
| + | for d in analog: | ||
| + | #Do work here to determine a time (currenttime) and value (value) for the point... | ||
| + | | ||
| + | </ | ||
| + | |||
| + | ===See Also=== | ||
| + | |||
| + | After filling in all of your analog data, you may - depending on your data - choose to call [[Upsample]] or [[Downsample]] to make your data more useful or improve performance. | ||