| 352 | === st.cmd === |
| 353 | |
| 354 | |
| 355 | {{{ |
| 356 | debian@beaglebone:~/epics/usbTemp/iocBoot/iocusbTemp$ more st.cmd |
| 357 | #!../../bin/linux-arm/usbTemp |
| 358 | |
| 359 | ## You may have to change usbTemp to something else |
| 360 | ## everywhere it appears in this file |
| 361 | |
| 362 | < envPaths |
| 363 | |
| 364 | epicsEnvSet("DEV1", "PS1") |
| 365 | epicsEnvSet("USER", "TEST:USBTEMP") |
| 366 | epicsEnvSet("USER1", "${USER}:DEV1") |
| 367 | epicsEnvSet("SCAN", "5 second") |
| 368 | |
| 369 | cd "${TOP}" |
| 370 | |
| 371 | epicsEnvSet("STREAM_PROTOCOL_PATH", ".:${TOP}/usbTempApp/Db" ) |
| 372 | |
| 373 | ## Register all support components |
| 374 | dbLoadDatabase "dbd/usbTemp.dbd" |
| 375 | usbTemp_registerRecordDeviceDriver pdbbase |
| 376 | |
| 377 | ## Load record instances |
| 378 | dbLoadRecords("db/usbtemp.db","user=$(USER1),dev=$(DEV1),scan=$(SCAN)") |
| 379 | dbLoadRecords("db/timestamp.db","user=$(USER)") |
| 380 | |
| 381 | drvAsynSerialPortConfigure ("PS1","/dev/ttyUSBSens0") |
| 382 | asynSetOption("$(DEV1)", -1, "baud", "9600") |
| 383 | asynSetOption("$(DEV1)", -1, "parity", "none") |
| 384 | asynSetOption("$(DEV1)", -1, "bits", "8") |
| 385 | asynSetOption("$(DEV1)", -1, "stop", "1") |
| 386 | asynSetOption("$(DEV1)", -1, "clocal", "Y") |
| 387 | asynSetOption("$(DEV1)", -1, "crtscts", "N") |
| 388 | |
| 389 | |
| 390 | cd "${TOP}/iocBoot/${IOC}" |
| 391 | iocInit |
| 392 | }}} |
| 393 | |
| 394 | |