Data Types - Scanlab RTC 5 PC Interface Board Installation And Operation Manual

Table of Contents

Advertisement

10.1.7 Data Types

The following table defines the formats and ranges
of the different data types used by the
®
RTC
5 commands:
Data Format
unsigned 32-bit value
signed 32-bit value
64-bit IEEE floating point
format
pointer to a null-terminated
ANSI string, 1 byte per char
Pointer to Locations in the PC's Memory
Some commands (e.g. get_transform, get_values,
get_waveform,
transform
have pointers to locations in the PC's memory as
parameters. In C# and Pascal, appropriate pointer
data types are herefore used (see import declara-
tions). In C and C++, the data type ULONG_PTR is
used for this pointer parameters. The ULONG_PTR
data type is defined in the C and C++ import decla-
rations as follows (ULONG_PTR = unsigned 32-bit
value for Win32-based applications, ULONG_PTR =
unsigned 64-bit value for Win64-based applications):
#if !defined(ULONG_PTR)
#if defined(WIN32)
#define ULONG_PTR UINT
#else
#define ULONG_PTR UINT64
#endif
#endif
Usually, the data type ULONG_PTR is also appropri-
ately defined in the WINDOWS header file
<BaseTsd.h>.
®
RTC
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
Range
Pascal
32
[0; (2
–1)]
longword
31
31
[–2
; +(2
–1)]
longint
double
4 Byte (for
pchar
Win32-based
applications)
8 Byte (for
Win64-based
applications)
or upload_transform)
C, C++
C#
unsigned long
uint
long
int
double
double
char*
string
226

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF