Skip to content

Commit c2ffe25

Browse files
committed
Updated variable mapping export to include variables after transformation of characters.
1 parent f704834 commit c2ffe25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fret-electron/app/components/VariablesView.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const fs = require('fs');
7878
const archiver = require('archiver');
7979
const app = require('electron').remote.app;
8080
const dialog = require('electron').remote.dialog;
81+
const utils = require('../../support/utils');
8182

8283
import analysisPortalManual from '../../docs/_media/ExportingForAnalysis/analysisInsideFRET.md';
8384
var dbChangeListener;
@@ -185,7 +186,9 @@ class ComponentSummary extends React.Component {
185186
componentMapping.model_path = doc.modelComponent;
186187
}
187188
var variable = {};
188-
variable.variable_name = doc.modeldoc_id;
189+
//Variable name in FRETish
190+
variable.variable_name = utils.replace_special_chars(doc.variable_name);
191+
//Signal path in Simulink model
189192
variable.variable_path = componentMapping.model_path+'/'+doc.modeldoc_id;
190193
(doc.idType === 'Input') ? componentInputs.push(variable) : componentOutputs.push(variable);
191194
}

0 commit comments

Comments
 (0)