Commit dcc94a7b authored by Martin Drechsler's avatar Martin Drechsler

now if daq not found, actions get printed

parent 2f4ced78
...@@ -56,6 +56,7 @@ class daq_DO(object): ...@@ -56,6 +56,7 @@ class daq_DO(object):
self.show_ul_error(e) self.show_ul_error(e)
else: else:
def set_out(self, bit_value): def set_out(self, bit_value):
print('Digital out %i set to %s' % (self.out_num, bit_value) )
return bit_value, self.out_num return bit_value, self.out_num
...@@ -83,5 +84,6 @@ class daq_AO(object): ...@@ -83,5 +84,6 @@ class daq_AO(object):
return 0 return 0
else: else:
def set_out(self, value): def set_out(self, value):
print('Analog out %i set to %f' % (self.out_num, value) )
return value, self.out_num return value, self.out_num
###################################################################################### ######################################################################################
...@@ -12,7 +12,7 @@ from PyQt5.QtCore import QTimer ...@@ -12,7 +12,7 @@ from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import (QPushButton, QWidget, QVBoxLayout, QLCDNumber, QProgressBar, QLabel) from PyQt5.QtWidgets import (QPushButton, QWidget, QVBoxLayout, QLCDNumber, QProgressBar, QLabel)
import telnetlib import telnetlib
import os import os
import numpy as np
#An example of a class #An example of a class
class anal_control_signal(QWidget): class anal_control_signal(QWidget):
...@@ -100,7 +100,7 @@ class anal_control_signal(QWidget): ...@@ -100,7 +100,7 @@ class anal_control_signal(QWidget):
self.scan_step = self.scan_step + self.scan_direction self.scan_step = self.scan_step + self.scan_direction
self.AO.set_out(self.scan_step) self.AO.set_out(self.scan_step)
print(self.scan_step) #print(self.scan_step)
def PbarEvent(self): def PbarEvent(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment