MakeFile: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
MakeFile is the essential Module to control file generation and file filling.
Last update for: Version 1.5.3.15
 
MakeFile is the essential Module to control file generation, file names, and file filling.


The position of MakeFile in the sequencer determines how many files are created:
The position of MakeFile in the sequencer determines how many files are created:
* For each variation above MakeFile a new file is generated.
* For each variation above MakeFile a new file is generated.
* Each variation below MakeFile is written into the latest generated file.
* Each variation below MakeFile is written into the last generated file.
* For each branch of the sequencer below MakeFile separate files are generated, because each branch could have a different data structure.
* For each branch of the sequencer below MakeFile separate files are generated, because each [[Branch]] could have a different data structure.
* Each file has an ID which can be changed by double-clicking the MakeFile item in the sequencer.
* Each file has an ID which can be changed by double-clicking the MakeFile item in the sequencer.
* The ID is necessary to make sure that no file is generated twice and that the sequence of the generated files can be recovered.
* The ID is necessary to make sure that no file is generated twice and that the sequence of the generated files can be recovered.  
* The ID consists of a number related to the branch in the sequencer and an ongoing index for each file.
* The ID consists of a number related to the branch in the sequencer and an ongoing index for each file. "ID2-1" means second branch of the sequencer, first file. "ID4-2" would mean forth branch of the sequencer, second file.


Each file has the same structure with 4 header lines:
Each file has the same structure with 4 header lines:
* 1st header line: Variable
* 1st header line: Module label + variable
* 2nd header line: Unit
* 2nd header line: Unit
* 3rd header line: Module
* 3rd header line: empty
* 4th header line: empty


Then, the data comes and the order of columns is related to the order of Modules in the branch for which the file is saved. Thus, you can change the order of columns be changing the order of Modules in the sequencer (as long it does not change your sweep procedure).
Then, the data comes and the order of columns is related to the order of Modules in the [[Branch]] for which the file is saved. Thus, you can change the order of columns be changing the order of Modules in the sequencer (as long it does not change your sweep procedure).


The first two columns are always related to the invisible root Module of the sequencer being [[Time]] and this behavior cannot be changed, yet.
The first two columns are always related to the invisible root Module of the sequencer being [[Time]] and this behavior cannot be changed, yet.

Revision as of 22:04, 24 March 2019

Last update for: Version 1.5.3.15

MakeFile is the essential Module to control file generation, file names, and file filling.

The position of MakeFile in the sequencer determines how many files are created:

  • For each variation above MakeFile a new file is generated.
  • Each variation below MakeFile is written into the last generated file.
  • For each branch of the sequencer below MakeFile separate files are generated, because each Branch could have a different data structure.
  • Each file has an ID which can be changed by double-clicking the MakeFile item in the sequencer.
  • The ID is necessary to make sure that no file is generated twice and that the sequence of the generated files can be recovered.
  • The ID consists of a number related to the branch in the sequencer and an ongoing index for each file. "ID2-1" means second branch of the sequencer, first file. "ID4-2" would mean forth branch of the sequencer, second file.

Each file has the same structure with 4 header lines:

  • 1st header line: Module label + variable
  • 2nd header line: Unit
  • 3rd header line: empty

Then, the data comes and the order of columns is related to the order of Modules in the Branch for which the file is saved. Thus, you can change the order of columns be changing the order of Modules in the sequencer (as long it does not change your sweep procedure).

The first two columns are always related to the invisible root Module of the sequencer being Time and this behavior cannot be changed, yet.

The setting of your measurement is not saved in the data files but in a separate ".set" file in which all elements of the graphical user interface are stored. That way, data files have always the same structure.

To see how to read in data files, please follow this link: Loading data files.