Command: DataFileLoadRed
- Updated2024-09-12
- 6 minute(s) read
Command: DataFileLoadRed
Command: DataFileLoadRed
Loads data files into the DIAdem Data Portal and simultaneously reduces the data.
Input Parameters
DataFilename |
Specifies the name of a data file with the filename extension and the path. |
FileImportFilter |
Specifies which DataPlugin DIAdem uses for loading a data file into the Data Portal. |
ImportSelection |
Specifies which data channels to load from a data file. |
IntervalMethod |
Specifies whether DIAdem divides a channel into a specific number of intervals or whether you enter the number of values per interval. |
IntervalValue |
Specifies the number of intervals or the interval width, depending on which value IntervalMethod contains. |
ReductionType |
Specifies the data reduction method. You can select several reduction methods simultaneously. DIAdem creates a new data channel for each reduction method. |
[SectionBegin] |
Specifies the first channel line index of the channel section that DIAdem loads. |
[SectionEnd] |
Specifies the last channel line index of the channel section that DIAdem loads. |
Return Parameters
| ReturnValue | The return value is a ElementList object type. The ElementList contains all data elements created in the Data Portal by the command. A superordinate element describes its subordinate element if the superordinate element was created. If the Data Portal is empty during the loading process, DIAdem returns the Root element. If DIAdem creates a channel group containing several channels, the channel group is returned. If DIAdem loads a channel into the default group, the channel is returned. |
| Note If the two variables SectionBegin and SectionEnd both have the value 0 or are not transferred, DIAdem loads the complete channel. The interval from SectionBegin to SectionEnd must not be larger than the value of the GlobChnLength variable . To load a data section without reducing data in any way, select the value "IntervalWidth", for the IntervalMethod variable, select the value 1 as the IntervalValue interval width, and select the value eInterFirstValue as the ReductionType reduction type. |
Example
The following example loads the Example.tdm file into the DIAdem Data Portal. To reduce the data, DIAdem divides the data into 100 intervals and calculates the first value and the mean value for each interval. The example then determines the mean value of all loaded channels:
| VBScript | Python |
Dim oMyElementList Set oMyElementList = DataFileLoadRed("Example.tdm","TDM","","IntervalWidth",100,eInterMeanValue OR eInterFirstValue) Call ChnAverage(oMyChannelList, "/Average")
Related Topics
Command: ChnValExpand | Command: DataFileLoad | Command: DataFileLoadSel | Command: DataFileSave | Command: DataFileSaveSel | Command: DataFileSelDlg | Command: FileDlgShow | Command: FileNameGet | Command: PathDlgShow | Commands and Variables for Working with Data | Variable: FileExportFilter | Variable: FileFilter | Variable: FileImportFilter


