Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
ardisdk:creating_a_historical_ardi_driver [2022/05/20 11:34] 127.0.0.1 external edit |
ardisdk:creating_a_historical_ardi_driver [2024/09/24 06:33] (current) optrix |
||
---|---|---|---|
Line 165: | Line 165: | ||
This is where the magic happens. This function is responsible for reading the data source and returning time-stamped values for the points that have been requested. | This is where the magic happens. This function is responsible for reading the data source and returning time-stamped values for the points that have been requested. | ||
- | |||
<code python> | <code python> | ||
Line 205: | Line 204: | ||
if bits[self.namecol] in self.lookup: | if bits[self.namecol] in self.lookup: | ||
vl = str(bits[self.valuecol]).strip() | vl = str(bits[self.valuecol]).strip() | ||
- | query.AddRecord(ldt,vl,bits[self.namecol]) | + | query.AddLine(bits[self.namecol],ldt,vl) |
any = True | any = True | ||
Line 213: | Line 212: | ||
if ky in lookupid: | if ky in lookupid: | ||
n = lookupid[ky] | n = lookupid[ky] | ||
- | query.AddRecord(sd,vl,ky) | + | query.AddLine(ky,sd,vl) |
# | # | ||
- | return | + | return |
</ | </ |