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

Chapter 6 Function Descriptions

Long

Macro

int32 Long(hi, lo);

Purpose

Creates an int32 from two int16 parameters.

Parameters

Name

Type

Description

 

 

 

 

 

 

hi

int16

High int16 for the resulting int32.

 

 

 

lo

int16

Low int16 for the resulting int32.

 

 

 

Return Value

The resulting int32.

Using External Code in LabVIEW

6-132

www.ni.com

Chapter 6 Function Descriptions

LoNibble

Macro

uInt8 LoNibble(x);

Purpose

Returns the value stored in the low four bits of an uInt8.

Parameters

Name

Type

Description

 

 

 

 

 

 

x

uInt8

uInt8 whose low four bits you want to

 

 

extract.

 

 

 

© National Instruments Corporation

6-133

Using External Code in LabVIEW

Chapter 6 Function Descriptions

LStrBuf

Macro

uChar *LStrBuf(s);

Purpose

Returns the address of the string data of a long Pascal string, that is, the address of s->str.

Parameters

Name

Type

Description

 

 

 

 

 

 

s

LStrPtr

Pointer to a long Pascal string.

 

 

 

Return Value

The address of the string data of the long Pascal string.

Using External Code in LabVIEW

6-134

www.ni.com

Chapter 6 Function Descriptions

LStrCmp

LStrPtr LStrCmp(l1p, l2p);

Purpose

Lexically compares two long Pascal strings to determine whether one is less than, equal to, or greater than the other. This comparison is case sensitive.

Parameters

Name

Type

Description

 

 

 

 

 

 

l1p

LStrPtr

Pointer to a long Pascal string.

 

 

 

l2p

LStrPtr

Pointer to a long Pascal string.

 

 

 

Return Value

<0, 0, or >0 if l1p is less than, equal to, or greater than l2p, respectively. Returns <0 if l1p is an initial substring of l2p.

© National Instruments Corporation

6-135

Using External Code in LabVIEW

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