« Close

Datasheets and User Guides

App Notes

Software & Driver

 

4.2.10 - DoubleToStringAddress()

Some special-channels of the config IOType pass IP address (and others) in a double. This function is used to convert the double into a string in normal decimal-dot or hex-dot notation.

Declaration:

LJ_ERROR _stdcall DoubleToStringAddress (  double Number,
                                           char *pString,
                                           long HexDot)

Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:

  • Number – Double precision number to be converted.
  • pString – Must pass a buffer for the string of at least 24 bytes.
  • HexDot – If not equal to zero, the string will be in hex-dot notation rather than decimal-dot.

Outputs:

  • pString – A pointer to the string representation.