Andrew Beckett
Senior Fellow
![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif) ![* *](https://designers-guide.org/forum/Templates/Forum/default/starsilver.gif)
Offline
![](https://designers-guide.org/forum/avatars/elmerfudd.gif)
Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
OK, so presumably this is a different error now.
What are you trying to do? VDC() will actually get the voltage from the DC operating point, not the dc sweep. VDC is equivalent to:
selectResult('dcOp) v("/VREF")
or
v("/VREF" ?result 'dcOp)
If you want the dc sweep's results, you can either use VS() or :
selectResult('dc) v("/VREF")
and then you could use value() on that to find the value at 1 (where 1 is the value of whatever you're sweeping).
Overall, the error is telling you that VREFDC is nil, which means it did not manage to read the simulation results for whatever reason. I suggest you try interactively doing the openResults(), calling results() to see what's available, try the various functions to see what's happening. Virtually impossible for me to debug without the data - but clearly something is inconsistent.
One common problem is where people have copied the netlist/netlistHeader/netlistFooter and have simulated using that - but no longer have access to the map/amap directories in the netlist hierarchy. If you do that, then using a schematic name "/VREF" will not work, and you'd have to give whatever name "VREF" is mapped to in the netlist (most likely "VREF" (no leading slash)). But this is a wild guess too.
Regards,
Andrew.
|