Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

getfileproperty (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

getfileproperty(file, objname, objtype, name)

value = getfileproperty(file, objname, objtype, name)

Description

Returns a property value from a binary measurement file (.tdm or .tdms), a channel, or a channel group you specify. (Mac OS X and Linux) You cannot use this function with binary measurement files (.tdm or .tdms).

Details

Examples

Inputs

Name Description
file Specifies the path to the file from which you want to get a property value. If file is a relative path, LabVIEW begins searching for the file in the current working directory. file is a string.
objname Specifies the name of the channel or channel group. If objtype is 'file', objname can be empty. objname is a string.
objtype Specifies whether to return a property value from a file, a channel, or a channel group. objtype is a string that accepts the following values.

'file' File
'channel' Channel
'channel group' Channel group
name Specifies the name of the property for which to return the value. name is a string.

Outputs

Name Description
value Returns the property value from the file, channel, or channel group.

Details

If you use this function in a stand-alone application or shared library and file is a relative path, LabVIEW searches for the file in the path where you installed the application or shared library. If file is an absolute path, LabVIEW searches for the file on the local machine or target at the specified location. (Real-Time Module) If you deploy this function to an RT target and file is a relative path, LabVIEW searches for the file in the path returned by the Default Data Directory VI.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT No (affects entire script)

Examples

a = 1:10;
save 'test.tdm' a;
value = getfileproperty('test.tdm', '', 'file', 'author');

Related Topics

save
setfileproperty


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit