lnls-dig / rssmx100a-epics-ioc

Repository containing the EPICS IOC support for the R&S SMA100A and SMB100A signal generators
3 stars 4 forks source link

rssmx100a-epics-ioc

Overall

Repository containing the EPICS IOC support for the R&S SMA100A and SMB100A signal generators. Some functionalities are exclusive to SMA100A.

Documentation

The IOC documentation can be found in documentation/. There you can find a manual with the description off all SMX100A signal generator PVs.

Building

To build the IOC, you can follow the standard EEPICS build procedure for IOC applications. The following EPICS modules are required:

The path to the required EPICS modules should be configured in the file configure/RELEASE, as the example below:

SUPPORT=/// EPICS_BASE=//// ... ASYN=$(SUPPORT)/ STREAM= CALC=$(SUPPORT)/ AUTOSAVE=$(SUPPORT)/

Afterwards, from the root repository directory, run 'make install'. At any time, if a reuild is required, simply run the following commands:

$ make clean uninstall install

Initialization

For the IOC on this repository, the initialization can be done through the following commands starting at the top level directory:

$ make clean uninstall install
$ cd iocBoot/iocrssmx100a
$ ./runGenericSMX.sh -i IPADDR -p IPPORT -P PREFIX1 -R PREFIX2 -d DEVICE

Caput

An example of writing frequency is given below:

$ caput ${P}${R}:GENFreq-SP 1e8

Caget

An example of reading frequency is given below:

$ caget ${P}${R}:GENFreq-RB

RSSMX100A PV Structure

The PV's are divided in 7 major groups: GENERAL, FREQ, MOD, TRIG, ROSC, CSYN and NOIS. To set values, use the given name. To read them, add _RBV after it.

The suffixes indicate the PV type and can be one of the following:

IOC Structure

The IOC directory structure is the following:

Running the OPIs

The op/opi/ directory provide CSS OPIs for easily controlling the signal generator and applications process variables. In order to run the operator interfaces it is necessary to have Control System Studio installed. It is recommended to run cs-studio in the OPIs folder, in order to avoid having to reconfigure CS-Studio preferences.