Skip to content

Bugfix: AnalogInput handling#1

Open
guirodrigueslima wants to merge 1 commit intoDiamondLightSource:masterfrom
cnpem:dev
Open

Bugfix: AnalogInput handling#1
guirodrigueslima wants to merge 1 commit intoDiamondLightSource:masterfrom
cnpem:dev

Conversation

@guirodrigueslima
Copy link

The initialization logic for AnalogInputInterval and AnalogInputEnable has been updated. At Sirius in Brazil, some e-Vision 2 units do not provide analog input/output capabilities. In these cases, the AnalogInputInfo command returns only a header with no valid data. Attempting to configure AnalogInputInterval and AnalogInputEnable results in an error, causing the IOC initialization to fail.

To address this issue, the IOC now checks the number of available analog inputs using the Info command response. Analog input configuration is only performed when inputs are present.

This change ensures compatibility with different e-Vision 2 variants and does not affect existing behavior for systems that support analog inputs, such as Microvision modules.

The initialization logic for AnalogInputInterval and AnalogInputEnable
has been updated. At Sirius, some e-Vision 2 units do not provide analog
input/output capabilities. In these cases, the AnalogInputInfo command
returns only a header with no valid data. Attempting to configure
AnalogInputInterval and AnalogInputEnable results in an error, causing
the IOC initialization to fail.

To address this issue, the IOC now checks the number of available
analog inputs using the Info command response. Analog input
configuration is only performed when inputs are present.

This change ensures compatibility with different e-Vision 2 variants
and does not affect existing behavior for systems that support analog
inputs, such as Microvision modules.
@gilesknap
Copy link
Contributor

thanks @guirodrigueslima its not going to be easy to test this change for a while.

But I will do so when I containerise this module somethime in the next 12 months and will merge your change then if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants