This is out of date! Do not use this page!!

Here is described the various steps on how to get a new Simulink model running on the new PCIX front-end computers (in this work the C1OMC at the 40m). See ~rolf/omc.html page for Rolf's initial OMC CDS design and layout.

This writing is a glorified version of R. Ward's core entry in the 40m ilog (entry).

/MakeOAF

Computer Setup and Installation

For a detailed instruction of how to install the computer hardware and CDS software, please refer to Rolf's website, or follow the link on this page http://www.ligo.caltech.edu/~rolf/CDS_PARTS_D.html#d1060e238.

Directory structure

For a simulink generated documentaion (by Rolf) of the CDS Simulink parts, including instructions on building a model, see http://www.ligo.caltech.edu/~rolf/CDS_PARTS_D.html.

Get the latest CVS code from (LIGO/LSC CVS Repositories or CD) and place it in a suitable directory to work in. There are a few special Simulink modules for the ADC and DAC, LIGO filter modules, etc. which are required.

You can modify the Simulink model 'omc.mdl' appropriately. Make sure you have the correct dcuid number, as it could be wrong in CVS (see the link at the start of this section). For more info on this see LIGO Data Acquisition Handbook, not sure how relevant this is to the C1OMC system.

The Simulink model can only have a three (3) character file name, which usually correspond to the system name here 'omc'. Also, the model itself can only be 1 layer deep (due to current restrictions). This means that in your Simulink model you have a top-layer, and you are only allowed to place a sub-layer in your model. You can have multiple sub-layers in your top-layer.

Making the FE code

To make the real-time linux executable, go to the top directory (advLigo/) and type:

 make omc

Where 'omc' is the name of the Simulink model. This will generate a whole bunch of files and folders in the advLigo/target directory.

On the C1OMC front-end computer, remove the old target directories (c1omc and c1omcepics). Then copy the advLigo/target/omcepics to /cvs/cds/caltech/target/c1omcepics on the front-end computer.

Checking/Updating the Configuration files

Copy the file in advLigo/target/omcepics/db/C1/autoBurt.req to /cvs/cds/caltech/target/c1omcepics

Find the file 'omc.par' in advLigo/build/omcepics, and modify it with the following sed commands:

See also region which has more details about these settings.

Then rename it as 'tpchn_C2.par', and place it in /cvs/cds/caltech/chans/param/ (why renaming?)

Example: []

Location of the FE executable

Copy the generated front-end executable in advLigo/src/fe/omc/omcfe.rtl to /cvs/cds/caltech/target/c1omc/.

DAQ Channels

Take the file located at advLigo/src/epics/util/C1OMC.ini, modify it to suit your tastes, and place it in /cvs/cds/caltech/chans/daq/

Take the file located at advLigo/src/epics/util/C1OMC.txt, and put it in /cvs/cds/caltech/chans/

Example: []

Restarting the FE

Use the procedure in the wiki to restart c1omc c1omc restart

WikiOfRolfCDS this is a test, which has not worked...

Simulink_to_Front-End_code (last edited 2012-01-03 23:02:37 by localhost)