40m
QIL
Cryo_Lab
CTN
SUS_Lab
TCS_Lab
OMC_Lab
CRIME_Lab
FEA
ENG_Labs
OptContFac
Mariner
WBEEShop
|
40m Log |
Not logged in |
 |
|
Wed Feb 24 22:13:47 2021, Jon, Update, CDS, Planning document for front-end testing
|
Fri Mar 5 17:48:25 2021, Jon, Update, CDS, Front-end testing  
|
Tue Mar 9 16:52:47 2021, Jon, Update, CDS, Front-end testing
|
Tue Mar 16 16:27:22 2021, Jon, Update, CDS, Front-end testing
|
Tue Mar 16 19:04:20 2021, gautam, Update, CDS, Front-end testing
|
Fri Mar 19 18:14:56 2021, Jon, Update, CDS, Front-end testing 
|
Wed Mar 24 19:02:21 2021, Jon, Update, CDS, Front-end testing
|
Mon Mar 29 17:55:50 2021, Jon, Update, CDS, Front-end testing
|
Tue Mar 30 18:21:34 2021, Jon, Update, CDS, Front-end testing
|
Tue Apr 6 07:19:11 2021, Jon, Update, CDS, New SimPlant cymac
|
Tue Apr 6 11:13:01 2021, Jon, Update, CDS, FE testing
|
Sat Apr 10 08:51:32 2021, Jon, Update, CDS, I/O Chassis Assembly
|
Thu Apr 29 10:51:35 2021, Jon, Update, CDS, I/O Chassis Assembly
|
Tue May 4 07:38:36 2021, Jon, Update, CDS, I/O Chassis Assembly
|
Tue May 11 16:29:55 2021, Jon, Update, CDS, I/O Chassis Assembly
|
Tue May 11 17:43:09 2021, Koji, Update, CDS, I/O Chassis Assembly
|
Fri May 28 11:16:21 2021, Jon, Update, CDS, Front-End Assembly and Testing   
|
Sun Jun 6 08:42:05 2021, Jon, Update, CDS, Front-End Assembly and Testing  
|
Tue Jun 22 16:53:01 2021, Ian MacMillan, Update, CDS, Front-End Assembly and Testing
|
Thu Jun 24 17:32:52 2021, Ian MacMillan, Update, CDS, Front-End Assembly and Testing  
|
Fri Jun 25 14:06:10 2021, Jon, Update, CDS, Front-End Assembly and Testing
|
Sat Apr 10 11:56:14 2021, Jon, Update, CDS, 40m LSC simPlant model
|
Tue Apr 13 16:24:38 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model
|
Mon Apr 19 13:15:20 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model
|
Wed Apr 21 10:03:01 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model
|
Wed Apr 21 11:01:37 2021, Rana, Update, CDS, 40m LSC simPlant model
|
Fri Apr 23 15:52:19 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model  
|
Sun Apr 25 21:21:02 2021, rana, Update, CDS, SUS simPlant model
|
Tue Apr 27 15:15:17 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
|
Thu Apr 29 13:41:40 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Fri Apr 30 12:52:14 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Mon May 3 13:35:12 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Tue May 4 14:55:38 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Wed May 5 15:11:54 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Thu May 6 16:13:24 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Fri May 7 11:19:29 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Wed May 12 13:06:15 2021, Ian MacMillan, Update, CDS, SUS simPlant model   
|
Fri May 21 09:44:52 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Fri May 21 14:36:20 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Thu Jun 3 13:06:47 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
|
Mon Jun 7 17:49:19 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
|
Wed Jun 9 13:50:48 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
Tue Jun 15 11:46:40 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
|
Wed Jun 30 14:09:26 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
|
Mon Aug 23 15:25:59 2021, Ian MacMillan, Update, CDS, SUS simPlant model
|
|
Message ID: 16015
Entry time: Sat Apr 10 11:56:14 2021
In reply to: 15997
Reply to this: 16021
|
Author: |
Jon |
Type: |
Update |
Category: |
CDS |
Subject: |
40m LSC simPlant model |
|
|
Summary
Yesterday I resurrected the 40m's LSC simPlant model, c1lsp. It is running on c1sim, a virtual, self-contained cymac that Chris and I set up for developing sim models (see 15997). I think the next step towards an integrated IFO model is incorporating the suspension plants. I am going to hand development largely over to Ian at this point, with continued support from me and Chris.

LSC Plant
This model dates back to around 2012 and appears to have last been used in ~2015. According to the old CDS documentation:
Name |
Description |
Communicates directly with |
LSP |
Simulated length sensing model of the physical plant, handles light propagation between mirrors, also handles alignment modeling and would have to communicate ground motion to all the suspensions for ASS to work |
LSC, XEP, YEP, VSP |
Here XEP, YEP, and VSP are respectively the x-end, y-end, and vertex suspension plant models. I haven't found any evidence that these were ever fully implemented for the entire IFO. However, it looks like SUS plants were later implemented for a single arm cavity, at least, using two models named c1sup and c1spx (appear in more recent CDS documentation). These suspension plants could likely be updated and then copied for the other suspended optics.
To represent the optical transfer functions, the model loads a set of SOS filter coefficients generated by an Optickle model of the interferometer. The filter-generating code and instructions on how to use it are located here. In particular, it contains a Matlab script named opt40m.m which defines the interferferometer. It should be updated to match the parameters in the latest 40m Finesse model, C1_w_BHD.kat. The calibrations from Watts to sensor voltages will also need to be checked and likely updated.
Model-Porting Procedure
For future reference, below are the steps followed to port this model to the virtual cymac.
- Copy over model files.
- The c1lsp model,
chiara:/opt/rtcds/userapps/release/isc/c1/models/c1lsp.mdl , was copied to the userapps directory on the virtual cymac, c1sim:/home/controls/docker-cymac/userapps/x1lsp.mdl . In the filename, note the change in IFO prefix "c1" --> "x1," since this cymac is not part of the C1 CDS network.
- This model also depends on a custom library file,
chiara:/opt/rtcds/userapps/release/isc/c1/models/SIMPLANT.mdl , which was copied to c1sim:/home/controls/docker-cymac/userapps/lib/SIMPLANT.mdl .
- Update model parameters in Simulink. To edit models in Simulink, see the instructions here and also here.
- The main changes are to the cdsParameters block, which was updated as shown below. Note the values of
dcuid and specific_cpu are specifically assigned to x1lsp and will vary for other models. The other parameters will be the same.

- I also had to change the name of one of the user-defined objects from "ADC0" --> "ADC" and then re-copy the cdsAdc object (shown above) from the
CDS_PARTS.mdl library. At least in newer RCG code, the cdsAdc object must also be named "ADC0." This namespace collision was causing the compiler to fail.
- Note: Since Matlab is not yet set up on c1sim, I actually made these edits on one of the 40m machines (chiara) prior to copying the model.
- Compile and launch the models. Execute the following commands on c1sim:
-
$ cd ~/docker-cymac
$ ./kill_cymac
$ ./start_cymac debug
-
The optional debug flag will print the full set of compilation messages to the terminal. If compilation fails, search the traceback for lines containing "ERROR" to determine what is causing the failure.
-
Accessing MEDM screens. Once the model is running, a button should be added to the sitemap screen (located at c1sim:/home/controls/docker-cymac/userapps/medm/sitemap.adl ) to access one or more screens specific to the newly added model.
-
Custom-made screens should be added to c1sim:/home/controls/docker-cymac/userapps/medm/x1lsp (where the final subdirectory is the name of the particular model).
-
The set of available auto-generated screens for the model can be viewed by entering the virtual environment:
-
$ cd ~/docker-cymac
$ ./login_cymac #drops into virtual shell
# cd /opt/rtcds/tst/x1/medm/x1lsp #last subdirectory is model name
# ls -l *.adl
# exit #return to host shell
-
The sitemap screen and any subscreens can link to the auto-generated screens in the usual way (by pointing to their virtual /opt/rtcds path). Currently, for the virtual path resolution to work, an environment script has to be run prior to launching sitemap, which sets the location of a virtual MEDM server (this will be auto-scripted in the future):
-
$ cd ~/docker-cymac
$ eval $(./env_cymac)
$ sitemap
-
One important auto-generated screen that should be linked for every model is the CDS runtime diagnostics screen, which indicates the success/fail state of the model and all its dependencies. T1100625 details the meaning of all the various indicator lights.
-

|