Adding a New Command

This section will look at adding a new property (command) to a basic ROCS system. The new command, which will be called CALLMODULE is going to use the sample module to take a simple list of integers and multiply them by 2 in a real module. In addition, the resulting data, which is places ion the Acquisition data shared memory segment, will have the current super cycle number included. This worked example will entail going through all the modules in the system and is very typical of the procedure required.

The files that will need updating are:

 

rocs.h

General header file containing system wide definitions.

property.h

Header file with details about commends (properties).

cmdtable.h

Command names file.

equipserver.c

Equip server that does command parameter checking.

rocsfe.c

Rocs Front End that makes commands into actions.

actions.c

All the action routines.

module.c

Sample, skeleton, module file.