When I'm looking for such things I fine it much simpler
to just put a vcvs between the two signals of interest,
refer its output negative terminal to gnd! and look for
the zero crossing (using the usual functions) on the
other.
Thanks for your help .. but I already finished the simulation now I want to access the data using Ocean.
Anyway.. what you said is good to calculate the crossing. But how does it work like this?
and @sarge fprintf produces an empty output file. Since the output of intersect() is a waveform .. I think it is better to use ocnPrint rather than fprintf.
And anyone know.. how to get data using table form as we use it through calculator function.
this expression will print your waveform into output.txt file, waveform clipped from 0 to 10u with step 50ns, and numbers will be printed in the engineering notation.
If you need only numbers then you can easily get columns in suitable text editor (sublime text for example).
Why don't you use for this purpose the cross function? You can just put in it difference of your waveforms and setup threshold at zero, that's all. This function return for you not waveform, but set of values (as I understand this exactly what you need) and you can easily print it to file with fprintf.
I think the threshold voltage of zero doesn't do the trick since my needed point is above zero.
That means two waves intersecting at 4 point 0 ,500mV, 700mV, 1.2V but after the intersect function if we use zero threshold means we wont get the intersection points exactly...