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

gen_high_level_params_mat.m: add function #2

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

guilhermerc
Copy link
Contributor

A function for generating the high-level parameters matrix file following the High-Level FOFB IOC conventions. This file can be directly inputed into the High-Level FOFB GUI.

@guilhermerc
Copy link
Contributor Author

guilhermerc commented Jun 13, 2024

The matrix generated by gen_high_level_params_mat and the one currently used in operation match pretty well (?).

>> cl_ps_idtf_fpath = 'lamp_cl_200-adj_no_beam-cl_ps_idft.mat';
>> ps_pi_fpga_gains_fpath = 'lamp-300mv-01-adj-ps_pi_fpga_gains.txt';

>> gen_high_level_params_mat(cl_ps_idtf_fpath, ps_pi_fpga_gains_fpath, 'params.txt');
>> params = readmatrix('params.txt');
>> switching_plus_preemph_200_10000_params = readmatrix('/tmp/switching_plus_preemph_200_10000_params');
>> size(params)

ans =

   160    23

>> size(switching_plus_preemph_200_10000_params)

ans =

   160    23

>> diff = (params - switching_plus_preemph_200_10000_params);
>> norm(diff)/norm(switching_plus_preemph_200_10000_params)

ans =

   5.9663e-10

>> max(max(abs(diff)))

ans =

   1.3914e-04

@guilhermerc guilhermerc force-pushed the gen-high-level-params-mat branch 2 times, most recently from 293ba35 to e310add Compare June 14, 2024 16:10
A function for generating the high-level parameters matrix file
following the High-Level FOFB IOC conventions. This file can be directly
inputed into the High-Level FOFB GUI.
@guilhermerc guilhermerc merged commit d42985a into master Jul 2, 2024
@guilhermerc guilhermerc deleted the gen-high-level-params-mat branch July 2, 2024 17:49
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

Successfully merging this pull request may close these issues.

None yet

1 participant