#!/bin/sh




# Read info from board and put into variable: sK8055_Output
sK8055_Output=$(/opt/velleman/src/k8055 -p:0)
echo "sK8055_Output:" $sK8055_Output

# Place output into seperate variables
iMSec=`echo $sK8055_Output | cut -d \; -f 1`
iDigitalInput=`echo $sK8055_Output | cut -d \; -f 2`
iAnalog1=`echo $sK8055_Output | cut -d \; -f 3`
iAnalog2=`echo $sK8055_Output | cut -d \; -f 4`
iCounter1=`echo $sK8055_Output | cut -d \; -f 5`
iCounter2=`echo $sK8055_Output | cut -d \; -f 6`
echo "Start Hardware Variables"
echo "     iMSec:" $iMSec
echo "     iDigitalInput:" $iDigitalInput
echo "     iAnalog1:" $iAnalog1
echo "     iAnalog2:" $iAnalog2
echo "     iCounter1:" $iCounter1
echo "     iCounter2:" $iCounter2
echo "End Hardware Variables"

