Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Using External Code in LabVIEW.pdf
Скачиваний:
49
Добавлен:
29.05.2015
Размер:
1.85 Mб
Скачать

Chapter 4 Programming Issues for CINs

Support Manager

The support manager is a collection of constants, macros, basic data types, and functions that perform operations on strings and numbers. The support manager also has functions for determining the current time in a variety of formats.

The string functions contain much of the functionality of the string libraries supplied with standard C compilers, such as string concatenation and formatting. You can use variations of many of these functions with LabVIEW strings (4-byte length field followed by data, generally stored in a handle), Pascal strings (1-byte length field followed by data), and

C strings (data terminated by a null character).

With the utility functions you can sort and search on arbitrary data types, using quicksort and binary search algorithms.

The support manager also contains transcendental functions for many complex and extended floating-point operations.

Certain routines specify time as a data structure using the following form.

typedef struct {

int32

sec;/* 0:59 */

int32

min;/* 0:59 */

int32

hour;/* 0:23 */

int32

mday;/* day of the month, 1:31 */

int32

mon;/* month of the year, 1:12 */

int32

year;/* year, 1904:2040 */

int32

wday;/* day of the week, 1:7 for Sun:Sat */

int32

yday;/* day of year (julian date), 1:366 */

int32

isdst;/* 1 if daylight savings time */

} DateRec;

 

Using External Code in LabVIEW

4-36

www.ni.com

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