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

 

 

Chapter 7 File Manager Functions

permissions

int32

Permissions for the new directory. See the File

 

 

Manager Data Structures section of this chapter for

 

 

a description of permissions.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

mgArgErr

A bad argument was passed to the function. Verify path.

 

fNoPerm

Access denied (file/directory/disk is locked /protected).

 

fDupPath

Directory already exists.

 

fIOErr

Unspecified I/O error occurred.

 

 

 

Copying Files

FCopy

syntax MgErr FCopy(oldPath, newPath);

FCopy copies a file, preserving the type, creator, and access rights. The file to be copied must not be open. If an error occurs, the new file is not created.

 

Parameter

Type

Description

 

oldPath

Path

Path of the file you want to copy.

 

newPath

Path

Path, including filename, where you want the new

 

 

 

file to be stored.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

 

mgArgErr

A bad argument was passed to the function. Verify path.

 

fNotFound

The original file could not be found.

 

fNoPerm

Access denied (file/directory/disk is locked/protected).

 

fDiskFull

Disk is full.

 

 

fDupPath

The new file already exists.

 

fIsOpen

The original file is open for writing.

 

fTMFOpen

Too many files open.

 

mFullErr

Insufficient memory.

 

fIOErr

Read, write, or unspecified I/O error occurred

 

 

 

 

National Instruments Corporation

7-19

LabVIEW Code Interface Reference Manual

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