make examples executable from (Linux) command line

This commit is contained in:
2018-06-14 11:53:26 +02:00
parent 4e290413d1
commit a3d6e9d908
5 changed files with 20 additions and 9 deletions

9
streamApp/simple.cmd Normal file → Executable file
View File

@ -1,18 +1,19 @@
#!/bin/sh
exec O.$EPICS_HOST_ARCH/streamApp $0
dbLoadDatabase "O.Common/streamApp.dbd"
streamApp_registerRecordDeviceDriver
#where can protocols be located?
epicsEnvSet "STREAM_PROTOCOL_PATH", ".:protocols:../protocols/"
#setup the busses
#setup the hardware
#drvAsynIPPortConfigure "L0", "localhost:40000"
vxi11Configure "L0","gpib-dz-1",0,0.0,"gpib0",0,0
drvAsynIPPortConfigure "L0", "localhost:40000"
#vxi11Configure "L0","gpib-hostname-or-ip",0,0.0,"gpib0"
#load the records
dbLoadRecords "simple.db","P=DZ,BUS=L0 28"
var streamDebug 1
iocInit
#enable debug output