hwIDataFile GetChannelMetaDataValue

Gets an item of meta data associated with a channel of a file.

Syntax

hwIDataFile_handle GetChannelMetaDataValue datatype, request, component, varname

Application

Tcl Query

Description

This command retrieves an item of metadata associated with a specific channel of a data file. The channel is identified by the datatype, request, and component parameters. These strings are specific to the particular file. The varname parameter specifies which item of data to retrieve.

Example

hwi GetSessionHandle sess1
sess1 GetDataFileHandle datafile "[sess1 GetSystemVariable ALTAIR_HOME]/demos/mv_hv_hg/plotting/adams/indy.req"
set reqlist [datafile GetRequestList Displacement]
set complist [datafile GetComponentList Displacement]
set metadatalist [datafile GetChannelMetaDataList Displacement [lindex $reqlist 0] [lindex $complist 0]]
datafile GetChannelMetaDataValue Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0]
datafile GetChannelMetaDataValue Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 1]
datafile GetChannelMetaDataLabel Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0]
datafile GetChannelMetaDataType Displacement [lindex $reqlist 0] [lindex $complist 0] [lindex $metadatalist 0] 

Error

If the item of metadata is not present in the file, an empty string will be returned.

Keywords

XY plot

Tcl

import

query