connect()
***Note***
The Python3 class (currently on 'develop' branch) does not use calls to connect() and disconnect()
Instead, initialize the object as
P = PulsePalObject(serialPort).
Deleting the object will disconnect from the port automatically: del P
Description
Initializes Pulse Pal
The function sends a handshake byte to a Pulse Pal on the specified serial port
It then retrieves the firmware version and stores it in the PulsePal object.
Syntax
connect(serialPort)
Parameters
serialPort: a string specifying the serial port (i.e. "COM3", "/dev/tty.USBmodemXXXXXX")
Returns
None
Example
# The minimal initialization routine:
from PulsePal import PulsePalObject # Import PulsePalObject
myPulsePal = PulsePalObject() # Create a new instance of a PulsePal object
myPulsePal.connect('COM4') # Connect PulsePal on port COM4 (handshake and get firmware version)