DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: DataSaveAdd

Display all  Hide all

Command: DataSaveAdd

Saves data to an existing DIAdem DAT data file.

Call DataSaveAdd(DataFile, ChnList, [DataFileCode])

Input Parameters

DataFile Specifies the name of the current data file.
ChnList Specifies one or more channels.
[DataFileCode] Specifies the coding procedure for DAT data files. By default DIAdem saves the data file in Unicode.

Example

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.dat. If this data file already exists, DIAdem appends the channels.

VBScriptPython

 

Dim oMyChannelList
Set oMyChannelList = Data.GetChannels("[1]/Channel*")
Call oMyChannelList.Add(Data.Root.ChannelGroups(2))
Call DataSaveAdd(DataWritePath & "MyExample1.dat", oMyChannelList)

Related Topics

Command: ChnValExpand | Command: DataFileLoad | Command: DataFileLoadRed | 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

Was this information helpful?