CHAPTER 4. SOFTWARE
GÖPEL electronic GmbH
4 Software
The following options are available for integrating the
G CAR 6282
Multibus Controller into your own applications:
•
Create your own applications by programming with
•
Create your own applications by programming with
•
Creating your own onboard programs through
4.1
Programming via G-API
The
G-API
( GOEPEL-API) is the C-based user interface for
GÖPEL electronic
hardware under Windows and
Linux. It provides a comprehensive, hardware-independent instruction set for CAN, CAN FD, LIN, K-Line, MOST,
FlexRay, Ethernet, LVDS, SENT, analog and digital I/O, and diagnostic services. No matter if a PXIe/ PCIe,
USB or Ethernet device is used - the commands are the same. The hardware abstraction associated with
the
G-API
allows the test application parallel access to the hardware. This allows an application to access
multiple hardware interfaces. On the other hand, several applications can access the same hardware interface
in parallel. Another feature of the
G-API
is asynchronous hardware access. This means: No execution re-
strictions for waiting firmware commands. The command acknowledgment is delivered via a callback mechanism.
With the
Hardware Explorer
,
GÖPEL electronic
provides a hardware configuration and management tool that
gives users a convenient way to manage their hardware configurations and access logical names to each hardware
interface (see
). Using logical names eliminates the need to recompile the application when
switching to another interface or controller board: The interfaces can be easily reassigned in the
Hardware Ex-
plorer
.
Please use the
G-API
documentation for more information. This documentation and the installation
software can be found in the
G-API
folder of the supplied ”Product Information” CD.
4.2
Programming via LabVIEW
The supplied CD contains a VI collection that can be used to access the
G CAR 6282
Multibus Controller under Lab-
VIEW. The LabVIEW VIs use the functions of the
G-API
.
4.3
UserCode Programming
The
G CAR 6282
Multibus Controller can execute user programs directly on the internal processor. This requires
an activation of the UserCode run-time module. The UserCode Run-Time module is optionally offered for
controller boards of the
Serie 62
(and other
GÖPEL electronic
hardware) and requires one license per board.
Executing programs directly on the processor significantly improves real-time performance and relieves the
PCI bus of the host computer. For this purpose,
GÖPEL electronic
has ported the existing
G-API
for Windows
to the QNX Neutrino real-time operating system and extended it with additional onboard functionalities. The
G CAR 6282
23