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

Chapter 5 Manager Overview

Most applications need routines for allocating and deallocating memory on request. You can use the memory manager to dynamically allocate, manipulate, and release memory. The LabVIEW memory manager supports dynamic allocation of both non-relocatable and relocatable blocks, using pointers and handles. For more information, see the Function and VI Reference topic in LabVIEW’s Online Reference, or the Code Interface Node Reference online manual.

Applications that manipulate files can use the functions in the file manager. This set of routines supports basic file operations such as creating, opening, and closing files, writing data to files, and reading data from files. In addition, file manager routines allow you to create directories, determine characteristics of files and directories, and copy files. File manager routines use a LabVIEW data type for file pathnames (Paths) that provides a platform-independent way of specifying a file or directory path. You can translate a Path to and from a host platform's conventional format for describing a file pathname. See the Online Reference for more information.

The support manager contains a collection of generally useful functions, such as functions for bit or byte manipulation of data, string manipulation, mathematical operations, sorting, searching, and determining the current time and date. See the Online Reference for more information.

Basic Data Types

Scalar Data Types

Note: The names of several types used by the manager routines have changed for version 4.0. These changes are strictly textual—that is, the actual types have not changed. The changes are: boolean was changed to Bool32, Ptr was changed to UPtr, and Handle was changed to UHandle.

Booleans

External code modules work with two kinds of Booleans—those that exist in LabVIEW block diagrams and those that pass to and from manager routines. The manager routines use a conventional form of Boolean, where 0 is FALSE and 1 is TRUE. This form of Boolean is called a Bool32, and it is stored as a 32-bit value.

LabVIEW Code Interface Reference Manual

5-2

© National Instruments Corporation

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