串口曲线接收程序.docx
《串口曲线接收程序.docx》由会员分享,可在线阅读,更多相关《串口曲线接收程序.docx(106页珍藏版)》请在课桌文档上搜索。
1、Forml.frm源码VERSION5.00BeginVB.FormFormlBorderStyIe=1FixedSingleCaption=”实时曲线”CIientHeight=6690CIientLeft=45CIientTop=495CIientWidth=9840Icon=Forml.frx:0000LinkTopic=FormlMaxButton=OFalseMinButton=OFalseScaIeHeight=6690ScaIeWidth=9840StartUpPosition:3,窗口缺省BeginVB1PictureBoxPicturelAutoRedraw=-1TrueBa
2、ckCoIor=&H80000012&Height=2175Left=120ScaIeHeight=2115ScaIeWidth=9585Tabindex=4Top=120Width=9650EndBeginVB1PictureBoxPictureJineAutoRedraw=-1TrueBackCoIor=&H80000012&Height=2145Left=120ScaIeHeight=2085ScaIeWidth=4785Tabindex=3Top=2280Width=4845EndBeginVB-PictureBoxPicture_pointAutoRedraw=-1TrueBackC
3、oIor=&H80000012&Height=2145Left=120ScaIeHeight=2085ScaIeWidth=4785Tabindex=2Top=4440Width=4845EndBeginVB1PictureBoxPicturejine2AutoRedraw=-1TrueBackCoIor=&H80000012&Height=2145Left=4920ScaIeHeight=2085ScaIeWidth=4785Tabindex=1Top=2280Width=4845EndBeginVB1PictureBoxPicture_point2AutoRedraw=-1TrueBack
4、CoIor=&H80000012&Height=2145Left=4920ScaIeHeight=2085ScaIeWidth=4785Tabindex二OTop三4440Width=4845EndEndAttributeVB_Name=,FormlAttributeVB_GlobalNameSpace=FalseAttributeVB_Creatable=FalseAttributeVB_Predeclaredld=TrueAttributeVB_Exposed=FalseOptionExplicitPrivateSubForm_Load()WithLDrawl.InitDrawLinePi
5、ctureJine,vbRed,True.Max=5.HorzSpIits=6.VertSpIits=6.LineType=TYPE-LINE.RePaintEndWithWithPDrawl.InitDrawLinePicturjpoint,VbRed,True.Max=5.HorzSpIits=6.VertSpIits=6.LineType=TYPE-POINT.RePaintEndWithWithLDraw2.InitDrawLinePictureJineZ,vbRed,True.Max=5.HorzSpIits=6.VertSpIits=6.LineType=TYPE-LINE.ReP
6、aintEndWithWithPDraw2.InitDrawLinePicture-point2,VbRed,True.Max=5.HorzSpIits=6.VertSpIits=6.LineType=TYPE-POINT.RePaintEndWithWithPDraw3.InitDrawLinePicturelzVbYeIIowzTrue,RGB(OzO,255)zTrue.Max=5.HorzSpIits=6.VertSpIits=6.LineType=TYPE-POINTEndWithEndSubPrivateSubForm_Unload(CancelAsInteger)UnloadMe
7、EndSubPrivateSubPicture_line_Paint()1.Drawl1RePaintEndSubPrivateSubPicture_line2_Click()1.Draw2.RePaintEndSubPrivateSubPicture_point_Paint()PDrawl.RePaintEndSubPrivateSubPicture_point2_Click()PDrawl.RePaintEndSubPrivateSubPicturel_Click()PDraw3.RePaintEndSubForm2.frm源码VERSION5.00BeginVB.FormForm2Cap
8、tion=,Form2CIientHeight=3030CIientLeft=60CIientTop=510CIientWidth=4680LinkTopic=Form2MaxButton=0FalseScaIeHeight=3030ScaIeWidth=4680StartUpPosition=3,窗口缺省BeginVB.LabelLabel2Caption=火灾报警器数据采集工具VLO1BeginPropertyFontName=宋体,,Size=10.5Charset=134Weight=400Underline=0FalseItalic=0FalseStrikethrough=0Fals
9、eEndPropertyHeight=375Left=840Tabindex=1Top=1680Width=3375End“西安亚川电力科技有限公司”BeginVB.LabelLabellCaptionBeginPropertyFontName=”宋体”Size=10.5Charset=134Weight=400Underline=0FalseItalic=0FalseStrikethrough=0FalseEndPropertyHeight=495Left=960Tabindex=0Top=720Width=2535EndEndAttributeVB_Name=Form2AttributeV
10、B_GlobalNameSpace=FalseAttributeVB_Creatable=FalseAttributeVB_Predeclaredld=TrueAttributeVB_Exposed=FalsefrmAbout.frm源码VERSION5.00BeginVB.FormfrmAboutBorderStyIe=3FixedDialogCaption=“火灾报警器数据采集工具CIientHeight=3555CIientLeft=2340CIientTop=1935CIientWidth=5730ClipControIs=0FalseIcon=,frmAbout.frx:0000Li
11、nkTopic=Form2MaxButton=0FalseMinButton=0FalseScaIeHeight=2453.724ScaIeMode=0UserScaIeWidth=5380.766ShowInTaskbar=0FalseBeginVB-PictureBoxpiclconAutoSize=-1TrueClipControIs=0FalseHeight=540Left=240Picture=frmAbout.frx:038AScaIeHeight=337.12ScaIeMode=OUserScaIeWidth=337.12Tabindex=1Top=240Width=540End
12、BeginVB1CommandButtoncmdOKCancel三-1TrueCaption=“确定,,Default=-1TrueHeight=345Left=4125Tabindex=OTop=2625Width=1500EndBeginVB-CommandButtonCmdSysInfoCaption=”系统信息(&S).”Height=345Left=4140Tabindex=2Top=3075Width=1485EndBeginVB.LineLinelBorderCoIor=&H00808080&BorderStyIe=6InsideSolidIndex=1Xl=84.515X2=5
13、309.398Yl=1687.583Y2三1687.583EndBeginVB.LabelIbIDescriptionCaption=”本软件是西安亚川电力科技有限公司的火灾报警器数据采集专用软件。ForeCoIor=&H00000000&Height=1170Left=1050Tabindex=3Top=1125Width=EndBeginVB.LabelIbITitIeCaption=ForeCoIor=Height=1.eft=Tabindex=3885”西安亚川电力科技有限公司”&H00000000&48010505Top=Width=End2403885BeginVB.LineLin
14、elBorderCoIor=BorderWidth=Index=&HOOFFFFFF&2OXl=98.6X2=5309.398Yl=1697.936Y2=EndBeginVB.LabelIbIVersionCaption=Height=1.eft=Tabindex=1697.936,版本1.022510506Top=Width=End7803885BeginVB.LabelIblDiscIaimerCaption=ForeCoIor=Height=1.eft=Tabindex=”西安亚川电力科技有限公司版权所有”&H00000000&8252554Top=Width=EndEnd2625363
15、0AttributeVB_Name=frmAboutAttributeVB_GlobalNameSpace=FalseAttributeVB_Creatable=FalseAttributeVB-Predeclaredld=TrueAttributeVB_Exposed=FalseOptionExplicit,注册表关键字安全选项ConstREAD_CONTROL=&H20000ConstKEY_QUERY_VALUE=&H1ConstKEY_SET_VALUE=&H2ConstKEY_CREATE_SUB_KEY=&H4ConstKEY_ENUMERATE_SUB_KEYS=&H8Const
16、KEY_NOTIFY=&H10ConstKEY_CREATE_LINK=&H20ConstKEY_ALL_ACCESS=KEY_QUERY_VALUE+KEY_SET_VALUE+_KEY_CREATE_SUB_KEY+KEY_ENUMERATE_SUB_KEYS+_KEY_NOTIFY+KEY_CREATE_LINK+READ_CONTROL,注册表关键字ROOT类型ConstHKEY_LOCAL_MACHINE=&H80000002ConstERROR_SUCCESS=0ConstREG_SZ=1独立的空的终结字符串ConstREG_DWORD=432位数字ConstgREGKEYSYSI
17、NFOLOC=SOFTWAREMicrosoftSharedToolsLocationConstgREGVALSYSINFOLOC=MSINFOConstgREGKEYSYSINFO=SOFTWAREMicrosoftSharedToolsMSINFOConstgREGVALSYSINFO=PATHPrivateDeclareFunctionRegOpenKeyExLib,advapi32AliasRegOpenKeyExA(ByVaIhKeyAsLong,ByVaIIpSubKeyAsString,ByVaIUlOptionsAsLong,ByVaISamDesiredAsLong,ByRe
18、fPhkResuItAsLong)AsLongPrivateDeclareFunctionRegQueryVaIueExLibadvapi32AliasRegQueryVaIueExA(ByVaIhKeyAsLong,ByVaIIpVaIueNameAsString,ByVaIIpReservedAsLong,ByRefIpTypeAsLong,ByVaIIpDataAsString,ByRefIpcbDataAsLong)AsLongPrivateDeclareFunctionRegCIoseKeyLibadvapi32(ByVaIhKeyAsLong)AsLongPrivateSubcmd
19、Syslnfo_Click()CallStartSysInfoEndSubPrivateSubcmdOK_Click()UnloadMeEndSubPrivateSubForm_Load()Me.Caption=关于&App.TitleIblVersion.Caption=版本&App.Major&.&App.Minor&.&App1RevisionIblTitIe-Caption=AppJitIeEndSubPublicSubStartSysInfoOOnErrorGoToSysInfoErrDimrcAsLongDimSysInfoPathAsString,试图从注册表中获得系统信息程序的
20、路径及名称.IfGetKeyVaIUe(HKEY_LOCAL_MACHINE,gREGKEYSYSINF0,gREGVALSYSINFO,SysInfoPath)Then试图仅从注册表中获得系统信息程序的路径.ElselfGetKeyValue(HKEY-LOCAL-MACHINE,gREGKEYSYSINFOLOC,gREGVALSYSINFOLOC,SysInfoPath)Then,已知32位文件版本的有效位置If(Dir(SyslnfoPath&MSINFO32.EXE),)ThenSysInfoPath=SysInfoPath&MSINFO32.EXE,错误文件不能被找到ElseGoT
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 串口 曲线 接收 程序
链接地址:https://www.desk33.com/p-933016.html