1 / 6

EPICS Demo

EPICS Demo. Burkhard Kolb and Peter Zumbruch. Outline. Check connection details Hardware manual Test/Debug command Try simple command/response in text form Select commands to implement Hardware manual Some examples Set and read voltage/ formatted parsing. Connection details.

oni
Download Presentation

EPICS Demo

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EPICS Demo Burkhard Kolb and Peter Zumbruch

  2. Outline • Check connection details • Hardware manual • Test/Debug command • Try simple command/response in text form • Select commands to implement • Hardware manual • Some examples • Set and read voltage/ formatted parsing

  3. Connection details • Check manual for information on: • RS223 parameters (baud, parity…) • TCP/IP name, port number • Command delimiters

  4. Extract from manual • From the Agilent N5700 manual:

  5. Connection setup • In the startup command file “stAg.cmd” epicsEnvSet("STREAM_PROTOCOL_PATH", "/u/cbmdcs/apps/StreamTest/protocols”) ## Register all support components dbLoadDatabase "dbd/hades.dbd" hades_registerRecordDeviceDriver pdbbase drvAsynIPPortConfigure("ps001", ”hadps001.gsi.de:5025") ## Load record instances dbLoadRecords("db/Agilent1.db")

  6. Record and protocol definition • In record database file (Agilent1.db): record(stringout, "HAD:MDC:PS:01:DEBUG") { field(DESC, "Debuging help") field(DTYP, "stream") field(SCAN, "Passive") field(OUT, ”@Agilent.proto debug ps001 ") field(ASG, "mdc") } • In protocol file (Agilent.proto): Terminator = LF; # After processing finishes, the record contains the reply. debug { ExtraInput = Ignore; out "%s"; in "%39c”; }

More Related