{"id":42015,"date":"2023-09-29T05:09:08","date_gmt":"2023-09-28T21:09:08","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42015"},"modified":"2023-09-29T05:09:08","modified_gmt":"2023-09-28T21:09:08","slug":"sycxrhjxcktx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42015.html","title":{"rendered":"\u4f7f\u7528CVI\u4e0b\u5982\u4f55\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1"},"content":{"rendered":"

  \u4e32\u53e3\u901a\u4fe1\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e24\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u5230\u4e00\u8d77\u3002CVI\uff08C\u89c6\u89c9\uff09\u662f\u4e00\u6b3e\u7531National Instruments\u516c\u53f8\u5f00\u53d1\u7684\u8f6f\u4ef6\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5b9e\u73b0\u4e32\u53e3\u901a\u4fe1\uff0c\u5b9e\u73b0\u4e24\u53f0\u8ba1\u7b97\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n

CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u7684\u51c6\u5907\u5de5\u4f5c<\/h2>\n

  \u5728\u4f7f\u7528CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u505a\u4e00\u4e9b\u51c6\u5907\u5de5\u4f5c\uff0c\u5305\u62ec\uff1a<\/p>\n

  1.\u83b7\u53d6\u4e32\u53e3\u8bbe\u5907<\/h3>\n

  \u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u83b7\u53d6\u4e00\u4e2a\u4e32\u53e3\u8bbe\u5907\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2aUSB\u8f6c\u4e32\u53e3\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u4e13\u95e8\u7684\u4e32\u53e3\u8bbe\u5907\u3002\u83b7\u53d6\u5230\u4e32\u53e3\u8bbe\u5907\u4e4b\u540e\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8fde\u63a5\u5230\u6211\u4eec\u7684\u7535\u8111\u4e0a\uff0c\u4ee5\u4fbf\u4f7f\u7528CVI\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u3002<\/p>\n

  2.\u5b89\u88c5CVI\u8f6f\u4ef6<\/h3>\n

  \u5176\u6b21\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5CVI\u8f6f\u4ef6\uff0c\u4ee5\u4fbf\u4f7f\u7528CVI\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u3002CVI\u8f6f\u4ef6\u53ef\u4ee5\u4eceNational Instruments\u5b98\u7f51\u8d2d\u4e70\uff0c\u4e5f\u53ef\u4ee5\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u514d\u8d39\u7684CVI\u8f6f\u4ef6\u3002<\/p>\n

  3.\u5b89\u88c5\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f<\/h3>\n

  \u6700\u540e\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\uff0c\u4ee5\u4fbfCVI\u8f6f\u4ef6\u80fd\u591f\u6b63\u786e\u8bc6\u522b\u4e32\u53e3\u8bbe\u5907\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u4e32\u53e3\u8bbe\u5907\u7684\u5382\u5bb6\u5b98\u7f51\u4e0a\u4e0b\u8f7d\u4e32\u53e3\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5b89\u88c5\u5230\u7535\u8111\u4e0a\u3002<\/p>\n

CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u7684\u6b65\u9aa4<\/h2>\n

  \u5728\u51c6\u5907\u5de5\u4f5c\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u4e86\u3002CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

  1.\u6253\u5f00CVI\u8f6f\u4ef6<\/h3>\n

  \u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u6253\u5f00CVI\u8f6f\u4ef6\uff0c\u7136\u540e\u65b0\u5efa\u4e00\u4e2a\u5de5\u7a0b\uff0c\u4ee5\u4fbf\u5f00\u59cb\u7f16\u5199\u4ee3\u7801\u3002<\/p>\n

  2.\u6253\u5f00\u4e32\u53e3\u8bbe\u5907<\/h3>\n

  \u5176\u6b21\uff0c\u6211\u4eec\u9700\u8981\u6253\u5f00\u4e32\u53e3\u8bbe\u5907\uff0c\u4ee5\u4fbfCVI\u8f6f\u4ef6\u80fd\u591f\u6b63\u786e\u8bc6\u522b\u4e32\u53e3\u8bbe\u5907\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528CVI\u7684OpenPort()\u51fd\u6570\u6765\u6253\u5f00\u4e32\u53e3\u8bbe\u5907\uff0c\u5e76\u4f20\u5165\u4e32\u53e3\u53f7\u3001\u6ce2\u7279\u7387\u7b49\u53c2\u6570\u3002<\/p>\n

  3.\u53d1\u9001\u6570\u636e<\/h3>\n

  \u63a5\u7740\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528CVI\u7684WritePort()\u51fd\u6570\u6765\u53d1\u9001\u6570\u636e\u5230\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165WritePort()\u51fd\u6570\uff0c\u4ee5\u4fbf\u53d1\u9001\u6570\u636e\u5230\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u3002<\/p>\n

  4.\u63a5\u6536\u6570\u636e<\/h3>\n

  \u6700\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528CVI\u7684ReadPort()\u51fd\u6570\u6765\u63a5\u6536\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u53d1\u9001\u8fc7\u6765\u7684\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u8981\u63a5\u6536\u7684\u6570\u636e\u957f\u5ea6\u4f5c\u4e3a\u53c2\u6570\u4f20\u5165ReadPort()\u51fd\u6570\uff0c\u4ee5\u4fbf\u63a5\u6536\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u53d1\u9001\u8fc7\u6765\u7684\u6570\u636e\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\uff0c\u5305\u62ec\u51c6\u5907\u5de5\u4f5c\u548c\u5177\u4f53\u6b65\u9aa4\u3002<\/strong>\u4f7f\u7528CVI\u4e0b\u8fdb\u884c\u4e32\u53e3\u901a\u4fe1\uff0c\u53ef\u4ee5\u8ba9\u4e24\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u53d8\u5f97\u66f4\u52a0\u65b9\u4fbf\u5feb\u6377\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e32\u53e3\u901a\u4fe1\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u4f20\u8f93\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e24\u53f0\u8ba1\u7b97\u673a\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u5230\u4e00\u8d77\u3002CVI\uff08C\u89c6\u89c9\uff09\u662f\u4e00\u6b3e\u7531NationalInstruments\u516c\u53f8\u5f00\u53d1\u7684\u8f6f\u4ef6\uff0c\u5b83\u53ef<\/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-42015","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\/42015","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=42015"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42015\/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=42015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}