Skip to content

How to read the string value of an mbbo record #105

Answered by Araneidae
whs92 asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting question. I'm not sure you can, certainly not with mbbo_record.get(), the internal representation of the value is purely as a number. On the other hand, caget(mbbo_record.name, datatype=str) should work, but it is a rather round the houses way of getting at this value.

Really you're not supposed to want the string, or I guess you need to hang onto the string array when creating the record and do the lookup yourself? Definitely don't think there's a way that avoids using (internal) channel access.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whs92
Comment options

Answer selected by whs92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants