Make Averages from Multiple Files
This script shows you how to take an average from a file or files manually, without using SetAverage(), which only lets you average from one file.
It asks you for a data file to process, and allows you to choose which channels to average, which will be the same in all files you process. It creates a new data file with the appropriate number of channels, and allows you to take averages from the source file. You can then change to a different source file (using a button provided by the Toolbar() ), and add to your original average.
You can have multiple output averages within a single output source file (although the number of averages defaults to one), and these can be easily traversed through, as well as added or removed.
Cross averaging from multiple files
The script creates an average where frame 1 is the average of all the source file frame 1s, frame 2 the average of the source frame 2s and so on. All files averaged must, of course, have the same number of waveform channels, each with the same sample rate and length, and must have at least the same number of frames.
Difference two frames to a memory view
The script creates a memory view, holding a data that is the difference between two frames in the source view.
MergeFiles.sgs & MergeFilesW.sgs (07/15)
Within this zip there are two scripts.
The script MergeFiles.sgs creates a new data file by copying frames from existing files. All types of data channel are handled as are the frame variables. All frames can be copied or only frames with a specific state value. You can open files and select the state number to use from the script toolbar. Files must have the same channel arrangements to be included in the new file, the script does its best to cope with minor variations in channel numbers but obviously will work better with files that are very similar.
The script MergeFiles requires Signal v6.03 or higher.
The other script, MergeFilesW.sgs is similar, but it is limited to waveform data channels and some frame variables only.
MergeFilesW requires Signal version 4.00 or higher.