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

Add handling for max string length on pydaq controls, labels #93

Open
ZLLentz opened this issue Dec 16, 2020 · 1 comment
Open

Add handling for max string length on pydaq controls, labels #93

ZLLentz opened this issue Dec 16, 2020 · 1 comment

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Dec 16, 2020

Expected Behavior

  • Should truncate the string automatically if it is created automatically

Current Behavior

  • Likely just raises the pydaq exception
@ddamiani
Copy link

Just to note the latest version of pydaq (10.2.4+) will throw a ValueError if the length of the name field for pv controls, monitors, and labels is longer than 32 bytes (including a null terminator in that 32, so the string length is really 31).

The value field of the pv labels is 64.

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

No branches or pull requests

2 participants