Importing/Exporting Parameters to/from File

 

Collections of parameter values may be exported to, maintained within a Comma Separated Variable (*.csv) file, and then imported back into a component at any time.

Export Parameters to File

To export the present parameter values of an individual component to file, simply press the Export Parameters button in the component parameter dialog.

 

 

You will be presented with a Save As dialog to save the file to a specified folder. By default a named (the component definition name) *.csv file will be specified.

Import Parameters from File

To import parameter values to an individual component from file, simply press the Import Parameters button in the component parameter dialog.

 

 

Select the file containing the parameters and select OK button in the Open file dialog.

NOTE: Take care that the import file containing the parameter values was generated by the same component definition. Otherwise the imported values may be meaningless.

File Format

Exported *.csv files are auto generated by PSCAD. However, it is also possible to construct your own manually.

 

The parameter file functions based on component ID number (a unique number, auto-generated by PSCAD when the component definition is instantiated). This ensures that parameter values remain locked to only the specified component instance. Here is an example file for an individual component instance:

 

,Name for Identification (Name),Multiplying Constant (G),Fortran Comment (COM),Dimension (Dim),Data Path (DPath)

24309136,Gain Component,10.0,Gain,1,1

 

The above is an exported *.csv file from a gain component in the master library, whose component ID number is 24309136.

Parameter Grid

Using the Parameter Grid feature, it is possible to export multiple component instances to a single file. Once this file is created, it can be used as a master file, from which to import modified parameters to individual components.