Connect()

From SweepMe! Wiki
Jump to: navigation, search

The function connect can be added to any Device Class:

def connect(self):
   # do something

This function will be called at the beginning of each measurement. It is intended to be used to make everything ready for further communication with the device. In case, you use the PortManager there is no need to use this function. Otherwise, you can create your own object to here to communicate with your device.