Connect()

From SweepMe! Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.