Moxa Technologies DA-IRIGB-4DIO-PCI104-EMC4 User Manual page 22

Hide thumbs Also See for DA-IRIGB-4DIO-PCI104-EMC4:
Table of Contents

Advertisement

DA-IRIGB-4DIO-PCI104-EMC4 Module
Software Installation and Configuration
The following command example displays the digital output interface.
root@Moxa:~# mxIrigUtil -f 16 -p 0
Get DO 0 = 1
root@Moxa:~# mxIrigUtil -f 16 -p 1
Get DO 1 = 1
root@Moxa:~# mxIrigUtil -f 16 -p 2
Get DO 2 = 1
root@Moxa:~# mxIrigUtil -f 16 -p 3
Get DO 3 = 1
root@Moxa:~# mxIrigUtil -f 16 -p 4
Get DO 4 = 1
The following command example sets the digital output interface.
root@Moxa:~# mxIrigUtil -f 17 -p 0,0
Set DO 0 = 0
root@Moxa:~# mxIrigUtil -f 17 -p 0,1
Set DO 0 = 1
root@Moxa:~# mxIrigUtil -f 17 -p 1,0
Set DO 1 = 0
root@Moxa:~# mxIrigUtil -f 17 -p 1,1
Set DO 1 = 1
root@Moxa:~# mxIrigUtil -f 17 -p 2,0
Set DO 2 = 0
root@Moxa:~# mxIrigUtil -f 17 -p 2,1
Set DO 2 = 1
root@Moxa:~# mxIrigUtil -f 17 -p 3,0
Set DO 3 = 0
root@Moxa:~# mxIrigUtil -f 17 -p 3,1
Set DO 3 = 1
The following command example displays the digital input interface.
root@Moxa:~# mxIrigUtil -f 18 -p 0
Get DI 0 = 0
root@Moxa:~# mxIrigUtil -f 18 -p 1
Get DI 1 = 0
root@Moxa:~# mxIrigUtil -f 18 -p 2
Get DI 2 = 0
You can edit the /etc/init.d/mx_irigb.sh script to configure the IRIG-B utility. For example, if you want to
set the IRIG-B digital output interface, remove the '#' symbol from the
line and
/usr/sbin/mxIrigUtil
configure the
parameter. The following figure shows an example.
MX_IRIGB_UTIL_OPTS
root@Moxa:~# sudo vi /etc/init.d/mx_irigb.sh
...
MX_IRIGB_UTIL_OPTS=" -f 15 -p 1,1,2,0"
...
case "$1" in
start)
...
4-9

Advertisement

Table of Contents
loading

Table of Contents