#!/usr/bin/python # Import the Dalsa1M60 packzge import Dalsa1M60, subprocess # define the serial command location serial_cmd_location = '/opt/EDTpdv/serial_cmd' # start a loop that continually gets the temperatures getTemperatures = 1 while getTemperatures: # get the temperatures temperatures = Dalsa1M60.VerifyTemperature(serial_cmd_location) # get the lcoation for ezcawrite ezcawriteL = '/cvs/opt/apps/Linux/gds/bin/ezcawrite' # write to the channels process = subprocess.Popen(ezcawriteL + \ ' C4:TCS-HWS_TEMP_DIGITIZER %f' % temperatures[0], \ shell=True, \ stdout = subprocess.PIPE) #print process.communicate() process = subprocess.Popen(ezcawriteL + \ ' C4:TCS-HWS_TEMP_SENSOR %f' % temperatures[1], \ shell=True, \ stdout = subprocess.PIPE) #print process.communicate()