ISIS Logo
lvDCOM
An EPICS support module to export LabVIEW values as process variables
example.db

Example EPICS db file for use with example.vi - an initial version can be generated from lvinput.xml via the XSLT stylesheet lvinput2db.xsl. For the records below the asyn port ex1 will have been mapped to the frontpanel section of lvinput.xml via the lvDCOMConfigure() command in st.cmd and individual driver parameters such as cont1 will correspond to param nodes in lvinput.xml.

# % macro, P, device prefix
record(ao, "$(P)CON1")
{
field(DTYP, "asynFloat64")
field(OUT, "@asyn(lvfp,0,0)cont1")
field(PREC, "3")
}
record(ao, "$(P)CON2")
{
field(DTYP, "asynFloat64")
field(OUT, "@asyn(lvfp,0,0)cont2")
field(PREC, "3")
}
record(ai, "$(P)IND1")
{
field(DTYP, "asynInt32")
field(INP, "@asyn(lvfp,0,0)ind1")
field(PREC, "3")
field(SCAN, ".1 second")
}
record(waveform, "$(P)FLTARRAY")
{
field(DTYP, "asynFloat64ArrayIn")
field(INP, "@asyn(lvfp,0,0)arrayind1")
field(PREC, "3")
field(SCAN, ".1 second")
field(NELM, "10")
field(FTVL, "DOUBLE")
}
record(stringin, "$(P)STR")
{
field(DTYP, "asynOctetRead")
field(INP, "@asyn(lvfp,0,0)strcont1")
field(SCAN, ".1 second")
}
record(stringout, "$(P)STRW")
{
field(DTYP, "asynOctetWrite")
field(OUT, "@asyn(lvfp,0,0)strcont1")
}
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5