:2004-03-1622720057:1006-9348(2005)07-0190-03MATLAB,,(,410073):,,,,MATLAB,,:;;:TP391.9:BDesignofReal-timeSimulationSystemBasedonMATLABReal-timeWindowsTargetWUBing,LIANGJia-hong,BIHua-jun(CollegeofMachatronicsandAutomation,NationalUniversityofDefenseTechnology,ChangshaHunnan410073,China)ABSTRACT:Inthedesignanddevelopmentofcontrolsystem,traditionaldesignprocesscannotmeettherapidde2velopingandvarietyrequirementsofthemarket.Thispaperputsforwardanewmethodtoachieverapidprototypeandrealtimesimulation.Itappliesreal-timesimulationtodevelopcontrolsystem.Design,realization,testandproduc2tionpreparationofcontrolsystemarecarriedoutsimultaneouslytoachieverapidprototypedevelopment.Inthethe2sis,howtodesignrealtimesimulationsystembasedonMATLABReal-TimeWindowsTargetisintroducedinde2tail.Then,thesystemarchitectureandrealtimemechanismarefurtherdiscussed.Finallythedesignprocessandcontrolmodeisprovidedwithexample.KEYWORDS:Realtimesimulation;Real-timewindowstarget;Realtimeworkshop1,,,,,,,(),,,,,,,,RTW()MATLABSimulink,Simu2linkSimulinkANSICC,,(Real-timeWindowsTarget)RTW,PCIntel80x86/pentiumPC,I/O(ISAPCI),Sim2ulink,RTWC,,WindowsMATLAB,09122.11,MATLAB/Simulink,Simulink,,RTWC,,,,MAT,MATLABDatabase,I/O,Windows12.2MAT2LABPCPC,SimulinkSimulink,PCPCSimulink,,Windows:I/O,Windows(RingO),PC,WindowsPCWindows,CSWin32,PC,10KHz::MicrosoftWindows95/98/NT4.0/2000XPSimulinkDials&GaugesBlockset,,Simulink,SimulinkScope,Simulink,,,SimulinkI/O:2.3I/O,A/D,D/AI/O100,PCIISA,PCMCIA,AIAODIDO,I/O,,,I/O,,I/O,I/O,33.1(2),,,5%,,G(s)=1(s+1)2:1)PIDPIDGc(s)=K1+K2s+K3sMATLABPID,K1=0.8,K2=0.5,K3=0.001,2)Simulink3),,4),PCI1760()0.1s,1,-55V5)RTWCRealTimeWorkshop/option191rtwin.tlc6),37)MATLAB2PID3PID,64,3.7%,(2%)5.8s,3.2,,,:MATLABSimulinkMATLABSETPARAMsetparam(’Modelname’,’SimulationCommand’,’start/stop/connect’)Simulink,,,SimulinkSimulinkSimulink,MAT,Da2tabaseToolbox,4,PC,,I/O,MATLAB,:[1],.[M].:,2002.[2].Matlab/Simulink[M].:,2002.[3].MATLAB[M].:,1996.[4],,.[J].,1998-5.[5],,.RTW[J].,2003-7.[6].[J].,2002-3.[](1980-)(),,,,:;(1959-)(),,,,;(1979.8-),(),,,,:291