Thank you for your answer, but the problem still not resolved, if I want to seek GB, GAIN
PM = phaseMargin (VF ("/ V"))
GB = gainProd (VF ("/ V"))
GAIN = value(dB20(VF("/V")) 1)
if(PM&&GB&&GAIN fprintf(p, "%f %f %f \n" PM GB GAIN) fprintf(p, "%s\n" "error"))
It is an error "Gain dose not cross one" when i run ocean,then the simulation stops, but when I comment GB GAIN ,It is still an error "Gain dose not cross one", but the simulation can continue
How to make the simulation continue with errors