19
A Student Guide to Introduce Multisim, LTSpice, and Mathcad for ECE 3043 at the Georgia Institute of Technology Archit R Jain School of Electrical and Computer Engineering Student

A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

  • Upload
    doannga

  • View
    226

  • Download
    2

Embed Size (px)

Citation preview

Page 1: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

AStudentGuidetoIntroduceMultisim,LTSpice,andMathcadforECE3043attheGeorgiaInstituteofTechnology

ArchitRJainSchoolofElectricalandComputerEngineeringStudent

Page 2: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

2

Table of Contents 1 Introduction…………………………………………………………………………………………….3 2Backgrounds…………………………………………………………………………………...4 2.1Multisim……………………………………………………………………………..4 2.2LTSpice……………………………………………………………………………….4 2.3Mathcad……………………………………………………………………………...53Multisim…………………………………………………………………………………………6 3.1Hints…………………………………………………………………………………124LTSpice…………………………………………………………………………………………135Mathcad………………………………………………………………………………………..176References…………………………………………………………………………………...19

Page 3: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

3

1 Introduction                   AsaECEstudenttherearemanychallengingclassesfilledwithnewmaterialthatwehavetotake.Theseclassesintroduceanythingfromnewtypeofcircuitstonewsoftwareandnewprograminglanguages.Thisguideistohelpstudentslearnnewlabsoftwares.SoinECE3043studentshavetolearnhowtouseMultisim,LTSpice,andMathcad,inordertocompleteallofthefuturehomeworksassignments.AsacurrentstudentinECE3043IknowhowmuchofahardtimeIhaddoingthefirsthomework,becauseIdidnotknowhowtousethesesoftwares.ThepurposeofthisusermanualistoteachcurrentECE3043studentshowtouseMultisim,LTSpice,andMathcad.Additionallytherewillbehintsgivenastotheirfuturehomeworks.Thefirstthingdiscussedinthismanualwillbebackgroundforthreesoftware,thangothroughstep‐by‐stepinstructiononhowtousethisthreesoftwares.

  

Page 4: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

4

  2 Backgrounds                    2.1 What is Multisim NIMultisimisanelectronicschematicandsimulationprogramthatispartofcircuitdesignclass,alongwithNIUltiboard.MultisimisoneofthefewcircuitdesignprogramstoemploytheoriginalBerkeleySPICEbasedsoftwaresimulation[1].Multisimiswidelyusedinacademiaandindustryforcircuit’seducation,electronicschematicdesignandSPICEsimulation[1].ThelatestversionofMultisimenrichespowerfulsimulationtechnologywiththeabilitytoanalyzeanalog,digital,andpowerelectronicacrosseducation. 

 Figure1.Multisimlogo[1]

 

2.2 What is LTSpice  LTSpiceishighperformanceSPICEsimulator,schematiccaptureandwaveformviewerwithenhancementsandmodelsforeasingthesimulationofswitchingregulators[2].LTSpiceisnode‐unlimitedand3rdpartymodelscanbeimported.Circuitsimulationsbasedontransient,AC,noiseandDCanalysiscanbeplottedaswellasFourieranalysis[2].LTSpiceIVisusedinmanyfieldsincludingradiofrequencyelectronics,powerelectronics,digitalelectronics,andotherdisciplines.

Figure2.LTSpicelogo[2]

Page 5: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

5

2.3 What is Mathcad  PTCMathcadistheindustrystandardsoftwareforsolving,analyzing,andsharingyourmostvitalengineeringcalculations[3].Ithasmathematicalnotation,unit’sintelligence,andpowerfulcalculationcapabilities,presentedwithinandeasy‐to‐useinterface,allowsengineersanddesignteamstocapture[3].Mathcadalsointegratesthesehuman‐readable,livecalculationswithplots,graphs,text,andimagesintoasinglepresenteddocument.

Figure3.Mathcadlogo[3]

Page 6: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

6

 3 Multisim                     AsstatedearlierMultisimisanelectronicschematicandsimulationprogram.Thebestwaytolearnthisprogramistogothroughastep‐by‐stepinstructiononhowtodrawthefollowingcircuit(Figure4)onMultisim.

Figure4

InMultisim,allthecomponentsarerequiredtohavevalueforthecircuitbeforetheschematic.Ifthevaluesarenotgivenonthehomeworksheetthentheprofessorwillprovideequationsinclassforittobesolvedforthespecificvalues.ButforthisspecificcircuitthevaluesthatwillbeusingareR=4.3kOhms,L1=7.3H,andL2=3mH.

1. BeginbyopeningMultisimsoftwarefromstartmenu.Forthelogo

referbacktoFigure1.OncethesoftwareisopenedisshouldlooklikeFigure5.

Page 7: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

7

Figure5:StartingscreenofMultisim

2. Aftertheprogramisopenedgatherallcomponentsfromthefolder.

TodosoclickonPLACEonthemenubarthenclickonCOMPONENTandthescreenshouldlooklikeFigure6.

