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

Chapter 6 Function Descriptions

LStrLen

Macro

int32 LStrLen(s);

Purpose

Returns the length of a long Pascal string, that is, s->cnt.

Parameters

Name

Type

Description

 

 

 

 

 

 

s

LStrPtr

Pointer to a long Pascal string.

 

 

 

Return Value

The number of characters in the long Pascal string.

Using External Code in LabVIEW

6-136

www.ni.com

Chapter 6 Function Descriptions

LToPStr

int32 LToPStr(lstrp, pstr);

Purpose

Converts a long Pascal string to a Pascal string. If the long Pascal string is more than

255 characters, this function converts only the first 255 characters. The function works even if the pointers lstrp and pstr refer to the same memory location. The function assumes pstr is large enough to contain lstrp.

Parameters

Name

Type

Description

 

 

 

 

 

 

lstrp

LStrPtr

Pointer to a long Pascal string.

 

 

 

pstr

PStr

Pointer to a Pascal string.

 

 

 

Return Value

The length of the string, truncated to a maximum of 255 characters.

© National Instruments Corporation

6-137

Using External Code in LabVIEW

Chapter 6 Function Descriptions

Max

int32 Max(n,m);

Purpose

Returns the maximum of two int32 parameters.

Parameters

Name

Type

Description

 

 

 

 

 

 

n, m

int32

int32 parameters whose maximum value

 

 

you want to determine.

 

 

 

Using External Code in LabVIEW

6-138

www.ni.com

Chapter 6 Function Descriptions

MilliSecs

uint32 MilliSecs();

Return Value

The time in milliseconds since an undefined system time. The actual resolution of this timer is system dependent.

© National Instruments Corporation

6-139

Using External Code in LabVIEW

Chapter 6 Function Descriptions

Min

int32 Min(n,m);

Purpose

Returns the minimum of two int32 parameters.

Parameters

Name

Type

Description

 

 

 

 

 

 

n, m

int32

int32 parameters whose minimum value

 

 

you want to determine.

 

 

 

Using External Code in LabVIEW

6-140

www.ni.com

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