{"id":40254,"date":"2023-09-29T21:02:14","date_gmt":"2023-09-29T13:02:14","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40254"},"modified":"2023-09-29T21:02:14","modified_gmt":"2023-09-29T13:02:14","slug":"vjrydkdck","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40254.html","title":{"rendered":"VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3"},"content":{"rendered":"

  \u4f7f\u7528Visual Basic\uff08VB\uff09\u53ef\u4ee5\u8f7b\u677e\u5730\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u901a\u4fe1\u3002\u8fd9\u4e9b\u8bbe\u5907\u53ef\u4ee5\u662f\u8ba1\u7b97\u673a\uff0c\u6253\u5370\u673a\uff0c\u626b\u63cf\u4eea\uff0cGPS\u6a21\u5757\u7b49\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u5e76\u8ba8\u8bba\u53ef\u80fd\u7684\u95ee\u9898\u548c\u63d0\u51fa\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3<\/h2>\n

  \u4f7f\u7528VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u9996\u5148\u8981\u786e\u5b9a\u4f60\u8981\u63a5\u5165\u7684\u4e32\u53e3\u7c7b\u578b\uff0c\u4ee5\u53ca\u4f60\u8981\u63a5\u5165\u7684\u8bbe\u5907\u7684\u7279\u6027\u3002\u4e32\u53e3\u7c7b\u578b\u4e00\u822c\u6709RS-232\uff0cRS-422\uff0cRS-485\uff0cUSB\u7b49\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f60\u8981\u63a5\u5165\u7684\u8bbe\u5907\u7684\u7279\u6027\u3002<\/p>\n

  \u63a5\u4e0b\u6765\uff0c\u9700\u8981\u786e\u5b9a\u8bbe\u5907\u7684\u6ce2\u7279\u7387\uff0c\u5373\u6bcf\u79d2\u53d1\u9001\u7684\u6570\u636e\u4f4d\u6570\u3002\u8fd9\u53d6\u51b3\u4e8e\u63a5\u5165\u8bbe\u5907\u7684\u6027\u80fd\uff0c\u4e00\u822c\u53ef\u4ee5\u8bbe\u7f6e\u4e3a300\uff0c600\uff0c1200\uff0c2400\uff0c4800\uff0c9600\uff0c14400\uff0c19200\uff0c38400\uff0c57600\uff0c115200\u7b49\u3002<\/p>\n

  \u63a5\u7740\uff0c\u4f60\u9700\u8981\u4f7f\u7528VB\u7f16\u7a0b\u8bed\u8a00\u6765\u5b9e\u73b0\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\u3002VB\u63d0\u4f9b\u4e86\u4e24\u4e2a\u91cd\u8981\u7684\u5bf9\u8c61\uff1aMSComm\u548cMSCommControl\uff0c\u5b83\u4eec\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u4e32\u53e3\u7684\u63a5\u5165\u548c\u901a\u4fe1\u3002<\/p>\n

  MSComm<\/h3>\n

  MSComm\u662f\u4e00\u4e2a\u7528\u4e8e\u901a\u8fc7\u4e32\u53e3\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u7684\u5bf9\u8c61\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u4e32\u53e3\u7684\u63a5\u5165\u548c\u901a\u4fe1\u3002\u5b83\u7684\u5c5e\u6027\u53ef\u4ee5\u8bbe\u7f6e\u4e32\u53e3\u7684\u7c7b\u578b\uff0c\u6ce2\u7279\u7387\uff0c\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

  MSCommControl<\/h3>\n

  MSCommControl\u662f\u4e00\u4e2a\u7528\u4e8e\u63a7\u5236\u4e32\u53e3\u7684\u5bf9\u8c61\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u4e32\u53e3\u7684\u63a5\u5165\uff0c\u63a7\u5236\u4e32\u53e3\u7684\u6253\u5f00\u548c\u5173\u95ed\uff0c\u4ee5\u53ca\u68c0\u67e5\u4e32\u53e3\u7684\u72b6\u6001\u3002\u5b83\u7684\u5c5e\u6027\u53ef\u4ee5\u8bbe\u7f6e\u4e32\u53e3\u7684\u7c7b\u578b\uff0c\u6ce2\u7279\u7387\uff0c\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h2>\n

  \u4f7f\u7528VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u4e32\u53e3\u63a5\u5165\u5931\u8d25\uff0c\u6570\u636e\u4f20\u8f93\u5931\u8d25\uff0c\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u95ee\u9898\u7b49\u3002<\/p>\n

  \u4e32\u53e3\u63a5\u5165\u5931\u8d25<\/h3>\n

  \u5982\u679c\u63a5\u5165\u5931\u8d25\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u6ca1\u6709\u6b63\u786e\u5b89\u88c5\uff0c\u6216\u8005\u4e32\u53e3\u8bbe\u5907\u6ca1\u6709\u6b63\u786e\u914d\u7f6e\u3002\u9996\u5148\uff0c\u8981\u786e\u4fdd\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\uff0c\u7136\u540e\u786e\u4fdd\u4e32\u53e3\u8bbe\u5907\u7684\u914d\u7f6e\u6b63\u786e\uff0c\u5305\u62ec\u6ce2\u7279\u7387\uff0c\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

  \u6570\u636e\u4f20\u8f93\u5931\u8d25<\/h3>\n

  \u5982\u679c\u6570\u636e\u4f20\u8f93\u5931\u8d25\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u4e32\u53e3\u8bbe\u5907\u7684\u6ce2\u7279\u7387\u4e0d\u5339\u914d\uff0c\u6216\u8005\u4e32\u53e3\u8bbe\u5907\u7684\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u4e0d\u5339\u914d\uff0c\u6216\u8005\u4e32\u53e3\u8bbe\u5907\u6ca1\u6709\u6b63\u786e\u8fde\u63a5\u3002\u9996\u5148\uff0c\u8981\u786e\u4fdd\u4e32\u53e3\u8bbe\u5907\u7684\u6ce2\u7279\u7387\uff0c\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u6b63\u786e\u5339\u914d\uff0c\u7136\u540e\u786e\u4fdd\u4e32\u53e3\u8bbe\u5907\u6b63\u786e\u8fde\u63a5\u3002<\/p>\n

  \u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u95ee\u9898<\/h3>\n

  \u5982\u679c\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u51fa\u73b0\u95ee\u9898\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u9a71\u52a8\u7a0b\u5e8f\u7684\u7248\u672c\u4e0d\u5339\u914d\uff0c\u6216\u8005\u9a71\u52a8\u7a0b\u5e8f\u635f\u574f\u7b49\u539f\u56e0\u3002\u9996\u5148\uff0c\u8981\u786e\u4fdd\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u7684\u7248\u672c\u4e0e\u8bbe\u5907\u7684\u7248\u672c\u5339\u914d\uff0c\u7136\u540e\u91cd\u65b0\u5b89\u88c5\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\uff0c\u6216\u8005\u66f4\u65b0\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u5e76\u8ba8\u8bba\u4e86\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848\u3002\u4f7f\u7528VB\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u7c7b\u578b\uff0c\u6ce2\u7279\u7387\uff0c\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u7b49\uff0c\u5e76\u4f7f\u7528MSComm\u548cMSCommControl\u5bf9\u8c61\u6765\u5b9e\u73b0\u4e32\u53e3\u7684\u63a5\u5165\u548c\u901a\u4fe1\u3002\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u68c0\u67e5\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\uff0c\u786e\u4fdd\u4e32\u53e3\u8bbe\u5907\u7684\u914d\u7f6e\u6b63\u786e\uff0c\u6216\u8005\u91cd\u65b0\u5b89\u88c5\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528VisualBasic\uff08VB\uff09\u53ef\u4ee5\u8f7b\u677e\u5730\u63a5\u5165\u5df2\u6253\u5f00\u7684\u4e32\u53e3\uff0c\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u901a\u4fe1\u3002\u8fd9\u4e9b\u8bbe\u5907\u53ef\u4ee5\u662f\u8ba1\u7b97\u673a\uff0c\u6253\u5370\u673a\uff0c\u626b\u63cf\u4eea\uff0cGPS\u6a21\u5757\u7b49\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[69],"class_list":["post-40254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=40254"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=40254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}