Skip to content

Commit

Permalink
Updated variable mapping export to include variables after transforma…
Browse files Browse the repository at this point in the history
…tion of characters.
  • Loading branch information
anmavrid committed Aug 25, 2022
1 parent f704834 commit c2ffe25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fret-electron/app/components/VariablesView.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const fs = require('fs');
const archiver = require('archiver');
const app = require('electron').remote.app;
const dialog = require('electron').remote.dialog;
const utils = require('../../support/utils');

import analysisPortalManual from '../../docs/_media/ExportingForAnalysis/analysisInsideFRET.md';
var dbChangeListener;
Expand Down Expand Up @@ -185,7 +186,9 @@ class ComponentSummary extends React.Component {
componentMapping.model_path = doc.modelComponent;
}
var variable = {};
variable.variable_name = doc.modeldoc_id;
//Variable name in FRETish
variable.variable_name = utils.replace_special_chars(doc.variable_name);
//Signal path in Simulink model
variable.variable_path = componentMapping.model_path+'/'+doc.modeldoc_id;
(doc.idType === 'Input') ? componentInputs.push(variable) : componentOutputs.push(variable);
}
Expand Down

0 comments on commit c2ffe25

Please sign in to comment.