Skip to content
Snippets Groups Projects
Commit 6384cece authored by M. Hock's avatar M. Hock
Browse files

Added an error when starting the Initialisation.m on too old Matlab Versions

Added an example of a config.json for manual config to Readme
parent de0fe5c2
No related branches found
No related tags found
1 merge request!71Added an error when starting the Initialisation.m on too old Matlab Versions
Pipeline #669940 passed
...@@ -6,6 +6,12 @@ ...@@ -6,6 +6,12 @@
% will help you create one: % will help you create one:
writeConfig = true; writeConfig = true;
% Check for matlab version
if verLessThan('matlab','9.10')
msg="Your matlab Version is lower than 9.10 (2021a). The config file cannot be created with this wizard. You can either input data manually for each export or create the config file manually. For further Information see the Readme. More function might be impaired when using an old Matlab Version.";
error(msg);
end
% Ask User if current config should be overwritten % Ask User if current config should be overwritten
if isfile('config.json') if isfile('config.json')
m = input('Do you want to overwrite the current config file, Y/N [Y]:','s'); m = input('Do you want to overwrite the current config file, Y/N [Y]:','s');
......
...@@ -125,6 +125,16 @@ The config file is a JSON-File. The config file stores user data and options of ...@@ -125,6 +125,16 @@ The config file is a JSON-File. The config file stores user data and options of
## Define an export path ## Define an export path
If you define an export path in the config.json this path is used as location for the exported data. If you define an export path in the config.json this path is used as location for the exported data.
## Example config.json
```
{
"Author": "Name",
"ProjectID": "XYZ01",
"ExportPath": "C:\\project\\plot_ID"
}
```
## Store custom options for Publish ## Store custom options for Publish
**add custom publish options to the config file** \ **add custom publish options to the config file** \
you can define your custom options for publish in the config file. **Important:** They will always have priority against Name-Value pairs! you can define your custom options for publish in the config file. **Important:** They will always have priority against Name-Value pairs!
...@@ -139,7 +149,7 @@ This method adds the default config to your config file ...@@ -139,7 +149,7 @@ This method adds the default config to your config file
configObj.addPublishOptions('default'); configObj.addPublishOptions('default');
``` ```
You can change the options in the json file, but be carefull no argumentValidation will be done on options from the config file! You can change the options in the json file, but be careful no argumentValidation will be done on options from the config file!
## Working with multiple (project dependend) config files ## Working with multiple (project dependend) config files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment