Gocator 2300 & 2880 Series
Software Development Kit • 371
#include <GoSdk/GoSdk.h>
void main()
{
kIpAddress ipAddress;
GoSystem system = kNULL;
GoSensor sensor = kNULL;
GoSetup setup = kNULL;
//Construct the GoSdk library.
GoSdk_Construct(&api);
//Construct a Gocator system object.
GoSystem_Construct(&system, kNULL);
//Parse IP address into address data structure
kIpAddress_Parse(&ipAddress, SENSOR_IP);
//Obtain GoSensor object by sensor IP address
GoSystem_FindSensorByIpAddress(system, &ipAddress, &sensor)
//Connect sensor object and enable control channel
GoSensor_Connect(sensor);
//Enable data channel
GoSensor_EnableData(system, kTRUE)
//[Optional] Setup callback function to receive data asynchronously
//GoSystem_SetDataHandler(system, onData, &contextPointer)
//Retrieve setup handle
setup = GoSensor_Setup(sensor);
//Reconfigure system to use time-based triggering.
GoSetup_SetTriggerSource(setup, GO_TRIGGER_TIME);
//Send the system a "Start" command.
GoSystem_Start(system);
//Data will now be streaming into the application
//Data can be received and processed asynchronously if a callback function has been
//set (recommended)
//Data can also be received and processed synchronously with the blocking call
//GoSystem_ReceiveData(system, &dataset, RECEIVE_TIMEOUT)
//Send the system a "Stop" command.
GoSystem_Stop(system);
//Free the system object.
GoDestroy(system);
//Free the GoSdk library
GoDestroy(api);
}
Summary of Contents for Gocator 2300 Series
Page 1: ...USER MANUAL Gocator 2300 2880 Series Firmware version 4 3 x xx Document revision D ...
Page 20: ...Gocator 2300 2880 Series Getting Started System Overview 20 ...
Page 184: ...Gocator 2300 2880 Series Gocator Web Interface Measurement 184 Measurement Panel ...
Page 189: ...Gocator 2300 2880 Series Gocator Web Interface Measurement 189 ...
Page 199: ...Gocator 2300 2880 Series Gocator Web Interface Measurement 199 Measurement Panel ...
Page 208: ...Gocator 2300 2880 Series Gocator Web Interface Measurement 208 else Output_Set Volume 0 ...
Page 389: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 389 Dimensions Envelope ...
Page 392: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 392 Dimensions Envelope ...
Page 394: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 394 Envelope ...
Page 396: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 396 Dimensions ...
Page 397: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 397 Envelope ...
Page 399: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 399 Envelope ...
Page 401: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 401 Dimensions ...
Page 402: ...Gocator 2300 2880 Series Specifications Gocator 2300 Series 402 Envelope ...
Page 405: ...Gocator 2300 2880 Series Specifications Gocator 2880 Sensor 405 Dimensions ...
Page 406: ...Gocator 2300 2880 Series Specifications Gocator 2880 Sensor 406 Envelope ...