Cosylab / nds3_epics

EPICS module for NDS3
GNU General Public License v3.0
0 stars 5 forks source link
epics nds

EPICS layer for NDS3

This project contains the EPICS layer for the NDS3 framework. It has three important directories, ndsSup, demo and demo2.

In order to compile and use this project NDS3 has to be installed.

Build Status

Manual Installation

Prerequisites

Build and run

More detailed instructions can be found in run_demo.md.

Usage

Example of usage:

[root@8b8481acd71f iocdemo]# ../../bin/linux-x86_64/demo st.cmd
#!../../bin/linux-x86_64/demo
## You may have to change demo to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("IOC","iocdemo")
epicsEnvSet("TOP","/root/nds3_epics")
epicsEnvSet("ASYN","/root/asyn4-31")
epicsEnvSet("NDS3","/usr/lib64")
epicsEnvSet("NDS3OSCILLOSCOPE","/usr/lib64/nds3")
epicsEnvSet("EPICS_BASE","/root/base-3.15.5")
## Register all support components
dbLoadDatabase("../../dbd/demo.dbd",0,0)
demo_registerRecordDeviceDriver(pdbbase)
ndsLoadDriver("/usr/lib64/nds3/liboscilloscope.so")
ndsCreateDevice(Oscilloscope, "test1")
iocInit()
Starting iocInit
############################################################################
## EPICS R3.15.5
## EPICS Base built Jun 26 2017
############################################################################
Warning: RSRV has empty beacon address list
iocRun: All initialization complete
DBR_UCHAR:          1         0x1
DBR_UCHAR:          1         0x1
DBR_UCHAR:          1         0x1
DBR_UCHAR:          1         0x1
DBR_UCHAR:          1         0x1
DBR_UCHAR:          1         0x1
epics> dbl
test1-SinWave-StateMachine-getGlobalState
test1-SinWave-StateMachine-getState
test1-SquareWave-StateMachine-getGlobalState
test1-SquareWave-StateMachine-getState
test1-SinWave-StateMachine-setState
test1-SquareWave-StateMachine-setState
test1-SinWave-Duration
test1-SinWave-Frequency
test1-SquareWave-Duration
test1-SquareWave-Frequency
test1-SinWave-Data
test1-SquareWave-Data
test1-SinWave-decimation
test1-SquareWave-decimation
test1-maxSinAmplitude
test1-maxSquareAmplitude
epics> nds switchOn test1-SinWave
epics> nds start test1-SinWave