def GetDriverVersion():
 if (os.name == 'nt'):
  staticLib.GetDriverVersion.restype = ctypes.c_float
  return str(staticLib.GetDriverVersion())
 elif (os.name == 'posix'):
  staticLib.LJUSB_GetLibraryVersion.restype = ctypes.c_float
  return ('%.2f' % staticLib.LJUSB_GetLibraryVersion())

def GetDriverVersion ( ) : if ( os . name == 'nt' ) : staticLib . GetDriverVersion . restype = ctypes . c_float return str ( staticLib . GetDriverVersion ( ) ) elif ( os . name == 'posix' ) : staticLib . LJUSB_GetLibraryVersion . restype = ctypes . c_float return ( '%.2f' % staticLib . LJUSB_GetLibraryVersion ( ) )
converts an labjackud valid error code to a string .