Skip to main content

GPIBGetFloatResult

Valid for: CANoe DE

Function Syntax

double GPIBGetFloatResult (char[] buffer);

Description

Helper functions for extracting numeric values from GPIB response strings.

Parameters

  • buffer: The string in buffer, which may have been obtained by the GPIBResponse function, is searched for a floating-point number, using the function strtod of C/C++. If a space character is present in the string, the search for the number starts at the first such character.

Return Values

  • Extracted float value
  • 0: No representation of a value has been found.
  • -1: buffer is an empty string.

Example