Fixed bugs with voltage and freq - #3
Open
sambelltacq wants to merge 2 commits into
Open
Conversation
petermilne
reviewed
Jul 31, 2023
Contributor
There was a problem hiding this comment.
Sam
It's OK, but there are probably better ways.
FPGA:DECIM is the value you want:
For ACQ480, look at the clock tree:
acq2206_009:1:ACQ480:FPGA:DECIM
acq2206_009:2:ACQ480:FPGA:DECIM
acq2206_009:3:ACQ480:FPGA:DECIM
acq2206_009:4:ACQ480:FPGA:DECIM
acq2206_009:5:ACQ480:FPGA:DECIM
acq2206_009:6:ACQ480:FPGA:DECIM
Available as a knob as well as a PV:
/etc/acq400/1/ACQ480:FPGA:DECIM
For voltage. Don't use scale for converting incoming data, use chan2volts() or ESLO directly
It's OK for setting an FG, but, better, in my opinion:
- get the calibration file .xml
- find the range NOMINAL element:
eg:
http://acq2206_005/d-tacq/cal/site.1.xml
then use the max value to scale with. max being easier for your purpose than eslo.
Thanks
Peter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.