Commit 4d0793d9 authored by Lee Carver's avatar Lee Carver

Added script to easily generate and save simulated lattice. Added the mat file...

Added script to easily generate and save simulated lattice. Added the mat file for simulated lattice. Modified FirstTurns to point it to the RM mat file
parent d8afb47c
......@@ -97,8 +97,8 @@ classdef FirstTurns < RingControl
case 'soleil'
% b = load('/users/beamdyn/dev/commissioningtools/@RingControl/EBSSimuTrajRM20turns.mat');
% obj.ModelRM = b.ModelRM;
b = load('./@RingControl/SOLEIL_SimulatedRM.mat');
obj.ModelRM = b.ModelRM;
otherwise
error('Suported machines are: ''esrf-sr'', ''esrf-sy'', ''ebs-simu''')
......
ft = FirstTurns('soleil');
ft.setTurns(20); % set turns to compute trajetory RM
ft.injoff = -6e-3; % set the injected - stored beam offset.
TrajRM = ft.SimulateTrajectoryRM('RF',true,'rad',true); % simulate trajectory RM with RF off.
ModelRM = ft.ModelRM; % display computed trajectory RMs
save('./@RingControl/SOLEIL_SimulatedRM.mat', 'ModelRM');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment