My name is Andy and I am currently working as an intern. At my jobsite, we have OrCad 16.5 avalible to us. I am trying to use the model editor for pspice to create parts that will have the actual worst case data behind them.
As an example, a milspec resistor may have %1 tolerance on its own, but this number increases with respect to the enviroment, how hot it is, radiation, life time of the part etc.. When everything is said and done, this number maybe 1.82%. I want to create a part that would have the proper part name and the tolerance on it so when a reliability engineer wants to run worst case analysis on pspice, he or she can directly pick the part from the library and place it on the circuit. I am also planning on automating the system of generating these parts and do it for thousands of different parts. The parts range from simple resistors all the way to transistors, even some stuff that has their own sub circuits like an LM117 voltage regulator.
My question is what type of commands am I allowed to use inside the model editor? I will be more than likely creating these files by exporting excel data in to text. Can I use functions? Are there ways of doing mathmetical calculations inside the model such as " dev=(R1*.01)%" or use Value statement etc..
Where can I get a hold of the complete valid command list for pspice models and subcircuits?
I may need to used add,subtract, exponent,min(),max(),log type functions. Can pspice models handle these functions?