Skip to content
Snippets Groups Projects
Commit 021f359a authored by rivers's avatar rivers
Browse files

New file for GPIB

parent 2135aec4
No related branches found
No related tags found
No related merge requests found
# BEGIN gpib.cmd ------------------------------------------------------------
# SBS IP488 GPIB
# gsIP488Configure(char *portName, int carrier, int module, int vector,
# unsigned int priority, int noAutoConnect)
gsIP488Configure("gpib1",1,1,0x69,0,0)
# GPIB addresses: 1=Tektronix scope, 2=Keithley 2000, 3=Fluke meter
# asynInterposeEosConfig(const char *portName, int addr,
# int processEosIn, int processEosOut);
asynInterposeEosConfig("gpib1", 1, 1, 0)
# asynOctetSetInputEos(const char *portName, int addr,
# const char *eosin,const char *drvInfo)
asynOctetSetInputEos("gpib1", 1, "\n")
# asynOctetConnect(const char *entry, const char *port, int addr,
# int timeout, int buffer_len, const char *drvInfo)
asynOctetConnect("gpib1:1", "gpib1", 1, 1, 80)
asynInterposeEosConfig("gpib1", 2, 1, 0)
asynOctetSetInputEos("gpib1", 2, "\n")
asynOctetConnect("gpib1:2", "gpib1", 2, 1, 80)
asynInterposeEosConfig("gpib1", 3, 1, 0)
asynOctetSetInputEos("gpib1", 3, "\r")
asynOctetConnect("gpib1:3", "gpib1", 3, 1, 80)
# Keithley 2000 DMM, connected with GPIB
dbLoadRecords("$(IP)/ipApp/Db/Keithley2kDMM_mf.db","P=xxx:,Dmm=D2,PORT=gpib1 2")
# send impromptu message to gpib device, parse reply
# (was GPIB_OI_block)
#dbLoadRecords("$(IP)/ipApp/Db/deviceCmdReply.db","P=xxx:,N=1,PORT=gpib1,ADDR=1,OMAX=100,IMAX=100")
# Heidenhain AWE1024 at GPIB address $(A)
#dbLoadRecords("$(IP)/ipApp/Db/HeidAWE1024.db", "P=xxx:,L=10,A=6")
# Keithley 199 DMM at GPIB address $(A)
#dbLoadRecords("$(STD)/stdApp/Db/KeithleyDMM.db", "P=xxx:,L=10,A=26")
# END gpib.cmd ------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment