Electrical Engineering Asked by StarStruck88 on December 19, 2021
I have a list of 40 different resistances and a 4 resistor network with which to substitute these values into. I want to be able generate values of Vout(Vadc) given every permutation of 40 different values in a 4 resistor network with ease.
.step param Rx list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
.param R1 table(Rx,1,4.7,2,10,3,33,4,49.9,5,68,6,75,7,120,8,470,9,750,10,1k,11,1.2k,
12,1.21k,12,1.5k,13,2.7k,14,3.23k,15,4.53k,16,4.7k,17,4.99k,18,5.6k,19,6.49,
20,6.8k,21,8.2k,22,9.1k,23,10k,24,10.2k,25,12.1k,26,13k,27,16.2k,28,18k,29,36k,
30,36.5k,31,47k,32,51k,33,82k,34,100k,35,150k,36,169k,37,330k,38,390k,39,510k,40,1000k,41,3600k)
.param R2 table(Rx,1,4.7,2,10,3,33,4,49.9,5,68,6,75,7,120,8,470,9,750,10,1k,11,1.2k,
12,1.21k,12,1.5k,13,2.7k,14,3.23k,15,4.53k,16,4.7k,17,4.99k,18,5.6k,19,6.49,
20,6.8k,21,8.2k,22,9.1k,23,10k,24,10.2k,25,12.1k,26,13k,27,16.2k,28,18k,29,36k,
30,36.5k,31,47k,32,51k,33,82k,34,100k,35,150k,36,169k,37,330k,38,390k,39,510k,40,1000k,41,3600k)
.param R3 table(Rx,1,4.7,2,10,3,33,4,49.9,5,68,6,75,7,120,8,470,9,750,10,1k,11,1.2k,
12,1.21k,12,1.5k,13,2.7k,14,3.23k,15,4.53k,16,4.7k,17,4.99k,18,5.6k,19,6.49,
20,6.8k,21,8.2k,22,9.1k,23,10k,24,10.2k,25,12.1k,26,13k,27,16.2k,28,18k,29,36k,
30,36.5k,31,47k,32,51k,33,82k,34,100k,35,150k,36,169k,37,330k,38,390k,39,510k,40,1000k,41,3600k)
.param R11 table(Rx,1,4.7,2,10,3,33,4,49.9,5,68,6,75,7,120,8,470,9,750,10,1k,11,1.2k,
12,1.21k,12,1.5k,13,2.7k,14,3.23k,15,4.53k,16,4.7k,17,4.99k,18,5.6k,19,6.49,
20,6.8k,21,8.2k,22,9.1k,23,10k,24,10.2k,25,12.1k,26,13k,27,16.2k,28,18k,29,36k,
30,36.5k,31,47k,32,51k,33,82k,34,100k,35,150k,36,169k,37,330k,38,390k,39,510k,40,1000k,41,3600k)
I haven’t been given a target voltage value that is ideal but I just want to have the simulation ready so that I can readily select resistor values given the when they tell me what the target Vout(Vadc) is.
This only displays values when all resistors have the same resistance. Not sure how to bring about each permutation other than adjust the code by hand. Please help. Thanks.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP