Restriction: Only one of GpibHideosLocal or GpibHideosRemote can be used on a particular processor. Removing this restriction requires changes to the version of drvGpib supplied with base.
The gpib support for mpf was written to be completely compatible with devGpibCommon and drvGpib.
Add the line
In pre 3.13.1 versions of makeBaseApp it is also necessary to edit the file CONFIG_APP. Add the linesMPF_GPIB=<full path name>
In your source directory edit Makefile.Vx:ifdef MPF_GPIB MPF_GPIB_BIN = $(MPF_GPIB)/bin/$(T_A) endif
LIBOBJS += $(MPF_GPIB_BIN)/Gpib.o LIBOBJS += $(MPF_GPIB_BIN)/gpibSniff.o LIBOBJS += $(MPF_GPIB_BIN)/GpibGsTi9914.o LIBOBJS += $(MPF_GPIB_BIN)/GpibHideosLocal.o LIBOBJS += $(MPF_BIN)/mpfLib LIBOBJS += $(MPF_BIN)/ipLib
LIBOBJS += $(MPF_GPIB_BIN)/Gpib.o LIBOBJS += $(MPF_GPIB_BIN)/gpibSniff.o LIBOBJS += $(MPF_GPIB_BIN)/GpibGsTi9914.o LIBOBJS += $(MPF_GPIB_BIN)/gpibServer.o LIBOBJS += $(MPF_BIN)/ipLib LIBOBJS += $(MPF_BIN)/mpfLib
LIBOBJS += $(MPF_GPIB_BIN)/GpibHideosRemote.o LIBOBJS += $(MPF_BIN)/mpfLibFor local mode the st.cmd file must have the following command.
For remote mode... initIpacCarrier("carrierName", 0) initGpibGsTi9914("moduleName","carrierName","carrierSite",intVec) HiDEOSGpibLinkConfig(link,0,"moduleName")
Server
Client... initIpacCarrier("carrierName", 0) initGpibGsTi9914("moduleName","carrierName","carrierSite",intVec) initGpibServer("serverName","moduleName",bufsize,queuesize)HiDEOSGpibLinkConfig(link,0,"serverName")
Parameter | Value |
moduleName | The IP module name. It is used to link the initGpibGsTi9914 and HiDEOSGpibLinkConfig commands. |
carrierName | The name of the IP carrier. It links the initGpibGsTi9914 command with an initIpacCarrier commmand. See MPF documentation for details about initIpacCarrier. |
carrierSite | The carrier site. Normally IP_a or IP_b or IP_c or IP_d |
intVec | The vme interrupt vector to use. NOTE: intVec must be odd. If an even number is specified an error message is generated and intVec is increased by 1. |
link | This is the link number as specified in the INP or OUT fields of records attached to this gpib interface |
serverName | The name that connects the client to the correct server |
bufsize | The read buffer size |
queuesize | The maximum number of requests to queue |
gpibSniff("a-ip488",3) value = 0 = 0x0 iochp3458> R T_?V R-8.874270409E-01 0x0d 0x0a T_?_?V R-9.341735006E-01 0x0d 0x0a T_?_?V R-9.575970835E-01 0x0d 0x0a T_?_?V R-1.004537279E+00 0x0d 0x0a T_?_?V R-1.027972941E+00 0x0d 0x0a T_?_?V R-1.051432207E+00 0x0d 0x0a T_? gpibSniff done