Command: DataFileSaveSel
- Updated2024-09-12
- 4 minute(s) read
Command: DataFileSaveSel
Command: DataFileSaveSel
Saves selected channels and their properties from the DIAdem Data Portal to a data file. DIAdem saves the groups and channels in the target file in the same structure as in the Data Portal.
Input Parameters
DataFilename |
Specifies the name of a data file with the filename extension and the path. |
FileExportFilter |
Specifies the storage method you use to save data from the DIAdem Data Portal to a file. If you do not specify a storage method, DIAdem saves the data with the TDM DataPlugin. |
SelectedChannels |
Specifies the data channels that DIAdem saves in the target file. If you do not specify any channels, DIAdem saves all channels. |
[ChnXYRelation] |
Specifies that there are x-channel references in xy-channels and that the x-channel is used when copying and moving xy-channels. |
| Note If you save data in TDM format, you use the FileSaveDataType variable to specify whether DIAdem specifies the data format automatically, or saves the data format as a floating point value with 64 bits. By default, DIAdem specifies the data format automatically. |
| Note The page Loading Bulk Data - General contains important information on the extended loading behavior of TDM and TDMS files. |
Examples
The following example saves the channels whose names start with the text Channel from the first group in the Data Portal and all channels from the second group in the file MyExample1.tdm.
| VBScript | Python |
Dim oMyChannelList Set oMyChannelList = Data.GetChannels("[1]/Channel*") Call oMyChannelList.Add(Data.Root.ChannelGroups(2)) Call DataFileSaveSel(DataWritePath & "MyExample1.tdm", "TDM", oMyChannelList)
Related Topics
Command: ChnValExpand | Command: DataFileLoad | Command: DataFileLoadRed | Command: DataFileLoadSel | Command: DataFileSave | Command: DataFileSelDlg | Command: FileDlgShow | Command: FileNameGet | Command: PathDlgShow | Commands and Variables for Working with Data | Variable: FileExportFilter | Variable: FileFilter | Variable: FileImportFilter

