Closedown

This commit is contained in:
boccioli_m
2017-10-17 16:22:47 +02:00
parent c37074b5e7
commit ce79edcc30
2 changed files with 5 additions and 3 deletions

View File

@@ -132,7 +132,6 @@ class Interlock:
"""
class for getting - setting interlock mode
"""
import binascii
from array import *
# mode, test pattern for outputs 2-4, test pattern for output 5, expected pattern for 2-4, expected pattern for 5
rps_mask1 = 0x4440 # mask for outputs 2-4
@@ -163,6 +162,7 @@ class Interlock:
return self.msg_default
def setInterlockMode(self, mode):
import binascii
udp = UDPDatagram()
msg = self._msgWrite()
modebytes = array('B', mode)
@@ -174,6 +174,7 @@ class Interlock:
return true
def getInterlockMode(self):
import binascii
udp = UDPDatagram()
msg = self._msgRead()
print binascii.hexlify(msg)
@@ -182,6 +183,7 @@ class Interlock:
return rcv
def masterReset(self):
import binascii
udp = UDPDatagram()
msg = self._msgReset()
print binascii.hexlify(msg)
@@ -195,7 +197,6 @@ class UDPDatagram:
class for receiving and sending a udp message
"""
import socket
import binascii
# the constructor
def __init__(self):
# communication with interlock server
@@ -211,6 +212,7 @@ class UDPDatagram:
sys.exit()
def _sendUDP(self, message):
import binascii
try:
# get the ip address and send
print 'here should sendto:', self.serverName, self.serverPort

View File

@@ -1,5 +1,5 @@
#TestingList for pshell: configuration properties
#Tue Oct 17 16:20:39 CEST 2017
#Tue Oct 17 16:20:56 CEST 2017
customPanel=
showEnabledTestsOnly=true
listFilter=rps-test