An ADE Assembler window is open with one or more tests that are defined and enabled. The simulation has been run and the results tab shows a wave icon for each of the outputs. At this point I want to run a script from the CIW (or from elsewhere if there is a better approach) to plot the outputs. The getData() function will provide access to the psf file from where a wave object can be pulled and then plotted using plot() and this works fine on output signals. An important point to note is that the Assembler outputs setup list can contain long expressions composed of signals that are written to the psf file but the evaluated results of the expressions are not in the psf file. For example the stability factor kf which is a function of the s-parameters generated by the sp simulation is entered into the output expression box as kf(sp(1 1 ?result "sp") sp(1 2 ?result "sp") sp(2 1 ?result "sp") sp(2 2 ?result "sp")) and named myKf. If using getData() in a script I would have to first get each of the four s-parameters and then use them in a call to the built in function kf(). I don't want to hard code all the expressions in the script. I could use maeGetTestOutputs() to grab a string equivalent of the expression but then a non trivial parsing of this string would be required to recreate the function call with the correct arguments. It also seems an inefficient use of a designers time to do some much coding when the expressions have already been defined in the outputs tab and have been already been evaluated.
Another option might be to use maePlotWithPlottingTemplate() but I want to avoid using templates.
awvPlotWaveform() looks useful but it needs wave objects as input arguments. So my quandary is how to query the Assembler results database for an evaluated expression and have it return a wave that can be easily plotted?
↧
How to query the Assembler results database for an evaluated expression?
↧