Agent for IFM KQ1001 continuous level sensor #762
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds new agent for reading out an IFM KQ1001 continuous level sensor. Agent is basically a copy of the IFM SBN246 flowmeter agent.
Motivation and Context
I wrote this agent to be able to read out this sensor in the SLAC DR lab.
How Has This Been Tested?
Tested using local checkout of socs at SLAC using a KQ1001 sensor. Seems to be working!
A minor issue is that it at first I had 2x SBN246s and 1x KQ1001 reading out w/ separate agents through a single IFM AL1340 IOLink Master and was getting errors in the agent dockers when all three running (see #760 (comment)). I reduced this by reducing the
Pacemaker
cadence for this new agent from 1 Hz to 0.2 Hz and setting thePacemaker
quantize flag just for this new agent toFalse
. The issue may be due to accessing each of the AL1340 ports via the web interface using 3x separate agents (so there's nothing to prevent collisions). The agents don't seem to crash on these errors, but may have to change the implementation of the AL1340 agent(s) if ever want to scale to a larger number of sensors.Types of changes
Checklist: