Gocator 2300 & 2880 Series
Software Development Kit • 369
You should check a decision against <=0 for failure or invalid measurement.
Operation Workflow
Applications created using the SDKtypically use the following programming sequence:
See Setup and Locations on page 364 for more information on the code samples referenced
below.
Sensors must be connected before the system can enable the data channel.
All data functions are named Go<Object>_<Function>, for example, GoSensor_Connect. For
property access functions, the convention is Go<Object>_<Property Name> for reading the
property and Go<Object>_Set<Property Name> for writing it, for example, GoMeasurement_
DecisionMax and GoMeasurement_SetDecisionMax, respectively.
Initialize GoSdk APIObject
Before the SDK can be used, the GoSdk API object must be initialized by calling GoSdk_Construct(api):
kAssembly api = kNULL;
if ((status = GoSdk_Construct(&api)) != kOK)
{
printf("Error: GoSdk_Construct:%d\n", status);