Dos, Linux, And Qnx Tools - Galil Motion Control DMC-1600 Series User Manual

Table of Contents

Advertisement

m_nController = 1
m_nRetCode = DMCOpen(m_nController, 0, m_hDmc)
End Sub
Private Sub Form_Unload(Cancel As Integer)
m_nRetCode = DMCClose(m_hDmc)
End Sub
Where:
'm_nController' is the number for the controller in the Galil registry.
'm_hDmc' is the DMC handle used to identify the controller. It is returned by DMCOpen.
'm_nRetCode' is the return code for the routine.
'm_nResponseLength' is the response string length which must be set to the size of the response
string.
'm_sResponse' is the string containing the controller response to the command.

DOS, Linux, and QNX tools

Galil offers unsupported code examples that demonstrate communications to the controller using
the following operating systems.
DOS
DOS based utilities & Programming Libraries for Galil controllers, which includes a terminal,
utilities to upload and download programs, and source code for BASIC and C programs.
Download DMCDOS at http://www.galilmc.com/support/download.html#dos.
Linux
Galil has developed code examples for the Linux operating system. The installation includes sample drivers to
establish communication with Galil PCI and ISA controllers. The current version of the software has been tested
under Redhat 6.X O.S. Source code for the drivers and other utilities developed for Linux are available to customers
upon request. Linux drivers are available for ISA and PCI cards under Kernal 2.2. Drivers are also available for the
PCI card only for Kernal 2.4.
For more information on downloading and installing the Linux drivers for Galil controllers, download the Linux
manual at: http://www.galilmc.com/support/manuals/lnxmanual.pdf.
QNX
Galil offers sample drivers for ISA and PCI cards for the QNX 4.24 operating system. We also
offer drivers and utilities for QNX 6.2 for PCI only. Download at
http://www.galilmc.com/support/download.html#linux.
52 • Chapter 4 - Software Tools and Communications
DMC-1600

Advertisement

Table of Contents
loading

Table of Contents