Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 5 Manager Overview

Concatenated Pascal String (CPStr)

Many algorithms require manipulation of lists of strings. Arrays of strings are usually the most convenient representation for lists. This representation can place a burden on the memory manager, however, because of the large number of dynamic objects that must be managed. To make working with lists more efficient, LabVIEW supports the concatenated Pascal string (CPStr) data type that is a list of Pascal-style strings concatenated into a single block of memory. You can use support manager routines to create and manipulate lists using this data structure.

This data type is defined as follows.

typedef struct { int32 cnt;

/* number of pascal strings that follow */ uChar str[1];

/* cnt concatenated pascal strings */ } CPStr, *CPStrPtr, **CPStrHandle;

Paths (Path)

A path (short for pathname) specifies the location of a file or directory in a computer’s file system. There is a separate LabVIEW data type for a path (represented as Path), which the file manager defines in a platform-independent manner. The actual data type for a path is private to the file manager and subject to change. You create and manipulate Paths using file manager routines.

Memory-Related Types

LabVIEW uses pointers and handles to reference dynamically allocated memory. These data types are described in detail in the Online Reference and have the following type definitions.

typedef uChar *UPtr;

typedef uChar **UHandle;

Constants

The managers define the following constant for use with external code modules.

NULL 0(uInt32)

LabVIEW Code Interface Reference Manual

5-6

© National Instruments Corporation

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]