I'm trying to store data in the tag historian tables using 'virtual' tags to use the pre-existing Power Chart component to display data easily along with other tags data.
Does the following show the correct way to instantiate a TagPath object? I have the following function, and it seems like these tags are making their way to the memory buffer without being quarantined, but I do not see any rows being added to my historian tables.
I haven't quite figured it out yet, but I've made a bit of progress. I followed the advice from this old forum post and wrapped my historical data in a BasicScanClassHistorySet, and that managed to start storing data points, but it's not setting up the entries in sqlth_te, sqlth_scinfo, sqlth_sce, and sqlth_drv correctly.
Specifically, it is populating the entries with null ID's, making the historical data impossible to reference.
@pturmel@Kevin.Herron@PGriffith Sorry to ping you guys, but do any of you have any experience with the Ignition SDK and the Tag Historian? The JavaDocs aren't doing me many favors regarding my issues.
You guys are my go-to with the hard questions... sorry.
No need to ever ping me. I read everything here, and didn't have an answer for you. (I do have some experience with History sinks, but they didn't work the way I wanted. I'm proceeding with a design based on a TagActor.)
Disclaimer: All I'm doing is reading the code for an existing solution; I can guarantee you two things:
I'm not an expert in this area, so I can't help you if you need to deviate from this significantly.
There's going to be a new, preferred API to do this in 8.3. The existing API will (probably) continue to work, for backwards compatibility, but some amount of migration may be necessary.