hwIDataFile GetTimeChannelComponent

Gets the component name of the time channel associated with a specified data channel.

Syntax

hwIDataFile_handle GetTimeChannelComponent datatype, request, component

Application

HyperWorks Tcl Query

Description

This command returns the component name of the time channel associated with a specified data channel. The data channel is specified by the datatype, request, and component parameters.

Most data channels have a time channel associated with them. In the majority of cases, all the data channels in a file will be associated with a single, global time channel, but some file formats also support individual data channels having their own associated time channel. The latter case is useful if the file contains data sampled at different rates or from runs of varying length.

The term “time” is used loosely (for legacy reasons) to encompass any independent variable that might be associated with a channel. Hence, the actual contents of the time channel might be frequency or RPM in some cases.

This command can be used in association with GetTimeChannelDataType and GetTimeChannelRequest to provide the information necessary to plot a data channel against the intended independent variable.

Example

hwi GetSessionHandle sess1
sess1 GetDataFileHandle datafile "[sess1 GetSystemVariable ALTAIR_HOME]/demos/mv_hv_hg/plotting/adams/indy.req"
set time_datatype [datafile GetTimeChannelDatatype Displacement "REQ/997000 Global CG movement" X]
set time_request [datafile GetTimeChannelRequest Displacement "REQ/997000 Global CG movement" X]
set time_component [datafile GetTimeChannelComponent Displacement "REQ/997000 Global CG movement" X]

Error

If the data channel does not have an associated time channel, an empty string will be returned.

Keywords

HyperWorks

XY plot

.x_t

import

query