-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TriggerMethod not used (?) #113
Comments
Use of the DPD object within this plugin is somewhat limited due to a couple early implementation choices.
I believe we do use the DPD to try to read a name and unit off of proprietary DDIs, but otherwise DPD attributes may not be used in the plugin. If you have a need for this particular attribute, there is a LoggingMethodEnum in the ADAPT framework currently attached to the DataLogTrigger. We could likely reuse this same enum on another of the ADAPT objects, and we have discussed making the data interpolation configurable, were there ever a need. Feel free to submit a pull request, or discuss further here. |
Thanks for this explanation and putting my attention to the right places. I was expecting that the intermediate values (replicating, interpolating) would be based on this attribute. Maybe only when threshold limits and totals are logged this might go wrong.
|
The interpolation code already existed when I started working with the plugin several years back, and I haven't spent much time with it (other than noting that it appeared to work well enough). It appears that _numericRepresentationTotals contains a hardcoded list of representations for which the implementer wanted to avoid repeating a value and preferred to zero out the value. If indeed that is what is desired on totals DDIs, I agree that parsing the bitflags on DPD@D seems like a preferable approach. |
The DPD (Device Process Data) node holds a TriggerMethod in attribute D. This gives information on when a DDI (attribute B) is logged:
1 = Time interval
2 = Distance interval
4 = Threshold limits
8 = On change
16 = Total
TriggerMethod doesn't seem to be used for ADAPT although this seems important for the scope of a logged value.
The text was updated successfully, but these errors were encountered: