I am designing the simple operational amplifier and I need to use and simulate the input from the experiment data of the Oscilloscope. And I want to check how much opamp will amplify this experiment data. The waveform is a kind of arbitrary waveform from oscilloscope.
Is there any ways to use this experiment data from OrCAD 7.1(Pspice Capture)?
You should be able to create a voltage source with PWL data (piecewise linear). It is basically a list/table of time values followed by voltage values. I cannot remember the exact syntax but look up PWL in your manuals or help files. Something like Vxxx Na Nb PWL(0, 0, 1E-6, 0.5, 2E-6, 0.75 ...)
You should be able to create a voltage source with PWL data (piecewise linear). It is basically a list/table of time values followed by voltage values. I cannot remember the exact syntax but look up PWL in your manuals or help files. Something like Vxxx Na Nb PWL(0, 0, 1E-6, 0.5, 2E-6, 0.75 ...)
I see two options:
- generate a PWL presentation of your waveform (e.g. in Excel) and include it in your design as text or as a subcircuit.
- generate a *.stl fileformat that can be imported by the .STIMLIB command.
Consult the PSPICE documentation for details.
In such a case as described by you I use an artificial source called "ETABLE" (available unter ABM). You can specify pairs of values (input, output) and perform a dc sweep with a dc input source. It works perfectly.
In such a case as described by you I use an artificial source called "ETABLE" (available unter ABM). You can specify pairs of values (input, output) and perform a dc sweep with a dc input source. It works perfectly.
I am using Pspice Capture(schematic) so I had better use PWL source instead of ETABLE under ABM library. When I found ETABLE from OrCAD PSPICE User Guide, I must manipulate the source in Spice code.
Anyway, thanks for your explanation.
Added after 9 minutes:
keith1200rs said:
I think there is a PWLFILE option with some simulators which allows the data to be imported but I cannot check until I am at my computer on Monday.
It may sound a bit crude but if you export the excel data in the right format you can cut & paste it in to the PWL statement.
Thanks for your description. I have used VPWL_FILE and put the path like c:\thinfile_0504210.txt(experiment data) and run the simulation. I am just wondering it is correct way to run VPWL_FILE.
Added after 59 seconds:
srizbf said:
excel file saved as csv , with lines added to it like PWL( , will reduce your typing job.