def StringToConstant(pString):
 if (os.name == 'nt'):
  staticLib = ctypes.windll.LoadLibrary('labjackud')
  a = ctypes.create_string_buffer(pString, 256)
  return staticLib.StringToConstant(a)
 else:
  raise LabJackException(0, 'Function only supported for Windows')

def StringToConstant ( pString ) : if ( os . name == 'nt' ) : staticLib = ctypes . windll . LoadLibrary ( 'labjackud' ) a = ctypes . create_string_buffer ( pString , 256 ) return staticLib . StringToConstant ( a ) else : raise LabJackException ( 0 , 'Function only supported for Windows' )
converts an labjackud valid string to its constant value .