Skip to content
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

Editing any DSM in an XML with DMMAT cards intermittently fails with channel out of range #12

Open
janineA opened this issue Dec 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@janineA
Copy link
Contributor

janineA commented Dec 23, 2021

Intermittently, editing any DSM fails due to the error:

“Invalid parameter: Exception: InvalidParameterException: cvi-dsm:/dev/dmmat_a2d0: channel: value=32 is outside the range 0:31”

Channel was not set with gain/bipolar for vars under DIAMOND cards under cvi-dsm. In that case, nidas takes whatever the previous value was (could be from another sensor) and increments. If the increment gets above 31, nidas/dynld/A2DSensor.cc::validate() function throws the error.

To fix, I added “<parameter name="channel" type="int" value="0"/>” to the first variable under each DMMAT sensor.

Each new card should start at channel zero.

Se SOCRATES for an example of this.

@janineA janineA added the bug Something isn't working label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant