EasyManua.ls Logo

Scanlab RTC6 PCIe Board - Initialization and Program Start-Up; DLL Calling Convention; Importing Commands

Scanlab RTC6 PCIe Board
1004 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC6 boards
Doc. Rev. 1.0.21 en-US
6 Developing RTC6-User Programs
95
innovators for industry
6.2 Initialization and Program
Start-Up
To use the commands and functions of the
RTC6 PCIe Board in a user program:
A complete installation must have been carried
out – this includes the RTC6 hardware,
RTC6 board driver and RTC6 software, see
Chapter 5 ”Installation and Start-Up”, page 88
The desired RTC6 DLL (Win32- or Win64-based)
must be linked to the user program, see
Chapter 6.2.1 ”DLL Calling Convention”, page 95
The RTC6 DLL functions must be imported to the
user program, see Chapter 6.2.2 ”Importing
Commands”, page 95
At the beginning of each user program, commands
must be called:
that initialize the RTC6 DLL for the calling
user program and assigns access rights for the
installed RTC6 PCIe Boards, see Chapter 6.2.3
”Initializing the RTC6 DLL and
RTC6 Board Management”, page 97
that initialize the installed RTC6 PCIe Boards, see
Chapter 6.2.4 ”Start of RTC6 PCIe Board
Operation”, page 98
Only afterward can the user program load the
desired command lists into the RTC6 List Memory
and start processing.
These steps are described individually in the following
chapters. They are shown by an example program in
Chapter 6.2.5 ”Example Code (C)”, page 100.
6.2.1 DLL Calling Convention
Link the user program to the
RTC6DLL.dll
/
RTC6DLLx64.dll
(1)
.
The RTC6 DLL calling convention is
stdcall
for Win32
and
fastcall
for Win64.
The structure alignment is 4 byte for Win32 and
8 byte for Win64.
6.2.2 Importing Commands
To facilitate importing the commands of the
RTC6 DLL into a C, C++, C# or Pascal user program,
the RTC6 Software Package contains corresponding
utility files.
(1) See Chapter 5.4 ”Installing the RTC6 Software”,
page 90.
Notice!
Some RTC6 commands can only be completely
executed with appropriate options, see also
Chapter 2.6 ”Options”, page 38.
get_rtc_version provides information about
the options installed on your RTC6 PCIe Board.

Table of Contents