40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Wed Feb 24 22:13:47 2021, Jon, Update, CDS, Planning document for front-end testing 
    Reply  Fri Mar 5 17:48:25 2021, Jon, Update, CDS, Front-end testing image_67203585.JPGimage_67216641.JPGimage_17185537.JPG
       Reply  Tue Mar 9 16:52:47 2021, Jon, Update, CDS, Front-end testing image_72192707.JPG
          Reply  Tue Mar 16 16:27:22 2021, Jon, Update, CDS, Front-end testing 
             Reply  Tue Mar 16 19:04:20 2021, gautam, Update, CDS, Front-end testing 
             Reply  Fri Mar 19 18:14:56 2021, Jon, Update, CDS, Front-end testing image_72192707_(1).JPGimage_50412545.JPG
                Reply  Wed Mar 24 19:02:21 2021, Jon, Update, CDS, Front-end testing 
                   Reply  Mon Mar 29 17:55:50 2021, Jon, Update, CDS, Front-end testing 
                      Reply  Tue Mar 30 18:21:34 2021, Jon, Update, CDS, Front-end testing 
                      Reply  Tue Apr 6 07:19:11 2021, Jon, Update, CDS, New SimPlant cymac 
                         Reply  Tue Apr 6 11:13:01 2021, Jon, Update, CDS, FE testing 
                            Reply  Sat Apr 10 08:51:32 2021, Jon, Update, CDS, I/O Chassis Assembly 
                               Reply  Thu Apr 29 10:51:35 2021, Jon, Update, CDS, I/O Chassis Assembly 
                                  Reply  Tue May 4 07:38:36 2021, Jon, Update, CDS, I/O Chassis Assembly Screen_Shot_2021-05-03_at_4.16.06_PM.png
                                     Reply  Tue May 11 16:29:55 2021, Jon, Update, CDS, I/O Chassis Assembly Screen_Shot_2021-05-11_at_3.03.42_PM.png
                                        Reply  Tue May 11 17:43:09 2021, Koji, Update, CDS, I/O Chassis Assembly 
                                           Reply  Fri May 28 11:16:21 2021, Jon, Update, CDS, Front-End Assembly and Testing c1bhd.pnggds_tp.pngteststand.jpegbench_supply.jpeg
                                              Reply  Sun Jun 6 08:42:05 2021, Jon, Update, CDS, Front-End Assembly and Testing c1bhd.png16bit_dacs.pngmyricom.png
                                                 Reply  Tue Jun 22 16:53:01 2021, Ian MacMillan, Update, CDS, Front-End Assembly and Testing 
                                                    Reply  Thu Jun 24 17:32:52 2021, Ian MacMillan, Update, CDS, Front-End Assembly and Testing C1-SU2_Channel_Responses.pdfC1-BHD_Channel_Responses.pdfCDS_Channel_Test.zip
                                                       Reply  Fri Jun 25 14:06:10 2021, Jon, Update, CDS, Front-End Assembly and Testing test_stand.JPG
                         Reply  Sat Apr 10 11:56:14 2021, Jon, Update, CDS, 40m LSC simPlant model x1lsp_main.png
                            Reply  Tue Apr 13 16:24:38 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model 
                               Reply  Mon Apr 19 13:15:20 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model 
                                  Reply  Wed Apr 21 10:03:01 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model Overview.png
                                     Reply  Wed Apr 21 11:01:37 2021, Rana, Update, CDS, 40m LSC simPlant model 
                                     Reply  Fri Apr 23 15:52:19 2021, Ian MacMillan, Update, CDS, 40m LSC simPlant model Plant_framework.pdfSimple_Plant.pdfControls.pdf
                                        Reply  Sun Apr 25 21:21:02 2021, rana, Update, CDS, SUS simPlant model 
                                           Reply  Tue Apr 27 15:15:17 2021, Ian MacMillan, Update, CDS, SUS simPlant model x1sus_single_plant.pdfx1sup.pdf
                                              Reply  Thu Apr 29 13:41:40 2021, Ian MacMillan, Update, CDS, SUS simPlant model Non-IPC_Plant.pdf
                                                 Reply  Fri Apr 30 12:52:14 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                    Reply  Mon May 3 13:35:12 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                       Reply  Tue May 4 14:55:38 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                          Reply  Wed May 5 15:11:54 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                             Reply  Thu May 6 16:13:24 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                                Reply  Fri May 7 11:19:29 2021, Ian MacMillan, Update, CDS, SUS simPlant model 
                                                                   Reply  Wed May 12 13:06:15 2021, Ian MacMillan, Update, CDS, SUS simPlant model SimplePlant_SingleContr.pdfx1sup_isolated.pdfX1SUP_ISOLATED_GDS_TP.pngX1SUP_ISOLATED_C1_SUS_SINGLE_PLANT_Plant_POS_Mod.png
                                                                      Reply  Fri May 21 09:44:52 2021, Ian MacMillan, Update, CDS, SUS simPlant model Transfer_Function_of_Damped_Harmonic_Oscillator.pdf
                                                                         Reply  Fri May 21 14:36:20 2021, Ian MacMillan, Update, CDS, SUS simPlant model Plant_Mod_TF.pdf
                                                                            Reply  Thu Jun 3 13:06:47 2021, Ian MacMillan, Update, CDS, SUS simPlant model SingleSusPlantTF.pdfSUS_PLANT_TF.zip
                                                                               Reply  Mon Jun 7 17:49:19 2021, Ian MacMillan, Update, CDS, SUS simPlant model SingleSusPlantTF.pdfTF_Graph_Code.zip
                                                                                  Reply  Wed Jun 9 13:50:48 2021, Ian MacMillan, Update, CDS, SUS simPlant model SingleSusPlantTF.pdf
                                                                                     Reply  Tue Jun 15 11:46:40 2021, Ian MacMillan, Update, CDS, SUS simPlant model x1sup_isolated-6-15-v1.pdfC1_SUS_SINGLE_PLANT-6-15-v1.pdf
                                                                                     Reply  Wed Jun 30 14:09:26 2021, Ian MacMillan, Update, CDS, SUS simPlant model SingleSusPlantTF.pdfPlant_TF_Test.zip
                                                                                        Reply  Mon Aug 23 15:25:59 2021, Ian MacMillan, Update, CDS, SUS simPlant model SimPlantStateSpace.zip
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.

x1lsp_main.png

 

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.

  1. 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.
       
  2. 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.
       
  3. 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.
       

  4. 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.

 

 

 

 

ELOG V3.1.3-