Professional Documents
Culture Documents
NI Multism 10 Tutorial
NI Multism 10 Tutorial
TableofContents
2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 19 21 22 23 25 27 1 Introduction CreatinganewProjectwithCadence CreatinganewProjectwithMultisim PlacingPartswithCadence PlacingPartswithMultisim AddingaLibrarywithCadence ConnectingPartswithCadence ConnectingPartswithMultisim EditingPlacedPartswithCadence EditingPlacedPartswithMultisim ACSimulationwithCadence ACSimulationwithMultisim DCVoltageAnalysiswithCadence DCVoltageAnalysiswithMultisim ErrorAnalysiswithCadence ErrorAnalysiswithMultisim PlottingwithCadence PlottingwithMultisim CadenceTroubleshooting MultisimTroubleshooting WorksCited
Introduction
Thepurposeofthismanualistodescribethebasicfunctionsof CadenceandMultisim.Simulatingacircuitonacomputerbefore implementingitcanhelpvalidateyourdesignandcatchpotentiallycostly errorsaheadoftime. MultisimisanadvancedcircuitsimulationprogramcreatedbyThe NationalInstrumentsElectronicWorkbenchGroup.Itprovidesavarietyof toolsforuserstocreateschematicsofcircuits,andsimulatethese schematics.Itiscreatedtobeveryuserfriendlyforbothstudentsand advancedengineeringusers. TheCadenceOrCADapplicationprovidesauniversalcircuitdesign andsimulationplatform.Itcanimportandexportschematicstoalmostany othercircuitdesignapplicationcausingittobethemostwidelyused schematicdesignentrybytheengineeringindustry.Italsomakesiteasyto makechangestolargecircuitsbyusingaspreadsheeteditor. Thismanualwilldemonstratetheabilitiesofbothprogramsfrom designingacircuittosimulatinganACandDCanalysis.
CreatinganewProjectwithCadence
1. OpenDesignEntryCISusingyourdesktoporstartmenu(usually locatedinApplications\CadenceSPB15.7\DesignEntryCIS). 2. IftheCadenceProductchoicemenuopens,selectthethirdoption labeledAllegroPCBDesignCISXL. 3. SelectFile>New>ProjecttoopentheNewProjectmenu shownbelow.
Figure2.CreatePSpiceProjectDialog.
CreatinganewProjectwithMultisim
1. OpenMultisim10.0usingyourdesktoporstartmenu(usually locatedinApplications\NationalInstruments\CircuitDesignSuite 10.0\Multisim10.0). 2. Theapplicationwillstartallowingyoutostartyourproject.
PlacingPartswithCadence
1. SelectPlace>PartandthePlacePartDialogwillappear. Note:IftherearenolibrariesintheLibrariessection ofthedialog,followtheinstructionsintheAddinga Librarylocatedonpage8beforecontinuing. 2. Selectallthelibrariesbyclickinganddraggingthemouse,orby selectingoneofthelibrariesandhittingCtrl+A. 3. FindthecomponentyouwouldliketoaddinthePartListdialog andclickOKtoaddit.Thefollowingaresomeexamplecomponents youcanadd: PartName Picture Part/LibraryNameinPart List R/ANALOG Capacitor C/ANALOG
CurrentSource
IAC/SOURCE
PlacingPartswithMultisim
1. SelectPlace>Componentandlocatethecomponentyouwishto place. Heresatip:YoucanalsohitCtrl+Wtoopenthe SelectaComponentDialog.
2. TheSelectaComponentdialogshouldappearasshownonthe nextpage.
Resistor
AddingaLibrarywithCadence
1. Beforebeingabletoplaceparts,youmustaddthepartlibrary. 2. SelectPlace>PartandanemptyPlacePartdialogwillappear. 3. ClickAddLibraryandbrowseto C:\Appl\Cadence\SPB_15.7\tools\capture\library\pspice\orthe
Figure3.MultisimSelectaComponentDenu.
toyourspecifications,andclickOk. 4. Clickonyourschematicinthelocationyouwishtoaddyour component,andthecomponentwillbeaddedatthatlocation. 5. AnewSelectaComponentDialogwillappear.Ifyoudonotwish toaddanothercomponent,clickClosetoclosethisdialog.
3. Selectthecomponentyouwishtoadd,editthecomponentsettings
Figure4.BrowseFileDialogforAddingLibraries. 5. ClickOpentoaddtheselibraries.
ConnectingPartswithCadence
1. GotoPlace>Wireorselecttheplacewiretoolintherightside menuasshownbelow. Figure5.CadenceWireTool.
ConnectingPartswithMultisim
1. Selecttheendofthefirstconnectingcomponent.Yourcursor shouldbecomeablackdotwhenyouareoveravalidselection. 2. Clickonitanddragitovertotheendlocationofthesecond connectingcomponent.Yourcursorshouldbecomeablackdotand theendofthecomponentshouldbecomeredwhenyouareovera validselectionasshowninthediagrambelow. 3. Notethatthepaththatyourcursorfollowswillbefollowedwiththe connectingwire. 4. Youcanchangethelocationofthewiresbyclickinganddragging afteryouaredoneconnectingthecomponents.
10
EditingPlacedPartswithCadence
1. Selectthepartorpartsthatyouwouldliketoedit.Theyshould changetoapinkcolorandhaveadottedboxaroundthem. 2. SelectEdit>PropertiesorpressCtrl+EtoopentheProperty Editordialogshownbelow. 3. Youwillseealistofcircuitcomponentsyouhaveselectedandthe propertiesthatyoucanedit. 4. YoucanchangethenamebyeditingthePartReferencecolumn andchangethepartvaluebyeditingtheValuecolumn. 5. Onceyouhavefinishedmakingchanges,clickApply.AnUndo Warningsdialogwillappear,clickYestoapplyyourchanges. 11 Heresatip:Youcanmakequickchangestoa singlepartsbydoubleclickingthevalueyou wouldliketochangeontheschematic.Then changethevalueandpressOK. Figure6.CadencePropertyEditorDialog.
EditingPlacedPartswithMultisim
1. Doubleclickonthepartyouwouldliketochange.Adialogwillappear withpropertiesyoucanchangeasshownbelow.
Figure7.MultisimPropertyEditorDialog.
ACSimulationwithCadence
1. SelectPSpice>Markers>VoltageLevelandplacetheVoltageLevel Markeronthepartorpartsofyourcircuitthatyouwouldliketo analyze. 2. Torunthesimulation,youmustfirstcreateasimulationprofile.Do sobyselectingPSpice>NewSimulationProfile. 3. ANewSimulationdialogwillappear.Enteranameforyour simulationandclickCreate. 4. OntheAnalysisType:dropdownmenu,selectACSweep/Noise asshownbelow. Figure8.CadenceSimulationSettingsDialog. 5. EntertheStartandStopfrequencies.ThesewillbetheXaxisofyour graph,andyourcircuitwillbeanalyzedbetweenthesefrequencies. 6. EnterthePoints/Decade.Thisistheamountofdatasamplesthat willbedisplayedonthegraph.ClickOK. 7. SelectPSpice>RunorpressF11torunthesimulation.
8. SeethePlottingwithCadencesectiononpage21forinstructionson howtoaddtracestoyoursimulation.
ACSimulationwithMultisim
1. SelectSimulate>Analysis>ACAnalysistoopentheACAnalysis dialogshownbelow.
14
13
DCVoltageAnalysiswithCadence
1. Torunthesimulation,youmustfirstcreateasimulationprofile.Do sobyselectingPSpice>NewSimulationProfile. 2. ANewSimulationdialogwillappear.Enteranameforyour simulationandclickCreate. 3. ASimulationSettingsdialogwillappear.ClickOK. 4. SelectPSpice>RunorpressF11torunthesimulation. 5. YourschematicwillnowshowtheDCvalueateachnodeasshown below.
DCVoltageAnalysiswithMultisim
1. SelectSimulate>Analysis>DCOperatingPointtoopentheDC OperatingPointAnalysisdialogshownbelow.
Figure10.DCVoltageAnalysiswithCadenceResults.
15
16
ErrorAnalysiswithCadence
1. Duplicateyouroriginalcircuitbyselectingthecircuitandusingthe CopyandPastecommandsintheEditmenu.Youwillneedboth circuitstoruntheerroranalysis. 2. AddaCapacitorandResistorinparalleltoyourcircuittoserveas theoscilloscopeforerroranalysisasshownbellow. Figure12.OscilloscopeAdditiononRightforErrorAnalysis.
Figure13.AddTracesDialogforErrorAnalysis.
3. SelectPSpice>NewSimulationProfile.ANewSimulationdialog willappear.EnteranameforyoursimulationandclickCreate. 4. OntheAnalysisType:dropdownmenu,selectACSweep/Noise. 5. EntertheStartandStopfrequenciesandthePoints/Decade.Click OK. 6. SelectPSpice>RunorpressF11torunthesimulation. 7. AnAllegroAMSSimulatordialogshouldappear.SelectSimulation >Trace>AddTraceorpresstheInsertkey. 8. UsingtheAddTracesdialog,createaformulatocalculatethe percenterrorusingasshownonthenextpage. 17
Figure14.ExampleofErrorAnalysisOutputinCadence. 18
ErrorAnalysiswithMultisim
1. Duplicateyouroriginalcircuitbyselectingthecircuitandusingthe CopyandPastecommandsintheEditmenu.Youwillneedboth circuitstoruntheerroranalysis. 2. AddaCapacitorandResistorinparalleltoyourcircuittoserveas theoscilloscopeforerroranalysis. 3. SelectSimulate>Analysis>ACAnalysistoopentheACAnalysis dialogandentertheStartandStopfrequencies. 4. SelecttheOutputtabandclickAddExpressiontoopentheAnalysis Expressiondialogasshownbelow.
Figure16.ExampleofErrorAnalysisOutputinMultisim.
19 20 Figure15.MultisimAnalysisExpressionDialog.
PlottingWithCadence
1. WhenintheAllegroAMSSimulatordialog,selectSimulation> Trace>AddTraceorpresstheInsertkey. 2. UsingtheAddTracesdialog,selectthetraceyouwouldliketoadd andclickOKtoaddthemtoyourgraph. 3. Tographaformula,selecttheoutputvariablesfromtheleftSimple OutputVariablesmenuandaddmathematicalexpressionsfrom therightFunctionsorMacrosmenu.ThenclickOKtoadditto yourgraph. 4. Todeletealltraces,selectTrace>DeleteallTracesorpressCtrl+ Delete. 21
PlottingWithMultisim
1. WhenintheACAnalysisdialog,selectthevariablesyouwouldlike toplotandclickAddasshownbelow.
22
CadenceTroubleshooting BuildingtheCircuit
Ireceiveayellowwarningsymbolwhentryingtoconnectingawire tomycomponent. 1. Cadencehasdetectedthatmakingthisconnectionmightcreatean errorinyourcircuit. 2. Youcanproceedinmakingtheconnection,buttakenoteofthe warningasitmightcauseproblemsinthefutureduringsimulation.
IamreceivingerrorsintheformatofERRORLessthan2 connectionsatnodeM_UN0001whentryingtorunmysimulation. 1. Oneofyourcircuitcomponentsdoesnothaveawireconnected fromeachside. 2. SelectPlace>Wireandplacethewireaccordingly.Formore informationonplacingwires,refertoConnectingPartswith Cadenceonpage9. MySimulationransuccessfullybutthegraphisempty. 1. Youmustaddtracestodisplayonyourgraph. 2. SelectSimulation>Trace>AddTraceorpresstheInsertkey. UsingtheAddTracesdialog,selectthetraceyouwouldliketoadd andclickOKtoaddittoyourgraph.
SimulatingtheCircuit
MyCadenceApplicationdoesnothaveaPSpicemenuforcircuit simulation. 1. YouhaveopenedthewrongCadenceapplication.SelectFile>Save tosaveyourfile.SelectFile>Exittoclosethewindow. 2. OpenDesignEntryCISusingyourdesktoporstartmenu(usually locatedinApplications\CadenceSPB15.7\DesignEntryCIS). 3. IftheCadenceProductchoicemenuopens,selectthethirdoption labeledAllegroPCBDesignCISXL. IamreceivingerrorsintheformatofERRORNodeN00023is floatingwhentryingtorunmysimulation. 1. Yourgroundisnotproperlyconnected. 2. Ifyoudonotalreadyhaveagroundinyourcircuit,selectPlace> GroundtodisplaythePlaceGrounddialog. 23
ErrorAnalysis
IreceiveanInvalidExpressionerrorwhencreatingmyformula. 1. Youhaveasyntaxerrorinyourerrorexpression.SelectOKand changetheexpressiontofixthiserror.
24
MultisimTroubleshooting SimulatingtheCircuit
AfterrunningtheACAnalysisandaddingtheproperoutput,ablank graphappears. 1. Thereismostlikelyaproblemwithyourcircuit.Makesureallwires areconnectedproperlyandruntheanalysisagain. WhenrunninganewACAnalysis,myoldACAnalysisstillappearsin thetabs.HowdoIdeleteit? 1. Selectthetabwiththeunwantedanalysis. 2. PressCtrl+Xtodeleteit.
3. SelectSimulate>Analysis>ACAnalysisandselecttheOutputtab andchangetheexpressiontofixthiserror.
DCVoltageAnalysis
Allofmyoutputtedvariablesare0afterrunningtheanalysis. 1. YoumostlikelyhaveanACvoltagesourceratherthanaDCVoltage source. 2. SelectPlace>ComponentandlocatetheDCvoltagesource.Placeit ontoyourschematicandremovetheACvoltagesource.
ErrorAnalysis
Afterenteringtheerrorpercentageformulaastheoutput,thegraph isstillblank. 1. Youmostlikelyhaveasyntaxerrorinyourerrorexpression. 25 26
WorksCited
27
28