this document best viewed at 1024x768 or higher resolution

LLABS Classes
(easy style)
Click HERE for listing of class member functions that offer more flexibility
 
Programming interface classes for
--   For Win98/ME/2k/XP   --
download sample code and header files
download archive of all class documentation




Classes hierarchy and member functions
-- designed for easy use by making use of many default parameters --

LLABS
<- root class
 
MyLL_USB
<- can be used
  as base class
   
 
Initialization
   
   
no argument init - function uses first device it finds and all default args.
BOOLEAN Init_SP( );

get current default device ID that was found by call to function Init_SP.
BOOLEAN GetDefDev_SP (USHORT* pusDevID);


 
Rate and calibration
   
   
rate

   
single argument rate change - function uses device from Init_SP()
BOOLEAN ChangeCurDevRate_SP (DOUBLE* pdblRate);

   
calibration

   
single argument calibration - function uses device from Init_SP()
BOOLEAN Calibrate_SP ();


 
Basic I/O
   
   
channel

   
single argument chan change - function uses device from Init_SP()
BOOLEAN SetCurChan_SP (BYTE bChan);

single argument chan read - function uses device from Init_SP()
BOOLEAN GetCurChan_SP (BYTE* pbCurChan);

   
analog output (Model 302 only)

   
analog output - function uses device from Init_SP()
BOOLEAN SendAnalogOut_SP (BYTE bDAC, DOUBLE dblVoltage);

   
digital output

   
single argument digital output - function uses device from Init_SP()
BOOLEAN SendDigitalOutput_SP (BYTE bDigOutVal);

   
digital input

   
single argument digital input - function uses device from Init_SP()
BOOLEAN GetDigitalInput_SP (BYTE* pbDiginVal);


 
Polled data mode
   
   
get one voltage

   
single argument getting voltage - function uses device from Init_SP()
BOOLEAN GetOneVoltage_SP (DOUBLE* pdblVoltage);


 
Scanning data mode
   
   
start scan

   
single argument starting scan - function uses device from Init_SP(). Uses current channel.
BOOLEAN StartScan_SP ();

   
read scan data

   
single argument getting scan voltages - function uses device from Init_SP()
BOOLEAN GetScanVoltage_SP (PSCAN_INFO_USB_PNTS_SINGLE pScanInfoPntsSingle, DOUBLE* padblVoltages);

   
end scan

   
no argument ending scan - function uses device from Init_SP()
BOOLEAN EndScan_SP ();


 
Miscellaneous functions
   
   
get status of last class function call you made

   
single argument get last error for device from Init_SP().
BOOLEAN GetLastDevError_SP (UINT* puiErrorCode);

single argument get last error from any previously call function call, any device
BOOLEAN GetLastAnyError_SP (UINT* puiErrorCode);

   
get device connection and power status

   
get device connection and power status for device from Init_SP().
BOOLEAN GetDevStatus_SP (UINT* puiConnectionStat, UINT* puiPowerStat);

   
get device initialization status

   
no argument check to see if any device was initialized using call to Init_SP(). Returns TRUE if there was.
BOOLEAN GetCurDevInitStatus_SP ();

   
get device scan status

   
check to see if device is scanning and/or if it is safe to start scanning. Uses device ID from Init_SP()
BOOLEAN GetCurDevScanStatus_SP (USHORT usDevID, BOOLEAN* fOkayToStartScan, BOOLEAN* fScanning);



MyLL_TCPIP
<- can be used
  as base class
   
 
Initialization
   
   
no argument init - function uses first device it finds and all default args.
BOOLEAN Init_SP ( );

get current default device ID address string if Init_SP was used. IP Address in format:   xxx.xxx.xxx.xxx
BOOLEAN GetDefDev_SP (char* szDevIPAddress);


 
Rate and calibration
   
   
rate

   
single argument rate change - function uses device from Init_SP()
BOOLEAN ChangeCurDevRate_SP (DOUBLE* pdblRate);

   
calibration

   
single argument calibration - function uses device from Init_SP()
BOOLEAN Calibrate_SP ();


 
Basic I/O
   
   
channel

   
single argument chan change - function uses device from Init_SP()
BOOLEAN SetCurChan_SP (BYTE bChan);

single argument chan read - function uses device from Init_SP()
BOOLEAN GetCurChan_SP (BYTE* pbCurChan);

   
analog output

   
analog output - function uses device from Init_SP()
BOOLEAN SendAnalogOut_SP (BYTE bDAC, DOUBLE dblVoltage);

   
digital output

   
single argument digital output - function uses device from Init_SP()
BOOLEAN SendDigitalOutput_SP (BYTE bDigOutVal);

   
digital input

   
single argument digital input - function uses device from Init_SP()
BOOLEAN GetDigitalInput_SP (BYTE* pbDiginVal);


 
Polled data mode
   
   
get one 24-bit conversion

   
get one conversion (24-bit count) of device that you pass as arg
BOOLEAN GetOneCount (char* szDevAddress, UINT* puiRawCount);

   
get one voltage

   
single argument getting voltage - function uses device from Init_SP()
BOOLEAN GetOneVoltage_SP (DOUBLE* pdblVoltage);


 
Scanning data mode
   
   
start scan

   
single argument starting scan - function uses device from Init_SP(). Uses current channel.
BOOLEAN StartScan_SP ();

   
read scan data

   
single argument getting scan voltages - function uses device from Init_SP()
BOOLEAN GetScanVoltage_SP (PSCAN_INFO_TCPIP_PNTS_SINGLE pScanInfoPntsSingle, DOUBLE* padblVoltages);

   
end scan

   
no argument ending scan - function uses device from Init_SP()
BOOLEAN EndScan_SP ();


 
Miscellaneous functions
   
   
get status of last class function call you made

   
single argument get last error for device from Init_SP().
BOOLEAN GetLastDevError_SP (UINT* puiErrorCode);

single argument get last error from any previously call function call, any device
BOOLEAN GetLastAnyError_SP (UINT* puiErrorCode);

   
get device connection status

   
get device connection and power status for device from Init_SP().
BOOLEAN GetDevStatus_SP (UINT* puiConnectionStat);

   
get device initialization status

   
no argument check to see if any device was initialized using call to Init_SP(). Returns TRUE if there was.
BOOLEAN GetCurDevInitStatus_SP ();

   
get device scan status

   
check to see if device is scanning and/or if it is safe to start scanning. Uses device ID from Init_SP()
BOOLEAN GetCurDevScanStatus_SP (char* szDevAddress, BOOLEAN* fOkayToStartScan, BOOLEAN* fScanning);

 


   NOTICE:   TCP/IP and Serial class not yet available.
    (use browser BACK button to return to where you were)



         






















































C/C++ Developer's USB Class usage examples





















back

C/C++ Developer's USB Class usage examples





















back
lawsnlab@lawsonlabs.com
last modified: 5-22-02