Gocator API > Go2 > Classes > Go2System

Gocator 1x00 API | Contents | Reference | Previous | Up | Next

Go2System
Classes Topics Example
Description

Represents a Gocator 2000 sensor system.

C

    typedef Go2Object Go2System;

Example

The following example demonstrates how to use the Go2System class.

    #include <Go2.h>

    void main()
    {
        Go2System system = 0;

        //Open the Go2 library.
        Go2Api_Initialize();

        //Construct a Gocator 2000 system object.
        Go2System_Construct(&system);

        //Connect to default sensor IP address, with default password (blank).
        Go2System_Connect(system, GO2_DEFAULT_IP_ADDRESS, GO2_USER_ADMIN, “”);

        //Reconfigure system to use time-based triggering.
        Go2System_SetTriggerSource(system, GO2_TRIGGER_SOURCE_TIME);

        //Send the system a “Start” command.
        Go2System_Start(system);

        //Free the system object.
        Go2System_Destroy(system);

        //Close the Go2 library.
        Go2Api_Terminate();

    }

File

Go2System.h

Topics

Topic | Description
Functions | Go2System functions.
Signatures | Go2System callback signatures.

Copyright (c) 2013 by LMI Technologies Inc. All rights reserved.
Contents | Reference