Figure6:ComponentFolder

Page 8: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

8

Nowthatthescreenisup,clickonthedropdownmenuunderGROUP,clickonSOURCES,clickonPOWERSOURCESthenGROUNDandclickOK.

3. Onceallthegroundssymbolsareplacedontheschematic,navigatetothesamescreen(Figure6)butthistimeunderGROUPandSOURCES,clickonSIGNALVOLTAGESOUCE.InthisclasstheonlysourcethatwillbeusedisACsource,sothereforethisclassusesACVOLTAGEunderCOMPONENT.{LaterinthesemesterPiecewiseLinearsourceisgoingtoberequiredinordertosolvethehomeworkproblemandalsoaddininitialvoltage.}

4. Navigatetothesamescreen(Figure6)thistimeunderGROUPclickonBASICandundertheGROUPtheresomethingcalledFAMILY.UnderFAMILYthereisadifferenttypeofcomponentssuchasresistors,capacitors,andinductors,etc.Butforthisspecificcircuititsrequiredtouseinductorsandresistor,andshouldlooklikeinFigure4.SoinFAMILYclickonRESISTOR(R)andunderCOMPONENTwritethevalueof4.3kandclickOK.Dothesamethingforthetwootherinductors(Butinthehomeworktherewillhavedifferentvalues).

5. Afterthecompletionofstep5,yourwindowinMultisimshouldlook

likethefollowinginFigure7.

Figure7:Withallthecomponents

Page 9: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

9

6. NowletsrearrangethecomponentstomatchFigure4.Alsoinductor(L2)needstoberotated.TorotatethecomponentHIGHLIGHTtheelementandRIGHTCLICKandselectROTATE90OCLOCKWISE.CLICKonit.Thisshouldrotatethecomponent.Afterthat,justconnectcomponentslikeitwasrequiredinQUARTUSusinglines.

7. OnceallthecomponentshavebeenrearrangedtomatchFigure4,theschematicneedslabelingofVinandVout.Todoso,RIGHTCLICKonthelinebetweentheSOURCEandtheNODEandclickonPROPERTIES,thenunderthetabNETNAME,PREFFEREDNETNAME.SelectwriteVin,andCHECKtheboxforSHOWNETNAMEsoitcanappearonyourschematic.

8. RepeatthestepforVoutbetweentheinductorandresistorline,and

yourpropertiesboxshouldlooklikeFigure8andyourdrawingshouldlooklikeFigure9.

Figure8:Propertiesbox

Page 10: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

10

Figure9:Componentrearrangedandconnectedwithline

9. Aftertheschematichasbeencreateditneedstobesavedtothe

folder.Onceit’ssaved,graphthebodeplotforthiscircuit(Figure5).Todoso,onthemenubarCLICKonSMIULATEandthanCLICKonANALYSIS.ThiswilldisplayanotherdropmenuandclickonACANALYSIS.Oncethatisclicked,getaboxwherethefirsttab‐FREQUENCYPARAMETERS.Changetheparametersbasedontheprofessor’spreference,butforthiscircuitkeeptheparametersunchanged(asgiveninthebox).RightnexttotheFREQUENCYPARAMETERSlocatesomethingcalledOUTPUTandCLICKonit.Oncethetabisopened,locateALLVARIABLEandselectVoutandCLICKonADDforanalysis.ThescreenshouldlookasfollowinginFigure10.

Page 11: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

11

Figure10:ACanalysisoutput

10. AfterVoutisontheanalysisside,CLICKonSIMULATEandgetthe

screenthatlookslikeinFigure11.

Figure11.Graphaftersimulating

 

Page 12: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

12

3.1 Hints: 1. WhendoingthefirstordercircuithomeworkinMultisim,for

thevoltagecomponentusepiecewiselinearvoltagesource.2. Also,inthefirstordercircuithomework,makesureprimary

andsecondaryy‐axesareenabled.3. Aftertheschematicisfinalized,clickonFILE,thenSNIPPET,

andSAVESNIPPETASSELECTION.4. Afterthesimulationisdone,youcansaveitasaPDFwhenyou

clickonprint.5. Inthehomeworkwhenitsaysplotbodeplot,itisthesameas

plottingACVOLTAGEANALYSISundertheSMILULATIONtab.

Page 13: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

13

4 LTSpice                      Asmentionedearlier,LTSpiceisaschematiccaptureandwaveformviewerwithenhancementsandmodesforeasingthesimulation.LTSpicecanbeusedintwospecificways‐firstisbydrawingschematic,andthesecondoneisbywritingcodeusingnotepadthanopenitinLTSpice.InthissectionoftheintroductorymanualthecodingpartofLTSpicewillbemoreappropriatetostudy.ThesameschematicfromFigure4canbeappliedtolookatthecodinginLTSpice.

1. TheexamplecircuitFigure4usedinMultisimwillalsobeusedinLTSpice.ThecodewillbewritteninnotepadandthenSAVEDasa.CIRfile.

