Build Instructions for example

Build Instructions for example

  1. Add the dependencies to configure/RELEASE.

    ASYN=/dls_sw/prod/R3.14.11/support/asyn/4-14
    STREAMDEVICE=/dls_sw/prod/R3.14.11/support/streamDevice/2-4dls6
    BUSY=/dls_sw/prod/R3.14.11/support/busy/1-3dls3
    AGILENT33220A=/dls_sw/prod/R3.14.11/support/agilent33220A/1-4-1
    

  2. Add the DBD dependencies to src/Makefile

    example_DBD += base.dbd
    example_DBD += asyn.dbd
    example_DBD += drvAsynIPPort.dbd
    example_DBD += stream.dbd
    example_DBD += busySupport.dbd
    

  3. Add the LIBS dependencies to src/Makefile

    example_LIBS += busy
    example_LIBS += stream
    example_LIBS += pcre
    example_LIBS += asyn
    

  4. Use the template files to add records to the database.

    
    # Macros:
    #  P         Device prefix
    #  Q         Device suffix
    #  PORT      Asyn port name
    #  name      Name to export to gda as
    #  gda_desc  Description for gda
    file $(AGILENT33220A)/db/agilent33220A.template
    {
    pattern { P, Q, PORT, name, gda_desc }
        { "TESTFUNC", "", "FUNC", "FGEN", "Function Generator" }
    }
    

  5. Add the startup commands to st.cmd
    
    # Loading libraries
    # -----------------
    
    # Device initialisation
    # ---------------------
    
    cd "$(TOP)"
    
    dbLoadDatabase "dbd/example.dbd"
    example_registerRecordDeviceDriver(pdbbase)
    
    drvAsynIPPortConfigure("FUNC", "172.23.243.212:5025", 100, 0, 0)
    
    # Configure StreamDevice paths
    epicsEnvSet "STREAM_PROTOCOL_PATH", "$(AGILENT33220A)/data"
    
 All Files Functions Variables