Download User Manual - Data Translation

Transcript
Chapter 8 Automating Processes
Eventually, the selected elements are then imported, taking into account the Flags
parameter. If a new subfolder is to be created for each file to be imported, these
subfolders are created first:
...
If Flags And fpImportOptionSubfolder Then
Set oFile = oFS.GetFile(PathName)
Set oImportFolder = Folder.Add(Left(oFile.Name, InStrRev(oFile.Name, ".") - 1), fpO
Else
'
import into the given folder
Set oImportFolder = Folder
End If
...
If the data are not to be imported as signals, an X data set is created first; it can be
referenced by all further data sets as an X component. In the example, there is only one
sampling interval and one trigger, so that the X component can be calculated using a
formula:
...
If (Flags And fpImportOptionSignal) = 0 Then
485