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

Chapter 6 Function Descriptions

ASCIITime

CStr ASCIITime(secs);

Purpose

Returns a pointer to a string representing the date and time of day corresponding to t seconds after January 1, 1904, 12:00 AM, GMT. This function uses the same date format as that returned by the DateCString function using a mode of 2. The date is followed by a space, and the time is in the same format as that returned by the TimeCString function using a mode of 0. For example, this function might return Tuesday, Dec 22, 1992 5:30. In SPARCstation, this function accounts for international conventions for representing dates.

Parameters

Name

Type

Description

 

 

 

 

 

 

secs

uInt32

Seconds since January 1, 1904, 12:00 AM,

 

 

GMT.

 

 

 

Return Value

The date and time as a C string.

Using External Code in LabVIEW

6-10

www.ni.com

Chapter 6 Function Descriptions

AZCheckHandle/DSCheckHandle

MgErr AZCheckHandle(h);

MgErr DSCheckHandle(h);

Purpose

Verifies that the specified handle is a handle. If it is not a handle, this function returns mZoneErr.

Parameters

Name

Type

Description

 

 

 

 

 

 

h

Uhandle

Handle you want to verify.

 

 

 

Return Value

mgErr, which can contain the following errors:

NoErr

No error.

mZoneErr

Handle or pointer not in specified zone.

© National Instruments Corporation

6-11

Using External Code in LabVIEW

Chapter 6 Function Descriptions

AZCheckPtr/DSCheckPtr

MgErr AZCheckPtr(p);

MgErr DSCheckPtr(p);

Purpose

Verifies that the specified pointer is allocated with XXNewPtr or XXNewPClr. If it is not a pointer, this function returns mZoneErr.

Parameters

Name

Type

Description

 

 

 

 

 

 

p

UPtr

Pointer you want to verify.

 

 

 

Return Value

mgErr, which can contain the following errors:

NoErr

No error.

mZoneErr

Handle or pointer not in specified zone.

Using External Code in LabVIEW

6-12

www.ni.com

Chapter 6 Function Descriptions

AZDisposeHandle/DSDisposeHandle

MgErr AZDisposeHandle(h);

MgErr DSDisposeHandle(h);

Purpose

Releases the memory referenced by the specified handle.

Parameters

Name

Type

Description

 

 

 

 

 

 

h

UHandle

Handle you want to dispose of.

 

 

 

Return Value

mgErr, which can contain the following errors:

NoErr

No error.

mZoneErr

Handle or pointer not in specified zone.

© National Instruments Corporation

6-13

Using External Code in LabVIEW

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