您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 基于LabWindows-CVI的信号发生器设计实例
:2004-05:(1974),,,,LabWindows/CVI,,(3,710072):LabWindows/CVI:;;:TM935:B:1006-2394(2004)05-0021-02DesigningExampleofSignalGeneratorBasedonLabWindows/CVILIYan2bao,LIBing2xi,WANGYi(AutomationSchool,NorthwestPolytechnicalUniversity,Xian710072,China)Abstract:ThispaperprovidesarealizationofsinwavegeneratorbasedonLabWindows/CVI.Bythis,wecouldfindacommonwayofdesign2ingthekindofinstrument.Keywords:software;virtualinstrument;signalgenerator1D/A,1D/AD/AD/A,12222.1:,,,CVI,File--New`UserInterface(3.uir),,,PanelGraphNumericCommandButton,2.2,,11GraphGRAPHNumericCYCNUMdoubleNumericNUMPCYC/doubleNumericPHASEintNumericAMPdoubleCommandButtonGENERWAVEGenerateWave3CommandButtonCLOSESHUTCloseShut33,3,CVI,:Code`Gener21220045ate`ALLCode,Quitbutton,OK,man:#includeanalysis.h/3analysis3/#includeansic.h/3ansic3/GenerateWave:doubleamp;/33/intsampcyc;/3/3/doublef;/33/intphase;/33/doublecycnum;/33/intsamples;/33/double3wave;/33/,,caseEVENTCOM2MIT:GetCtrlVal(panelHandle,PANELAMP,&);/33/GetCtrlVal(panelHandle,PANELSAMPCYC,&sampcyc);/3/3/f=1.0/sampcyc;/33/GetCtrlVal(panelHandle,PANELCYCNUM,&cycnum);/33/GetCtrlVal(panelHandle,PANELPHASE,&phase);/33/samples=cycnum3sampcyc;/33/wave=malloc(samples3sizeof(double));/33/SineWave(samples,amp,f,&phase,wave);/33/DeleteGraphPlot(panelHandle,PANELCRAPH,-1,VALIMMEDlATEDRAW);/33/PlotY(panelHandle,PANELGRAPH,wave,samples,VALDOUBLE,VALTHINLINE,VALEMPTYSQUARE,VALSOLID,1,VALRED);/33/free(wave);/33/,:Edit`AddFileToProject...`AllFiles(3.3),Run`RunProject4,,,CVI,C,:[1].C[M].:,1996.[2],.LabWindows/CVI[J].,2003,(1).[3].LabWindows/CVI[M].:,2001.()NI()ATEICLabVIEWNI2CANBniLabVIEWLabVIEWLabVIEWRTNICDMALabVIEWLabVIEWNI2220045
本文标题:基于LabWindows-CVI的信号发生器设计实例
链接地址:https://www.777doc.com/doc-2403515 .html