def openLabJack(deviceType, connectionType, firstFound=True, pAddress=None, devNumber=None, handleOnly=False, LJSocket=None):
 rcvDataBuff = []
 handle = None
 if (connectionType == LJ_ctLJSOCKET):
  handle = _openLabJackUsingLJSocket(deviceType, firstFound, pAddress, LJSocket, handleOnly)
 elif ((os.name == 'posix') and (connectionType == LJ_ctUSB)):
  handle = _openLabJackUsingExodriver(deviceType, firstFound, pAddress, devNumber)
  if isinstance(handle, Device):
   return handle
 elif (os.name == 'nt'):
  if (deviceType == 1281):
   handle = _openWirelessBridgeOnWindows(firstFound, pAddress, devNumber)
   handle = ctypes.c_void_p(handle)
  elif (staticLib is not None):
   handle = _openLabJackUsingUDDriver(deviceType, connectionType, firstFound, pAddress, devNumber)
 elif ((connectionType == LJ_ctETHERNET) and (deviceType == LJ_dtUE9)):
  handle = _openUE9OverEthernet(firstFound, pAddress, devNumber)
 if (not handleOnly):
  return _makeDeviceFromHandle(handle, deviceType)
 else:
  return Device(handle, devType=deviceType)

def openLabJack ( deviceType , connectionType , firstFound = True , pAddress = None , devNumber = None , handleOnly = False , LJSocket = None ) : rcvDataBuff = [ ] handle = None if ( connectionType == LJ_ctLJSOCKET ) : handle = _openLabJackUsingLJSocket ( deviceType , firstFound , pAddress , LJSocket , handleOnly ) elif ( ( os . name == 'posix' ) and ( connectionType == LJ_ctUSB ) ) : handle = _openLabJackUsingExodriver ( deviceType , firstFound , pAddress , devNumber ) if isinstance ( handle , Device ) : return handle elif ( os . name == 'nt' ) : if ( deviceType == 1281 ) : handle = _openWirelessBridgeOnWindows ( firstFound , pAddress , devNumber ) handle = ctypes . c_void_p ( handle ) elif ( staticLib is not None ) : handle = _openLabJackUsingUDDriver ( deviceType , connectionType , firstFound , pAddress , devNumber ) elif ( ( connectionType == LJ_ctETHERNET ) and ( deviceType == LJ_dtUE9 ) ) : handle = _openUE9OverEthernet ( firstFound , pAddress , devNumber ) if ( not handleOnly ) : return _makeDeviceFromHandle ( handle , deviceType ) else : return Device ( handle , devType = deviceType )
openlabjack note: on windows .