Package com.galil

Class Gclib

All Implemented Interfaces:
org.bytedeco.javacpp.tools.InfoMapper

public class Gclib extends GclibConfig
  • Constructor Details

    • Gclib

      public Gclib()
  • Method Details

    • HUGE_BUFFER

      @Namespace("gclib::internal") @MemberGetter @Cast("const size_t") public static long HUGE_BUFFER()
      \private
    • version

      @Namespace("gclib") @StdString public static String version()
      Installed gclib version.
    • addresses

      @Namespace("gclib") @StdString public static String addresses()
      \brief Show address, model, and serial of detected controllers, where available. Detected controllers are newline-separated. Each line is comma-separated. Available information by connection type: - Ethernet connections show address, model, and serial. - USB connections show address and model. - Serial and PCI connections show address only. Example output:
      
       192.168.0.40, DMC4040 Rev 1.3i, 10601
       COM5, DMC-41x3
       GALILPCI0
       
      Returns:
      std::string Newline-separated info on detected controllers.
    • ipRequests

      @Namespace("gclib") @StdString @Name("ip_requests") public static String ipRequests()
      \brief Show MAC address, model, and serial of all controllers requesting IP addresses. Detected controllers are newline-separated. Use assign_ip() to assign an IP address to controllers returned by this method. Example output:
      
       00:50:4c:20:29:69, DMC4000, 10601
       00:50:4c:58:12:34, DMC2105, 4660
       
    • assignIp

      @Namespace("gclib") @Name("assign_ip") public static void assignIp(@StdString String mac, @StdString String ip)
    • forceGcaps

      @Namespace("gclib") @Name("force_gcaps") public static void forceGcaps(@Cast("bool") boolean on)
      \brief Force future library calls to use either gcaps or direct connections. The default behavior of gclib is to prefer gcaps, but fall back to direct operations when gcaps is not running. This method allows disabling the default behavior process-wide, but cannot be undone.
      Parameters:
      on - If true, all future gclib calls will fail if gcaps not found, rather than falling back to direct operations. If false, gcaps will not be used for any future gclib calls.
    • gcapsVersion

      @Namespace("gclib") @StdString @Name("gcaps_version") public static String gcapsVersion()
      Installed gcaps version, as reported by current gcaps server.
    • listServers

      @Namespace("gclib") @StdString @Name("list_servers") public static String listServers()
      List available gcaps servers separated by newline.
    • server

      @Namespace("gclib") @StdString public static String server()
      Current gcaps server, or an empty string if connected to the local gcaps server.
    • setServer

      @Namespace("gclib") @Name("set_server") public static void setServer(@StdString String name)
      Use a gcaps server as reported by list_servers() for all future gcaps communications. Pass an empty string to use the local gcaps server.
    • setServer

      @Namespace("gclib") @Name("set_server") public static void setServer()
    • published

      @Namespace("gclib") @StdString public static String published()
      Return name of local gcaps server, or an empty string if unpublished.
    • setPublished

      @Namespace("gclib") @Name("set_published") public static void setPublished(@StdString String name)
      Publish local gcaps server as name, or unpublish if name is empty.
    • setPublished

      @Namespace("gclib") @Name("set_published") public static void setPublished()