ISIS Logo
NetShrVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
netvarconfig.xml

Example XML config file loaded by NetShrVarConfigure() in st.cmd

<?xml version="1.0" encoding="UTF-8"?>
<!--
@file netvarconfig.xml Example NetShrVar driver configuration file. Loaded at IOC boot time in @link st.cmd @endlink via e.g.
NetShrVarConfigure("ex1", "sec1", "$(TOP)/TestNetShrVarApp/src/netvarconfig.xml", 100)
@author Freddie Akeroyd, STFC ISIS facility, UK (freddie.akeroyd at stfc.ac.uk)
$LastChangedRevision: 2600 $:
$LastChangedBy: faa59 $:
$LastChangedDate: 2015-02-15 16:45:53 +0000 (Sun, 15 Feb 2015) $:
$HeadURL: file:
-->
<netvar
xmlns="http://epics.isis.rl.ac.uk/NetShrVarConfig/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://epics.isis.rl.ac.uk/NetShrVarConfig/1.0 ../../NetShrVarApp/src/NetShrVarConfig.xsd">
<!-- this name will be mapped (via NetShrVarConfigure()) to an asyn driver port name that can then be specified in an EPICS db record -->
<section name="sec1">
<!--
<param> defines as asyn driver parameter "name" that can be specified in an epics record to access data.
"access" is a comma separated list of how the shared variable is accessed: R (reader), BR (buffered reader), W (writer), BW (buffered writer)
"type" is the asyn parameter type - it does not need to be identical to the shared variable type, but
must be compatible (i.e. numeric if shared variable is numeric).
Valid values are: int32, float64, boolean, string, float32array, float64array, int8array, int16array, int32array - see @link NetShrVarConfig.xsd @endlink
"netvar" is the path to the shared variable - you can use / rather than \
"fval" and "tval" are only used for boolean type, they are the strings to be displayed for false and true values
"field" is only used for a structure type network shared variable, it indicates the structure element to access. Structures are read-only.
-->
<param name="cont1" type="float64" access="BR,BW" netvar="//localhost/example/some_control" />
<param name="icont1" type="int32" access="R,W" netvar="//localhost/example/some_control" />
<param name="ind1" type="int32" access="BR,BW" netvar="//localhost/example/some_indicator" />
<param name="strcont1" type="string" access="BR,BW" netvar="//localhost/example/some_string" />
<param name="bool1" type="boolean" fval="off" tval="on" access="BR,BW" netvar="//localhost/example/some_bool" />
<param name="array1" type="float64array" access="BR,BW" netvar="//localhost/example/some_array" />
<param name="struct1" type="float64" access="BR,BW" netvar="//localhost/example/some_struct" field="1" />
</section>
</netvar>
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5