background image

4  Software

G PCIe 6281

18

4  Software

The following options are available for integrating the 

 G PCIe 6281

 Multibus Controller into your own applica-

tions: 

Create your own applications by programming with 

G-API

Create your own applications by programming with 

LabVIEW

Creating your own onboard programs through 

UserCode programming

4.1 Programming via G-API

The 

 G-API 

( GOEPEL-API) is the C-based user interface for 

 GOEPEL electronics 

 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 

 al-

lows the test application parallel access to the hardware. This allows an application to access multiple hard-

ware interfaces. On the other hand, several applications can access the same hardware interface in parallel. An-

other feature of the 

 G-API 

 is asynchronous hardware access. This means: No execution restrictions for waiting

firmware commands. The command acknowledgment is delivered via a callback mechanism.

With the 

 HardwareExplorer 

 GOEPEL electronics 

 provides a hardware configuration and management tool that

gives users a convenient way to manage their hardware configurations and access logical names to each hard-

ware interface (see 

HardwareExplorer

). 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-

Explorer 

.

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 PCIe 6281 

 Multibus Controller under

LabVIEW.  The LabVIEW VIs use the functions of the 

 G-API 

.

4.3 UserCode Programming

The 

 G PCIe 6281 

 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 con-

troller boards of the 

 Series 62 

 (and other 

 GOEPEL electronics 

 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, 

 GOEPEL electronics 

 has ported the existing 

 G-API 

 for Windows to

the QNX Neutrino real-time operating system and extended it with additional onboard functionalities. The QNX

Neutrino real-time operating system is based on a microkernel architecture, which is characterized by a clean

separation of kernel and application. This makes it possible to execute user programs in their own virtual memo-

ry, which guarantees secure program execution and improves stability. For a smooth porting of existing program

source codes, the UserCode onboard 

 G-API 

 uses an image of the familiar Windows 

 G-API 

 commands. In ad-

dition, additional functions provide access to event handling, timer tasks, as well as the FLASH file systems and

other operating system resources, as well as to the standard C libraries. In UserCode programming, note that the

processor uses a little-endian byte order. For easier porting, endian conversion macros are included with the 

Net2Run IDE 

 development system. With the 

 Net2Run IDE 

 development system, 

 GOEPEL electronics 

 offers a

complete set of development tools for creating UserCode programs and directly executing them on 

 Series 62 

controller boards. The 

 Net2Run IDE 

 development system is based on Eclipse IDE and includes the QNX Neutrino

Command Line Tools (CLT), including compiler, linker and debugger.

Summary of Contents for G PCIe 6281

Page 1: ...G PCIe 6281 Manual Original documentation...

Page 2: ...GOEPEL electronics GmbH assumes no lia bility or responsibility Without the prior written permission of GOEPEL electronics GmbH no part of this documentation may be transmitted reproduced or stored in...

Page 3: ...eral Specifications 10 3 3 2 General Electrical Specifications 10 3 4 Design and Function 10 3 4 1 Block Diagram 11 3 4 2 Pin Assignment 11 3 4 3 LAN Ethernet 12 3 4 4 LEDs Status Indication 13 3 4 5...

Page 4: ...G PCIe 6281 G PCIe 6281 iv 6 2 Disposal of used Disposable Batteries Rechargeable Batteries 23 Index 24 A Declaration of Conformity 25...

Page 5: ...e network adapter 5 2 2 Example IP address of the network adapter 6 2 3 HardwareExplorer with G PCIe 6281 Multibus Controller 6 3 1 Overview G PCIe 6281 as PCIe 9 3 2 Block Diagram of the G PCIe 6281...

Page 6: ...icle numbers of the TE Connectivity adapter cables 12 3 7 Display states of the status LEDs 13 3 8 Assignment of transceivers to VBAText 14 3 9 Interface options of the firmware variants 14 3 10 Elect...

Page 7: ...6281 is a programmable intelligent multibus controller with various communication interfaces for automotive and general control technology Typical applications are Communication with various bus users...

Page 8: ...written consent of the manufacturer Never operate damaged devices or components Keep liquids away from the unit and do not place any containers with liquid on the unit Danger of tripping or falling d...

Page 9: ...1 Introduction G PCIe 6281 3 1 7 Supplied Accessories As accessories to G PCIe 6281 Multibus Controller you get Series 62 Multibus Controller as PCIe board CD with driver software and manual...

Page 10: ...e the existing slot plate of the selected slot For this the fastening screws must be loosened The board should be inserted carefully in the prepared slot After contacting the board it is fastened to t...

Page 11: ...ultibus Controller in the network For this setup open the Properties dialog of the corresponding network adapter and select Internet Protocol Version 4 TCP IPv4 Figure 2 1 Properties of the network ad...

Page 12: ...th G PCIe 6281 Multibus Controller A second way to change the IP address is to use the G API command G_Common_Ethernet_IpAddress_Set The new IP address is effective after a restart It is necessary to...

Page 13: ...is necessary to replace a transceiver observe the general rules for avoiding electrostatic charge A correctly positioned plugging in the transceiver must be realized Please make sure that alle hardwar...

Page 14: ...st system Xilinx MPSoC with Quad Core ARM Cortex A53 Processor 4 GByte DDR4 RAM and 8 GByte eMMC Gigabit Ethernet interface for control and data exchange with the PC Independent freely configurable bu...

Page 15: ...ed by an industry consortium that specifies hardware electronics software power and cooling requirements The G PCIe 6281 Multibus Controller is designed as PCIe Version 2 1 and has 4 lanes It has a ba...

Page 16: ...bus interfaces and another eight digital I O interfaces The bus interfaces can be configured in nu merous variants Each bus interface has a transceiver slot assigned to it with the respectively inser...

Page 17: ...ignal Pin RJ 5 Nr 1 RJ 5 Nr 2 RJ 5 Nr 3 RJ 5 Nr 4 1 TRX1 DATA P TRX3 DATA P TRX5 DATA P TRX7 DATA P 2 TRX1 DATA N TRX3 DATA N TRX5 DATA N TRX7 DATA N 3 TRX2 DATA P TRX4 DATA P TRX6 DATA P TRX8 DATA P...

Page 18: ...5e F UTP AWG 26 LszH short boot Cat5e F UTP AWG 26 LszH Cat5e F UTP AWG 26 LszH short boot Article number Article number Article number Article number cable length 2142758 1 2159683 1 2142759 1 215968...

Page 19: ...voltages and can suppress dangerous surges It also prevents ground loops responsible for da ta errors due to ground potential differences On the G PCIe 6281 Multibus Controller the host system is elec...

Page 20: ...Transceiver VBAText0 TRX1 2 VBAText1 TRX3 4 VBAText2 TRX5 6 VBAText3 TRX7 8 Table 3 8 Assignment of transceivers to VBAText Due to the large number of possible variants how the various bus interfaces...

Page 21: ...mination_Enable the bus termination resistor is reactivated 3 5 2 LIN K Line The G PCIe 6281 Multibus Controller supports a total of eight LIN K Line interfaces For LIN the following transceiver is us...

Page 22: ...internal voltage can be switched off individually by software with the G API command G_FleyRay_ Node_InternalVBat_Disable In this case the external voltage UBAText must be fed via the prede fined pin...

Page 23: ...el output voltage 0 1 V at IOUT 50 A IOUT Output current 48 mA Table 3 14 Electrical characteristics for Digital I O 3 5 6 SENT Optionally up to two SENT inputs and four SENT outputs according to the...

Page 24: ...2 Programming via LabVIEW The supplied CD contains a VI collection that can be used to access the G PCIe 6281 Multibus Controller under LabVIEW The LabVIEW VIs use the functions of the G API 4 3 UserC...

Page 25: ...ace supports the loading and execution of so called residual bus simulation files rbs These are preconfigured command sequences that contain a static residual bus simulation These files are created us...

Page 26: ...urations to their default values Each interface can be initialized individually or all interfaces together To initialize an interface the command G_Common_InitInterface can be used With G_Common_Softw...

Page 27: ...ess read and edit is enabled via G API functions In addition Net2Run also pro vides a gateway routing editor with PDU and signal mapping func tionality Net2Run supports automatic import of vehicle ele...

Page 28: ...Furthermore we ask you to announce possible warranty cases as such Repair orders without reference to an existing warranty claim will in any case initially be paid If the warranty has expired we will...

Page 29: ...on the environment and health due to the po tential hazardous substances in electrical and electronic equipment Dispose of the product at a suitable collec tion point When disposing of the device in...

Page 30: ...exRay 16 G G API 4 18 Galvanic Isolation 13 H Hardware Explorer 18 I Installation 4 L LabVIEW 18 LAN 5 12 LED 13 Liability 2 LIN K Line 15 N Net2Run 19 O Onboard Interfaces 14 Options 21 P Pin Assignm...

Page 31: ...Appendix A Declaration of Conformi ty G PCIe 6281 25 Appendix A Declaration of Conformity...

Reviews: