diff options
Diffstat (limited to 'routes/routes.js')
-rw-r--r-- | routes/routes.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/routes/routes.js b/routes/routes.js index cd00754..04fb6cc 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -24,7 +24,7 @@ module.exports = function(express,app,fs,os,io,PythonShell,scriptPath){ //Plotting List plotList = data['plotList']; - console.log("PlotList----------->"+plotList); + // console.log("PlotList----------->"+plotList); plotOption = plotList.join(" "); //Space is required between two plot @@ -116,6 +116,7 @@ module.exports = function(express,app,fs,os,io,PythonShell,scriptPath){ function parsePlotData(){ console.log("Ngspice netlist executed successfully "+fileName); + console.log("PlotList----------->"+plotList); //socket.emit('serverMessage','Ngspice netlist executed successfully: '); //var analysisInfo = grep('.tran|.dc|.ac', fileName); //Not reliable var analysisInfo = getAnalysisInfo(fileName); @@ -132,10 +133,10 @@ module.exports = function(express,app,fs,os,io,PythonShell,scriptPath){ if (err) throw err; // results is an array consisting of messages collected during execution // console.log('results: %j', results); - var resultString = results[0]; + var outData = results[0]; //Emitting Data Points to client - socket.emit('plotData',resultString); + socket.emit('plotData',{"outData":outData,"plotList":plotList}); }); } |