I have a waveform. I want to acquire it's equivalent expression using SKILL?
I'll be using the acquired expression for calculator functions using OCEAN.
Can anyone help me.
Thanks in advance.
Thanks and Regards,
should return the expression (if the waveform has been created to store the expression on the object, which it normally would).
In reply to Andrew Beckett:
In reply to Reinice:
I don't entirely understand your second question - surely the second question is how you'd access this with SKILL? If you do that, and then do:
plot(value(getData(“/AVDD33” ?result “tran”) “Cload” 2e-12))
you'll get what you want? For the first, I did this:
drGetWaveformYVec(value(getData("/out" ?result "tran") "CAP" 1.5p))->expression
and it outputs:
value(getData("/out" ?resultsDir "/export/home/andrewb/demos/OCEAN/simulation/ampTest/spectre/schematic" ?result "tran") "CAP" 1.5e-12)
(my expression was similar, but not identical to yours).
Thanks for your quick reply.
For the second question here's my scenario about this:
I have a waveform, when I right click at it there's an option send to. When I click send to there's an option calculator, ViVA XL Calculator Form appears. In the buffer part of the calculator I see this value(getData(“/AVDD33” ?result “tran”) “Cload” 2e-12). How can I acquire the value(getData(“/AVDD33” ?result “tran”) “Cload” 2e-12) in the buffer part using SKILL and depending only in a waveform.
I still don't quite understand what you're trying to do. Maybe you're trying to get this information from the selected trace on the graph? Or are you trying to get this from a waveform stored in a variable (if so, that's what the ->expression approach does) ? I think I need some clarification as to where the waveform is that you're trying to get this information on?
Yes, I 'am trying to get the information from the selected trace on the graph. In my earlier example I have a trace AVDD33 and when I send "/AVDD33" to a calculator, it's equivalent expression is value(getData(“/AVDD33” ?result “tran”) “Cload” 2e-12) shown in the buffer part of the calculator GUI. How can I acquire value(getData(“/AVDD33” ?result “tran”) “Cload” 2e-12) using a trace (ex. "/AVDD33") to get this information using SKILL? I hope I've made some clarifications.
I don't think there's a current API to get the selected waveforms. I'm in the process of working through the existing API and identifying what is obsolete, and what is missing, to suggest to R&D what needs to be added now that the major work on the new ViVA graph has been done (there's still some minor things left to do though).
You would probably be best logging a service request with customer support so that there is an indication of your needs in the system, tracked against your company/organisation.
Sorry for the late reply. Many Thanks for the info.