EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual...
Click here to load reader
-
Upload
junior-hopkins -
Category
Documents
-
view
213 -
download
0
description
Transcript of EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual...
![Page 1: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/1.jpg)
EPICS Demo
Burkhard Kolband
Peter Zumbruch
![Page 2: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/2.jpg)
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
![Page 3: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/3.jpg)
Connection details
• Check manual for information on:– RS223 parameters (baud, parity…)– TCP/IP name, port number– Command delimiters
![Page 4: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/4.jpg)
Extract from manual
• From the Agilent N5700 manual:
![Page 5: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/5.jpg)
Connection setup
• In the startup command file “stAg.cmd”
epicsEnvSet("STREAM_PROTOCOL_PATH", "/u/cbmdcs/apps/StreamTest/protocols”)## Register all support componentsdbLoadDatabase "dbd/hades.dbd"hades_registerRecordDeviceDriver pdbbasedrvAsynIPPortConfigure("ps001", ”hadps001.gsi.de:5025")## Load record instancesdbLoadRecords("db/Agilent1.db")
![Page 6: EPICS Demo Burkhard Kolb and Peter Zumbruch. Outline Check connection details – Hardware manual Test/Debug…](https://reader038.fdocuments.us/reader038/viewer/2022101123/5a4d1bd57f8b9ab0599d9fd5/html5/thumbnails/6.jpg)
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”;}