Modify.Build.Install.Start.
Here you get instructions on how to modify a simulink model that runs on the FE machine, build it, install it and start it with the changes.
Modify the simulink model
The simulink models can be found in /cvs/cds/rtcds/userapps/trunk/isc/c1/models. Find the appropriate model file, open it on matlab from one of the workstations in the control room and do the appropriate changes. To add a new DAQ channel, in the topmost simulink block in the #DAQ Channels list box, add the name of the channel you want to add without C1:XXX- part.
Build and Install
Note, you do not need to stop running rtcds models for this step.
Restart the models
If the model you modified or added is hosted in c1lsc, c1sus or c1ioo, run the following script to restart the three computers as these models could not be shut down independently for some unkown reason:
/opt/rtcds/caltech/c1/scripts/cds/rebootC1LSC.sh
If the model you modified or added is hosted in c1iscex or c1iscey, you can do the following (giving example for FE: c1iscex, model: c1asx, replace names appropriately):
ssh c1iscex rtcds restart c1asx
If you are going to reboot a whole FE, make sure you first start the IOP models named c1x01, c1x02, c1x03, c1x04, c1x05, and so on). Then start the remaining models one by one.
Post restart checklist
- Make sure that all indicators are green in C1CDS_FE_STATUS medm screen like the following:
If you see the third Indicator on RTNS red or green, but everything else green, you can ignore it and reset the status by clicking the
button. - Sometimes, the DAQ processes do not start properly insync and you might see a red color on DC status on any of the models. When this happens, restart the daqd processes by doing:
telnet fb 8083 shutdown
and click on
button to restart the mxstream service on all of the FE machines.
