Skip to content

Python code for generating and uploading epu calbration tables to the `undcontrol` IOC

License

Notifications You must be signed in to change notification settings

NSLS-II-CSX/undcontrol_cal_tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

undcontrol_cal_tables

Python code for generating and uploading epu calbration tables to the undcontrol IOC

Original IOC repo

Python from updated branch

Usage Python tools instructions at 23ID-1 (CSX):

  1. Start ipython session (analysis)
  2. %run -i maketable.py
  3. Develop the fits to data and determine paramters fr set_EPUioc_table()
  4. if you encounter an issue with "memory" you may need to set the maximum sized array allow for EPICS. I am not sure if !export.... command will work in ipython session. you may need to exit the session to run export EPICS_CA_MAX_ARRAY_BYTES=100000000.
  5. pyepics has not been imported as a fail safe. When ready, you will need to import epics

Example Usage:

testing w/ conversion of first harmonic data to third harmonic data without writing lookup values to the IOC table

`set_EPUioc_table('20190813_Gap_1stH_Phase28p5.csv', Emin=600, Emax=2000, Epts=22500, third_fm_first=True)`          

writing lookup values to ioc table 6 with default setttings

`set_EPUioc_table('20190813_Gap_1stH_Phase28p5.csv',22500, 6, True)`

About

Python code for generating and uploading epu calbration tables to the `undcontrol` IOC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages