LTSpice-Simulation

ericgibbs

Joined Jan 29, 2010
18,869
Hi,
If you check the plot you do not have the Time in the Xaxis, it goes from 300 to 700, Ohms, which represents the resistance change you asked for.
E
 

Thread Starter

ayractgc

Joined Feb 3, 2018
52
How did you apply this?With add trace ?Because when i click add trace i see just voltages and current of the nodes but i didn't see resistance?
How can i identify a value in x-axis such that ;
R5-555ohm
that shows the delta R5
How can i do this equation?
 

eetech00

Joined Jun 8, 2013
3,959
I want to show Vout-R5 graphics.R5 is a variable resistor that changes its resistance between 300 ohm and 700 ohm.I want to add R5 to x-axis and Vout y axis.Can you help me ?I don't know the LTspice so good.I added the screen shot and test file
Hi

You didn't include the model or symbol file for the INA, so I'll try to describe how to graph resistance.

Label the wires on each side of R5 so you can specify a voltage drop. Then, use an expression in the waveform viewer. I you want the plot to show R5 as resistance, use an ohms law expression:

V(N1,N2) / I(R5)

where N1 and N2 are the labeled wires on each side of R5

R5 Value should show up as Ohms in the waveform viewer.

You can also use a .meas statement using the same approach.

.meas Rx param V(N1,N2) / I(R5)

Then view the results in the error log.

eT
 
Last edited:

ericgibbs

Joined Jan 29, 2010
18,869
hi ay,
This should make it more easily to follow,
A 400R Pot in series with a 300R resistor, the plot shows the X-axis as Resistance, Yaxis Vout.

If you place the cursor on a blank space of the X axis you should see the cursor change to a rule, left click and a pop up window will appear.
See image A004.
E
 

Attachments

eetech00

Joined Jun 8, 2013
3,959
I want to show Vout-R5 graphics.R5 is a variable resistor that changes its resistance between 300 ohm and 700 ohm.I want to add R5 to x-axis and Vout y axis.Can you help me ?I don't know the LTspice so good.I added the screen shot and test file
Here's another way do this (review the attached image before proceeding):

1. This model has trouble finding a dc operating point, so append .uic to the tran statement.
2. Add some reasonable resistance to the voltage sources (no voltage source has 0 resistance).
100 milli_ohms is a good number.
3. Set the +/- inputs to the INA initially to zero.

Then,
1. Add two .meas statements to the schematic for v_out and R_ohms
2. Run the sim
3. When the sim is complete, view the error log.
4. Scroll thru the log and find R_ohms. Right-click on R_ohms and select "plot step'd meas data".
A new graph will open. R_ohms will be displayed in the X-axis
5. Right click on the new graph. Select "add trace", then select V_OUT. V_OUT will be displayed in the Y-axis

eT

INA128Plot.png
 
Last edited:

ericgibbs

Joined Jan 29, 2010
18,869
hi ay,
In Excel you have to use OPEN , a window should appear asking the Type, select TEXT, then expand the box width to show the data.

I have done it in Lotus and saved as a XLS file.
In order to upload here I have changed the extension to .txt , change it back to .xls

E
 

Attachments

Top