gclib 2.5.0
Galil Communications Library
Loading...
Searching...
No Matches
Galil Communications Library (gclib)

The Galil Communications Library (gclib) is a thread-safe C API that allows users to connect to and communicate with Galil controllers. Galil provides multiple wrappers around gclib, allowing for use in C++, Python, Java, C#, Visual Basic, or LabVIEW projects.

Installation

All languages require the underlying C library to be installed.

Windows Linux

Note
gcaps is a service that is included in the gclib and gdk installers. It allows multiple gclib clients to share a single controller connection, which can be especially useful for unsolicited data.

Other Languages

Python Java C# / VB

Quickstart

Follow the instructions to build a simple example program using gclib.

  • C C99 or newer is supported.
    • Windows
      1. Install CMake.
      2. Install one of the supported compilers:
        • MSVC 19.16 (Visual Studio 2017 version 15.9) or later
        • gcc 8.5 or later
      3. Compile and run the Hello World example:
        > cmake -S "%GCLIB_ROOT%\examples\c" -B c_examples
        > cd c_examples
        > cmake --build .
        > .\hello-world.exe
        gclib version is 2.5.0
        Hello World!
    • Linux
      1. Install CMake and gcc.
        RHEL / CentOS Stream / Fedora / Rocky Ubuntu / Debian / Raspberry Pi OS
        $ sudo dnf install cmake gcc $ sudo apt install cmake gcc
      2. Compile and run the Hello World program:
        $ cmake -S /usr/share/gclib/examples/c -B c_examples
        $ cd c_examples
        $ cmake --build .
        $ ./hello-world
        gclib version is 2.5.0
        Hello World!
  • C++ C++17 or newer is supported.
    • Windows
      1. Install CMake.
      2. Install one of the supported compilers:
        • MSVC 19.16 (Visual Studio 2017 version 15.9) or later
        • g++ 8.5 or later
      3. Compile and run the Hello World example:
        > cmake -S "%GCLIB_ROOT%\examples\cpp" -B cpp_examples
        > cd cpp_examples
        > cmake --build .
        > .\hello-world.exe
        gclib version is 2.5.0
        Hello World!
    • Linux
      1. Install CMake and g++.
        RHEL / CentOS Stream / Fedora / Rocky Ubuntu / Debian / Raspberry Pi OS
        $ sudo dnf install cmake gcc-c++ $ sudo apt install cmake g++
      2. Compile and run the Hello World program:
        $ cmake -S /usr/share/gclib/examples/cpp -B cpp_examples
        $ cd cpp_examples
        $ cmake --build .
        $ ./hello-world
        gclib version is 2.5.0
        Hello World!
  • LabVIEW The LabVIEW wrapper is available on the VIPM community repository. Simply open VIPM, search for 'gclib', and install.

    LabVIEW 2023 or newer is supported.

    Direct install

    Download

    1. Right click the downloaded file and choose "Add to VIPM Library".
    2. Choose "Add To Library & Install" when prompted.
    3. Search for gclib in the package list, then double click on it to bring up the package info.
      • To see all available functions, click "Show in Palettes"
      • To see all example VIs, click "Show Examples"

    Looking for older versions?

Next
Examples