Skip to content

Modifying "RVAL" for an AI Record #149

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

You must be logged in to vote

Ah yes, I understand why you get the result you want with AO but not with AI. But ... don't do that, please!

PythonSoftIOC deliberately does not do conversions and takes care to bypass any conversions built into the record type: an AI or AO is the true floating point value that you are reading or writing to that record. Personally I feel that record level programming in EPICS is archaic!

If you want to do conversion for hardware IO, I think you have two choices:

  1. Do the conversion in the driver support, in the IOC code itself. This is straightforward and Python is good at simple arithmetic.
  2. Or, if you insist on doing the conversion in the EPICS layer, you can create a pair of records, for…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Araneidae
Comment options

@XavSPM
Comment options

@Araneidae
Comment options

Answer selected by XavSPM
@XavSPM
Comment options

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
Converted from issue

This discussion was converted from issue #148 on December 22, 2023 07:34.