Hi Nicolas, Actually the right way of adding measurements is using axlAddOutputs() and axlOutputResult().Then the waveform icons and scalar results would be displayed in Results. Also, looking again into your code, you don’t really need the part from session=axlGetWindowSession() … samples= cdfParseFloatString(axlGetVarValue(axlGetVar(setupDB “t2”))). The variables values can be accessed by using the VAR() instead. Also, with your way you get the variables values of your active setup so if someone changes the active setup while simulation is running you’ll end up with wrong results. Your ocean script can be replaced by the below script: axlAddOutputs(list("Discrete Feedback Signal")) selectResults(‘tran) ;Get variable names and values period=VAR("tperiod") samples=VAR(“OSR") endTime=(samples-1)*period ;Adding and evaluating expressions in ADE XL initTime = (period*2-period/4) stepValue = period DFS= sample(VT("/OUT") initTime endTime "linear" stepValue) axlOutputResult(DFS "Discrete Feedback Signal”) Remove the old and add the above script, the “Discrete Feedback Signal” output should be added automatically with Type ‘derived’ under the ocean script output. After running the simulation you should get the waveform icon displayed. Regards, Dimitra
↧