2. ThefirststepincodinginLTSpiceistolookatthenodeinMultisim.OncethenodehasbeengatheredfromMultisimforthisspecificcircuit,writingthecodeiseasyinLTSpice.{Thenodeinthehomeworkwillbedifferentaccordingtothecircuit.}

3. Firstlineofthecodeisalwaysacommentlinewiththestudentsname

and/orthenameofthegraphorthehomework.

4. Thesecondlineisstatingtheinputvoltageatnode1and0andtheACstandsforACVOLTAGESOURCEusedinMultisimand1kstandsforinputFREQUENCY.

5. Inthenextthreelineofcodes,thelefthandsideofthecodeisLETTERofthecomponents,thecenterpartisthenodeofthecomponentsrepresentedinthecircuit,andtherighthandsideofthecodeisthevalueofthecomponentgiveninhomeworkorthecalculatedvalue.

6. Thelinethatcomesafterallthecomponentvaluesis.acdec301010k,inLTSpice.acmeansthatthegraphisgoingtobeACVOLTAGEANALYSIS,dec301010kjustmeansthatLTSpiceisusingdecimalvaluesandwith30numberofpintsandstartingvalueis10Hzfrequencyandendvalueis10kHzfrequency.

Page 14: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

14

7. Finallythelasttwolinesofcodeis.probeand.end;firstthe.probe

tellsLTSpicetowritetheresultofDC,AC,orTRANSIENTSIMULATIONinprobegraphicform,secondthe.endistellingLTSpicetoendthecodehere.{FormajorityofthehomeworkprofessorBrewerwillprovidetheoutlineofthecode.}

8. Nowsavethecodeinnotepadanditshouldlookasthefollowing

Figure12.

Figure12.CodeWritteninNotepad

9. Afteralltheofcodeiswrittenonceagainsaveitasa.CIRfile,then

openitinLTSpiceandshouldlookasfollowingFigure13.

Figure13.HowLTSpiceshouldlook

Page 15: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

15

10. NowCLICKontherunbuttonthatlookslikeaguyrunningonthemenubarindicatedwiththeredcircle,intheFigure14,andthescreenonLTSpiceshouldlookasfollowingFigure14.

Figure14.AfteryouCLICKrunwithoutgraph

11. NowRIGHTCLICKonthegraphandCLICKonVISIBLETRACEand

pickouttheoutputVOLTAGE.ButforthisspecificcircuittheoutputvoltageisgoingtobeV[2].AfterselectingtheoutputthescreenshouldlookasfollowingFigure15.

Figure15.Screencapturewithgraph

Page 16: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

16

12. Afterthesimulationisdonesavethecodingandgraphasa.PDFfilesolateritwillbeeasiertoprintlateron.

Page 17: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

17

5 Mathcad                     Asmentionedearlier,Mathcadisastandardsoftwareforsolvingandanalyzingthemostvitalengineeringcalculations.Mathcadhasmathematicalnotation,unit’sintelligence,andhasaneasy‐to‐useinterface.Thesamecircuit(Figure4)thatwasappliedinMultisimandLTSpicewillbeusedhere,toseehowthesoftwareworks.1. InMathcad,whentheREDPLUSsingappearsonthescreenyoustart

typingintheequationsgivenintheclassorthecalculatedequationinthehomework.

2. ForthecircuitrepresentedinFigure4,letswritedownallthecomponentvaluesandtheequationsthatweregiventous.

3. Forexample,thewaytowriteinacomponentinMathcadistosayR:=4.3kΩ,bywriting:=itsstatingthatRisequaltothatvalueandtogetohmsymboloranyothersymbolinMathcadsimplyjustCLICKonMEASURINGCUPontheCOMMANDBAR.

4. OncealltheequationsandthecomponentvaluesarewritteninMathcad,thescreenshouldlookasfollowingFigure16.

Figure16.Afteralltheequations

Page 18: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

18

5. NowCLICKontheGRAPHSYMBOLontheCOMMANDBAR,andablankgraphscreenshouldappear.Inorderforthelinetoappear,FREQUENCYhastobementionedinthex‐axises,whichisrepresentedbyfi,andonthey‐axiseswehavethemagnitudeandphaseequationthatarerepresentedbyMandPHI.Aftertheyareinputted,thescreenshouldlookasfollowingFigure17.

Figure17.Mathcadwithgraphs

Page 19: A Student Guide to Introduce Multisim, LTSpice, and ...users.ece.gatech.edu/tbrewer/ece3043/User Manual for ECE 3043.pdf · Introduce Multisim, LTSpice, and Mathcad for ... PTC Mathcad

19

6 References:                    [1](2014,March2).WhatisMultisim?[NationalInstrument].Available:http://www.ni.com/multisim/what‐is/[2](2014,March3).WhatisLTSpice?[LinearTechnology].Available:http://www.linear.com/designtools/software/[3](2014,March3).WhatisMathcad?[Product&ServiceAdvantages].Available:http://www.ptc.com/product/mathcad/about/