EasyManua.ls Logo

LMI Technologies Gocator Series - Initialize Gosdk API Object

Default Icon
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Gocator Line Profile Sensors: User Manual
Development Kits 436
See Setup and Locations on page 431 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 APIObject
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);
return;
}
When the program finishes, call GoDestroy(api) to destroy the API object.

Table of Contents

Related product manuals