EtherNetIPDevice#
- class EtherNetIPDevice(
- config: EtherNetIPConfig | dict | Path | str,
- connection: EtherNetIPConnectionInfo | dict | None = None,
- name: str | None = None,
- publishers: list[Publisher] | None = None,
- autostart: bool = False,
- **kwargs,
Bases:
InstrumentEtherNet/IP device with config-driven tag access.
Initialize an Instrument.
- Parameters:
name – Channel-name prefix for published data.
publishers – Publishers that receive emitted Measurement/Command data.
background_config – Background-daemon settings; default if omitted.
legacy_naming – When True, publish channels under their pre-v1.0 names (e.g.
main.ch1_vinstead ofmain.ch1.voltagefor PSU) for dashboards or recorded datasets keyed on those names. The setting is all-or-nothing per instrument. PSU, ELoad, I2C, InstroScope, and DAQ digital channels honor the flag; the categories with no v1.0 rename (DMM, Modbus, DAQ analog and relay channels) ignore it. Scheduled for removal in v2.0.**kwargs – Default tags applied to every emitted
MeasurementorCommand. Passdataset_rid="<rid>"to auto-create a NominalCorePublisher (uses the on-disk ‘default’ Nominal credential).
Attributes
EtherNet/IP endpoint address. |
|
Seconds between background daemon iterations (0 = no wait). |
|
Return an insertion-ordered snapshot of all published channel names. |
Methods
Append |
|
Register a publisher to receive this instrument's Measurement/Command data. |
|
Close the EtherNet/IP session and stop background polling. |
|
Replace all daemon functions with a single |
|
Return the most recent |
|
Return the most recent sample for |
|
Open the EtherNet/IP session. |
|
Fan |
|
Read one configured tag by alias and publish the result. |
|
Read one configured tag by alias and publish the result. |
|
Start background polling for poll-enabled EtherNet/IP tags. |
|
Signal the background daemon to stop and join it. |
|
Write one configured tag by alias and publish the command. |
|
Write one configured tag by alias and publish the command. |