I have a small issue that I hope somebody would be able to help me with.
I am running transient sims on a current bias and sinking current through a 0V vdc cell. Using the ADE calculator, I can do the command: value( IT("/myVDC/PLUS") myTime). This gives me the value of the current at a specified time at the PLUS terminal of the VDC. Great, exactly what I want.
However, if I do this command within an ocean script, it appears to fail, i.e., it returns a nil value and I dont know why? (I am saving the current at this node within the script). Furthermore, my ocean script is able to plot the transient current at this node with no problems.
I dont understand why the same command from the calculator, value( IT("/myVDC/PLUS") myTime) does not work within ocean. Does anybody have any idea why this command would not work in Ocean or have any idea where the problem may arise?
Thanks very much in advance!
I would recommend using the "i" data access function, for example:
You may need to try with and without the leading "/".
Also, consider using an "iprobe" device instead of a zero-voltage DC source, the latter will add to the complexity of the circuit and require additional equations to be solved, whereas the iprobe will not, so it is more efficient.
Thanks very much for your prompt reply. I tried out what you suggested and it worked fine, so thanks for that. If I have time, I will try and understand what was going on there.
I will also take on board your suggestion regarding the iprobe cell. I think that is a good idea.