Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

No, despite my last thread, resistance sweep really isn't working correctly

The only way I can get a sweep to work correctly is to manually do the sweep and transfer the numbers to Excel.

 

Sweeping the 10k pot should produce a straight line with a positive slope that has a domain of [0,10k] and a range of [0,10v].  This I accomplished via the current source, in the last thread.

 

But, when shunt resistances are added, with the current source being fixed of course, the sweep's max voltage is of course lower due to the added parallel path.  Therefore, I had to go back to the voltage source which doesn't work.

 

When a pot is paralleled with two equal value resistors, one above and below the wiper, the domain and range should not change.  Rather, only the slope should change across the domain.  Specifically, at the lower half of the sweep, [0,5k), the slope should be positive but then decrease as 5k is approached.  Then 5k becomes an inflection point.  Finally, at the upper half (5k,10k], the slope should gradually increase as 10k is approached.  The graph should exhibit symmetry around the vertical line R=5k.

 

Multisim's sweep function does not give this, and I can only get this manually.

 

What should I do to get the sweep function to sweep a potentiometer's wiper and produce accurate numbers?

 

 

   

 

 

0 Kudos
Message 1 of 23
(5,664 Views)

I wish I could help on this, but I have no idea. Could you tell me which analysis you are using? You keep saying sweep, but is that DC Sweep, Parameter Sweep?

 

Also, was the circuiit you posted already set up for the analysis? Once I get this information I will try it again and see what I can do, but I still do not believe I am going to be able to do anything with it, but I will try.

Kittmaster's Component Database
http://ni.kittmaster.com

Have a Nice Day
0 Kudos
Message 2 of 23
(5,655 Views)

Hi Lacy,

 

It's a combination of two sweeps: a parametric and a dc sweep.  I swept what I thought was the potentiometer's wiper and found the dc point with each change of the pot's wiper, but Multisim produced inaccurate results.

 

See attached pot_sweep circuit.

 

Understand that the line I'm calling Vwiper is actually the voltage at the wiper with a resistor in series.  To get the actual voltage at the wiper itself, the series resistance can be made very small.  What I'm trying to do is I'm trying play with the linearity of the pot, examine how each resistor affects the overall slope (the linearity), the character of the Excel plot.

 

Through doing it the hard way, using the voltmeter and making one change at a time, I've been able to demonstrate my hypothesis to myself, finally, but it'd be so much nicer, much more presentable, if I could make changes on-the-fly and then port the results to Excel.  I just haven't been able to pull off what I can do manually using Multisim's sweep option.

 

What I've found is that the sweep only works when the pot stands alone (plus an impossibly high shunt resistance, so as to name the line of the output variable) and is driven by a current source that produces the desired max voltage.  However, when shunting real-valued resistances are added, the current source also feeds the parallel path, of course, so the numbers are wrong again.  Hence, I went to a voltage source again, but the numbers are still wrong.  Thus, in order to get the results I was expecting, I could only manually perform the sweep, by using a series of manual pot changes, and with each change, I manually transfered the voltmeter's number to Excel.

 

It seems I've set up the sweep correctly, because, with only the current source, the pot's wiper seemed to change, based on the results.  Likewise, in the resistance sweep (parametric sweep), it shows the current resistance value for the variable selected in the drop down box; you can change the wiper manually and then go back and note that the current value changes, reflecting your manual change, proving you're looking at the wiper and not the resistance from end-to-end.  

 

I even tried a current source (which it liked alone) into the pot and a voltage source across the shunt resistances (which it also likes,) but the sweep still produced bad numbers.  I found that what could be done manually just couldn't be done automatically.  The only other thing I can think of is maybe I'm, despite the evidence of the wiper change, still not using the appropriate variable, as, in truth, I really don't understand what it means by "r1:xr1," while I couldn't seem to find any explanations in the manual for the various esoteric expressions available in that drop down list.

 

But I'd sure like to figure this thing out, as this would be a wonderful way to demonstrate Multisim's ease of use and capability.  It takes time to manually tweak the pot and then transfer the new voltage drop number to Excel, time that, for the impatient people I work with, I don't have.   However, were I to copy a new column of numbers into a second Excel sheet with each sweep, well that would be quite acceptable, as it'd make for an on-the-fly cause and effect demonstration.

 

I hope you can help Lacy. 

 

Incidentally, assuming you have Excel, I'm also attaching an Excel output that demonstated the pot sweep worked when the pot stood alone and was driven by the appropriate current source.  This plot will also show you the plot I'm trying to get when I add the other resistors to the circuit.  (By hanging the "_none" suffix on the filename, I'm showing this data was gathered from only the stand-alone pot, with no other resistors, aside from the impossibly large shunt resistor explained earlier.)  

Download All
0 Kudos
Message 3 of 23
(5,651 Views)

Lacy,

 

That Excel data I just added to my last was actually slightly tweaked.  Here is the data actually obtained from Multisim.

 

 

1E-15
0.999999
2
2.99999
3.99998
4.99997
5.99996
6.99995
7.99994
8.99992
9.9999

 

But you can see that the two sets of data are essentially the same. 

 

I just didn't want you to wonder why you didn't get the exact same results. 

0 Kudos
Message 4 of 23
(5,650 Views)

Lacy,

 

Here's one more thing that I thought might help us.  I've attached a .gif capture of the parameter sweep window.  This window shows the "r1:xr1" option chosen, and it shows that the current position of the pot's wiper is 100% (10000 ohms).  Try changing the pot's wiper position and you'll see that that number changes, verifying that we're looking at the right thing.

 

0 Kudos
Message 5 of 23
(5,648 Views)

This gets so complicated....

 

That last .gif shows the sweep going from 10k to 10k.  That's not the way the sweep runs have been set up.  Rather, it's supposed to be from 0 to 10k. 

0 Kudos
Message 6 of 23
(5,646 Views)
Here's an updated parameter window capture of the actual sweep that's being done, the sweep that's not giving me good numbers.
0 Kudos
Message 7 of 23
(5,645 Views)
And, with as easy as that was, I figured I'd post a capture of the actual results.  Notice that we never get to the 10v dc source voltage.
0 Kudos
Message 8 of 23
(5,643 Views)

As it's so easy to do, here's a capture of the circuit that was run and the results window.  (Now anyone following this saga can easily see, without having to run Multisim.)

 

 

0 Kudos
Message 9 of 23
(5,640 Views)

This is like Lays potato chips...

 

Here's a capture of the same circuit, but with the current source, producing good results. 

0 Kudos
Message 10 of 23
(5,635 Views)