RTP Series API Programming Reference  1.2.1
License Functions

Functions

EXPORT int PwrSnsr_GetDongleSerialNumber (long *val)
 Get the hardware license serial number. More...
 
EXPORT int PwrSnsr_GetExpirationDate (int *Date)
 Get the hardware license expiration date. More...
 
EXPORT int PwrSnsr_GetNumberOfCals (long *val)
 Get the number of calibrations left on the license. More...
 
EXPORT int PwrSnsr_IsLicenseDongleConnected (int *val)
 Get whether the hardware license dongle is connected. More...
 

Detailed Description

License functions (Windows Only)

Function Documentation

◆ PwrSnsr_GetDongleSerialNumber()

EXPORT int PwrSnsr_GetDongleSerialNumber ( long *  val)

Get the hardware license serial number.

Parameters
valSerial number of the license dongle
Returns
Success (0) or error code.

◆ PwrSnsr_GetExpirationDate()

EXPORT int PwrSnsr_GetExpirationDate ( int *  Date)

Get the hardware license expiration date.

Parameters
Dateexpiration date in the format YYYYMMDD
Returns
Success (0) or error code.

◆ PwrSnsr_GetNumberOfCals()

EXPORT int PwrSnsr_GetNumberOfCals ( long *  val)

Get the number of calibrations left on the license.

Parameters
valNumber of cals left.
Returns
Success (0) or error code.

◆ PwrSnsr_IsLicenseDongleConnected()

EXPORT int PwrSnsr_IsLicenseDongleConnected ( int *  val)

Get whether the hardware license dongle is connected.

Parameters
valBoolean. 1 for connected or 0 for not connected.
Returns
Success (0) or error code.