{"id":615,"date":"2013-03-26T21:09:00","date_gmt":"2013-03-26T13:09:00","guid":{"rendered":"http:\/\/www.liuwenhao.me\/?p=615"},"modified":"2021-11-22T14:04:26","modified_gmt":"2021-11-22T06:04:26","slug":"%e5%8e%9f%e5%88%9b%e6%95%99%e7%a8%8blabwindowscvi%e5%85%a5%e9%97%a8%e4%b9%8b%e7%ac%ac%e4%b8%80%e7%ab%a0%ef%bc%9alabwindowscvi%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.liuwenhao.me\/?p=615","title":{"rendered":"[\u539f\u521b\u6559\u7a0b]LabWindows\/CVI\u5165\u95e8\u4e4b\u7b2c\u4e00\u7ae0\uff1aLabWindows\/CVI\u5f00\u53d1\u73af\u5883"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u5bfc\u822a\u76ee\u5f55<\/p><ul class=\"toc_list\"><li><a href=\"#11_LabWindowsCVI\">1.1 LabWindows\/CVI<\/a><ul><li><a href=\"#nbsp_111_LabWindowsCVI\">&nbsp; 1.1.1 LabWindows\/CVI\u6982\u8ff0<\/a><\/li><li><a href=\"#nbsp_112_LabWindowsCVI\">&nbsp; 1.1.2 LabWindows\/CVI\u5b89\u88c5<\/a><\/li><\/ul><\/li><li><a href=\"#12\">1.2 \u5bfb\u6839\u95ee\u5e95\uff1a\u5f00\u53d1\u73af\u5883<\/a><\/li><li><a href=\"#13_C\">1.3 C\u8bed\u8a00\u7684\u9b45\u529b<\/a><\/li><li><a href=\"#14_CVI\">1.4 CVI\u5f00\u53d1\u73af\u5883\u521d\u63a5\u89e6<\/a><ul><li><a href=\"#nbsp_141_Helloworld\">&nbsp; 1.4.1 \u4e09\u6b65\u521b\u5efa\u81ea\u5df1\u7684Hello\uff0cworld<\/a><\/li><li><a href=\"#nbsp_142_samples\">&nbsp; 1.4.2 \u9605\u8bfb\u5b98\u65b9\u7684samples<\/a><\/li><\/ul><\/li><li><a href=\"#15\">1.5 \u63a2\u7d22\u4e0e\u5b9e\u9a8c<\/a><ul><li><a href=\"#nbsp_151\">&nbsp; 1.5.1 \u5b9e\u9a8c<\/a><\/li><li><a href=\"#nbsp_152\">&nbsp; 1.5.2 \u63a2\u7d22<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h1><span id=\"11_LabWindowsCVI\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">1.1 LabWindows\/CVI<\/span><\/span><\/h1>\n<h4><\/h4>\n<h2><span id=\"nbsp_111_LabWindowsCVI\"><strong>&nbsp; 1.1.1 LabWindows\/CVI\u6982\u8ff0<\/strong><\/span><\/h2>\n<p>LabWindows\/CVI\u662f\u7f8e\u56fdNI\uff08National Instruments\uff09\u516c\u53f8\u5f00\u53d1\u7684\u9762\u5411\u8ba1\u7b97\u673a\u6d4b\u63a7\u9886\u57df\u7684\u865a\u62df\u4eea\u5668\u8f6f\u4ef6\u5f00\u53d1\u5e73\u53f0\uff0c\u53ef\u4ee5\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff08WindowsXP\/Vista\/7\u3001Mac OS\u548cUnix\uff09\u4e0b\u8fd0\u884c\u3002<\/p>\n<p>LabWindows\/CVI \u662f\u4e3aC \u8bed\u8a00\u7a0b\u5e8f\u5458\u63d0\u4f9b\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5728\u6b64\u5f00\u53d1\u73af\u5883\u4e2d\u53ef\u4ee5\u5229\u7528C\u8bed\u8a00\u53ca\u5176\u63d0\u4f9b\u7684\u5e93\u51fd\u6570\u6765\u5b9e\u73b0\u7a0b\u5e8f\u7684\u8bbe\u8ba1\u3001\u7f16\u8f91\u3001\u7f16\u8bd1\u3001\u94fe\u63a5\u3001\u8c03\u8bd5\u3002\u4f7f\u7528LabWindows\/CVI \u53ef\u4ee5\u5b8c\u6210\u4ee5\u4e0b\u4f46\u4e0d\u9650\u4e8e\u4ee5\u4e0b\u5de5\u4f5c\uff1a<\/p>\n<div style=\"padding-left: 20px; border-left: #ddd 5px solid; margin: 15px 30px 0pt 10px\">\n<p>\u00b7\u4ea4\u4e92\u5f0f\u7684\u7a0b\u5e8f\u5f00\u53d1\uff1b<\/p>\n<p>\u00b7\u5177\u6709\u529f\u80fd\u5f3a\u5927\u7684\u51fd\u6570\u5e93\uff0c\u7528\u6765\u521b\u5efa\u6570\u636e\u91c7\u96c6\u548c\u4eea\u5668\u63a7\u5236\u7684\u5e94\u7528\u7a0b\u5e8f\uff1b<\/p>\n<p>\u00b7\u5145\u5206\u5229\u7528\u5b8c\u5907\u7684\u8f6f\u4ef6\u5de5\u5177\u8fdb\u884c\u6570\u636e\u91c7\u96c6\u3001\u5206\u6790\u548c\u663e\u793a\uff1b<\/p>\n<p>\u00b7\u5229\u7528\u5411\u5bfc\u5f00\u53d1IVI \u4eea\u5668\u9a71\u52a8\u7a0b\u5e8f\u548c\u521b\u5efaActiveX \u670d\u52a1\u5668\uff1b<\/p>\n<p>\u00b7\u4e3a\u5176\u5b83\u7a0b\u5e8f\u5f00\u53d1C \u76ee\u6807\u6a21\u5757\u3001\u52a8\u6001\u8fde\u63a5\u5e93\uff08DLL\uff09\u3001C \u8bed\u8a00\u5e93\u3002<\/p>\n<\/div>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/1.jpg\"><img loading=\"lazy\" title=\"1\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"1\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/1_thumb.jpg\" width=\"644\" height=\"426\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20111 LabWindows\/CVI\u754c\u9762<\/span><\/p>\n<p><!--more-->LabWindows\/CVI \u7684\u529f\u80fd\u5f3a\u5927\u5728\u4e8e\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u5e93\u3002\u5229\u7528\u8fd9\u4e9b\u5e93\u51fd\u6570\u9664\u53ef\u5b9e\u73b0\u5e38\u89c4\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u5916\uff0c\u8fd8\u53ef\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u7684\u6570\u636e\u91c7\u96c6\u548c\u4eea\u5668\u63a7\u5236\u7cfb\u7edf\u7684\u5f00\u53d1\u3002  <\/p>\n<p><b>\u6570\u636e\u91c7\u96c6<\/b>\u3002IVI\u5e93\u3001GPIB\/GPIB 488.2\u5e93\u3001NI-DAQmx\u5e93\u3001\u4f20\u7edf\u7684NI-DAQ\u5e93\u3001RS-232\u5e93\u3001VISA\u5e93\u3001VXI\u5e93\u4ee5\u53caNI-CAN\u5e93\u3002<\/p>\n<p><b>\u6570\u636e\u5206\u6790<\/b>\u3002\u683c\u5f0f\u5316IO\u5e93\u3001\u5206\u6790\u5e93\u4ee5\u53ca\u53ef\u9009\u7684\u9ad8\u7ea7\u5206\u6790\u5e93\u3002<\/p>\n<p><b>GUI<\/b><b>\u5e93<\/b>\u3002\u4f7f\u7528LabWindows\/CVI \u7684\u7528\u6237\u754c\u9762\u7f16\u8f91\u5668\u53ef\u4ee5\u521b\u5efa\u5e76\u7f16\u8f91\u56fe\u5f62\u7528\u6237\u754c\u9762(GUI)\uff0c\u800c\u4f7f\u7528LabWindows\/CVI \u7684\u7528\u6237\u754c\u9762\u5e93\u51fd\u6570\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u521b\u5efa\u5e76\u63a7\u5236GUI\u3002\u6b64\u5916\uff0cLabWindows\/CVI\u4e3aGUI \u9762\u677f\u7684\u8bbe\u8ba1\uff0c\u51c6\u5907\u4e86\u8bb8\u591a\u4e13\u4e1a\u63a7\u4ef6\uff0c\u5982\uff1a\u66f2\u7ebf\u56fe\u63a7\u4ef6\u3001\u5e26\u72b6\u56fe\u63a7\u4ef6\u3001\u8868\u5934\u3001\u65cb\u94ae\u548c\u6307\u793a\u706f\u7b49\uff0c\u4ee5\u9002\u5e94\u6d4b\u63a7\u7cfb\u7edf\u8f6f\u4ef6\u5f00\u53d1\u7684\u9700\u6c42\uff0c\u5229\u7528\u8fd9\u4e9b\u63a7\u4ef6\u53ef\u4ee5\u8bbe\u8ba1\u51fa\u4e13\u4e1a\u7684\u6d4b\u63a7\u7a0b\u5e8f\u754c\u9762\u3002<\/p>\n<p><b>\u7f51\u7edc\u548c\u8fdb\u7a0b\u95f4\u901a\u4fe1\u5e93<\/b>\u3002\u52a8\u6001\u6570\u636e\u4ea4\u6362\uff08DDE\uff09\u5e93\u3001TCP\u5e93\u3001ActiveX\u5e93\u3001Internet\u5e93\u3001DIAdem\u8fde\u63a5\u5e93\u3001DataSocket\u5e93\u7b49\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u7528\u6237\u53ef\u4ee5\u5728CVI\u4e2d\u4f7f\u7528ANSI C\u5e93\u4e2d\u7684\u5168\u90e8\u6807\u51c6\u51fd\u6570\u3002<\/p>\n<p>\u6b63\u5f0f\u56e0\u4e3a\u6709\u4e86\u5f3a\u5927\u7684\u5e93\u652f\u6301\uff0c\u6240\u4ee5\u5728CVI\u4e2d\uff0c\u5b8c\u6210\u7ed8\u5236\u56fe 1\u20112\u6240\u793a\u6b63\u5f26\u51fd\u6570\u6ce2\u5f62\u7684\u529f\u80fd\uff0c\u53ea\u9700\u8981\u5728main()\u51fd\u6570\u4e2d\u5199\u4e09\u884c\u4ee3\u7801\uff1a<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/2.jpg\"><img loading=\"lazy\" title=\"2\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"2\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/2_thumb.jpg\" width=\"644\" height=\"424\"><\/a><\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/3.jpg\"><img loading=\"lazy\" title=\"3\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"3\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/3_thumb.jpg\" width=\"568\" height=\"156\"><\/a><\/p>\n<p align=\"center\"><a name=\"_Ref350268230\"><\/a><span style=\"font-size: small\">\u56fe<\/span> <span style=\"font-size: small\">1\u20112 CVI\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u679c<\/span><\/p>\n<p>\u4e00\u65e6\u63d0\u53caNI\u516c\u53f8\uff0c\u5927\u5bb6\u53ef\u80fd\u6700\u5148\u8054\u60f3\u5230\u7684\u662fNI\u516c\u53f8\u63a8\u51fa\u7684LabVIEW\u8f6f\u4ef6\u3002LabWindows\/CVI\u4e0eLabVIEW\u76f8\u6bd4\uff0c\u4e3b\u8981\u5e94\u7528\u5728\u5404\u79cd\u6d4b\u8bd5\u3001\u63a7\u5236\u3001\u6545\u969c\u5206\u6790\u53ca\u4fe1\u606f\u5904\u7406\u8f6f\u4ef6\u7684\u5f00\u53d1\u4e2d\uff0c\u5176\u66f4\u9002\u5408\u4e2d\u3001\u5927\u578b\u590d\u6742\u6d4b\u8bd5\u8f6f\u4ef6\u7684\u5f00\u53d1\uff0c\u662f\u5de5\u7a0b\u6280\u672f\u4eba\u5458\u5f00\u53d1\u5efa\u7acb\u76d1\u6d4b\u7cfb\u7edf\u3001\u81ea\u52a8\u6d4b\u91cf\u73af\u5883\u3001\u6570\u636e\u91c7\u96c6\u7cfb\u7edf\u3001\u8fc7\u7a0b\u76d1\u6d4b\u7cfb\u7edf\u7684\u9996\u9009\u5de5\u5177\u3002<\/p>\n<h2><span id=\"nbsp_112_LabWindowsCVI\"><strong>&nbsp; 1.1.2 LabWindows\/CVI\u5b89\u88c5<\/strong><\/span><\/h2>\n<p>\u8981\u5b89\u88c5CVI\uff0c\u53ea\u9700\u8981\u6839\u636eCVI\u5b89\u88c5\u5305\u91cc\u7684\u201cRelease Notes.pdf\u201d\u548c\u201c\u8bf4\u660e.txt\u201d\u4e00\u6b65\u6b65\u5b8c\u6210\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>\u5b89\u88c5\u5b8cCVI\u540e\uff0c\u6211\u4eec\u6709\u5fc5\u8981\u770b\u4e00\u4e0b\uff0c\u5b89\u88c5\u7a0b\u5e8f\u5728\u6211\u4eec\u8ba1\u7b97\u673a\u7684\u78c1\u76d8\u4e2d\u4e22\u4e0b\u4e86\u54ea\u4e9b\u4e1c\u897f\u3002<\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u8868 1\u20111 LabWindows\/CVI\u4e3b\u8981\u76ee\u5f55\u53ca\u5176\u5185\u5bb9<\/span><\/p>\n<p align=\"center\">\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"121\">\u76ee\u5f55\u540d<\/td>\n<td valign=\"top\" width=\"425\">\u8bf4\u660e<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\bin<\/td>\n<td valign=\"top\" width=\"425\">LabWindows\uff0fCVI\u7684\u5e93\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\extlib<\/td>\n<td valign=\"top\" width=\"425\">\u5916\u90e8\u7f16\u8bd1\u5668\u4f7f\u7528\u7684CVI\u5e93\u6587\u4ef6\uff08\u53ea\u5728Windows95\/NT\u4e2d\u4f7f\u7528\uff09<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\fonts<\/td>\n<td valign=\"top\" width=\"425\">\u5b57\u4f53\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\include<\/td>\n<td valign=\"top\" width=\"425\">\u5934\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\instr<\/td>\n<td valign=\"top\" width=\"425\">\u4eea\u5668\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\samples<\/td>\n<td valign=\"top\" width=\"425\">CVI\u5f00\u53d1\u4f8b\u7a0b<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\sdk<\/td>\n<td valign=\"top\" width=\"425\">SDK\u5e93\u6587\u4ef6\uff08\u53ea\u5728Windows95\/NT\u4e2d\u4f7f\u7528\uff09<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\toolslib<\/td>\n<td valign=\"top\" width=\"425\">\u5f00\u53d1\u5de5\u5177\u5305\u548c\u5e93\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\tutorial<\/td>\n<td valign=\"top\" width=\"425\">\u4f7f\u7528\u624b\u518c<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\vxd<\/td>\n<td valign=\"top\" width=\"425\">VXD\u5b9e\u4f8b\u5f00\u53d1\u6a21\u677f<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"121\">\\wizard<\/td>\n<td valign=\"top\" width=\"425\">CVI\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u5411\u5bfc\u7a0b\u5e8f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4e2d\uff0csamples\u6587\u4ef6\u5939\u4e2d\u7684\u4f8b\u7a0b\u53ef\u4ee5\u4f7f\u521d\u5b66\u8005\u8fc5\u901f\u638c\u63e1CVI\u7f16\u7a0b\u5f00\u53d1\u57fa\u672c\u6b65\u9aa4\u3002bin\u6587\u4ef6\u5939\u4e0b\u7684cvi.chm(\u4e5f\u53ef\u4ee5\u901a\u8fc7CVI\u5f00\u53d1\u73af\u5883\u4e2d\u6309F1\u6253\u5f00)\u662f\u5b66\u4e60CVI\u4e4b\u8def\u5fc5\u4e0d\u53ef\u5c11\u7684\u53c2\u8003\u6587\u6863\u3002<\/p>\n<h1><span id=\"12\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">1.2 \u5bfb\u6839\u95ee\u5e95\uff1a\u5f00\u53d1\u73af\u5883<\/span><\/span><\/h1>\n<h4><\/h4>\n<p>\u5bf9\u4e8e\u4e00\u95e8\u5b66\u95ee\u7684\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u6700\u5e0c\u671b\u641e\u61c2\u7684\u5c31\u662f\u5b66\u7684\u4e1c\u897f\u7684\u672c\u8d28\u662f\u4ec0\u4e48\u3002\u5728\u524d\u4e00\u5c0f\u8282\u4e2d\u6211\u4eec\u63d0\u5230\u4e86\uff0cLabWindows\/CVI\u662fNI\u63a8\u51fa\u7684\u4e00\u4e2a\u57fa\u4e8eC\u8bed\u8a00\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff0cIntegrated Development Environment\uff09\u3002\u90a3\u4e48\u4ec0\u4e48\u662f\u5f00\u53d1\u73af\u5883\u5462\uff0c\u5f00\u53d1\u73af\u5883\u662f\u600e\u4e48\u5de5\u4f5c\u7684\u5462\uff1f<\/p>\n<p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff0cIntegrated Development Environment \uff09\u662f\u7528\u4e8e\u63d0\u4f9b\u7a0b\u5e8f\u5f00\u53d1\u73af\u5883\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e00\u822c\u5305\u62ec\u4ee3\u7801\u7f16\u8f91\u5668\u3001\u7f16\u8bd1\u5668\u3001\u8c03\u8bd5\u5668\u548c\u56fe\u5f62\u7528\u6237\u754c\u9762\u5de5\u5177\u3002\u96c6\u6210\u4e86\u4ee3\u7801\u7f16\u5199\u529f\u80fd\u3001\u5206\u6790\u529f\u80fd\u3001\u7f16\u8bd1\u529f\u80fd\u3001\u8c03\u8bd5\u529f\u80fd\u7b49\u4e00\u4f53\u5316\u7684\u5f00\u53d1\u8f6f\u4ef6\u670d\u52a1\u5957\u3002\u6240\u6709\u5177\u5907\u8fd9\u4e00\u7279\u6027\u7684\u8f6f\u4ef6\u6216\u8005\u8f6f\u4ef6\u5957\uff08\u7ec4\uff09\u90fd\u53ef\u4ee5\u53eb\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3002\u5982\u5fae\u8f6f\u7684Visual Studio\u7cfb\u5217\uff0cBorland\u7684C++ Builder\u7cfb\u5217\u7b49\u3002<\/p>\n<p>\u4f46\u6211\u4eec\u81ea\u4ece\u5b66\u4e60C\u8bed\u8a00\u5f00\u59cb\u5c31\u4e0e\u96c6\u6210\u5f00\u53d1\u73af\u5883\u5efa\u7acb\u4e86\u4e0d\u89e3\u4e4b\u7f18\u3002\u4f3c\u4e4e\u5728\u6211\u4eec\u5fc3\u4e2d\uff0cC\u8bed\u8a00\u5c31\u662fVC\/VS\u3001VC\/VS\u5c31\u662fC\u8bed\u8a00\u3001VC\/VS\u5c31\u662f\u7f16\u8bd1\u5668\u3001\u7f16\u8bd1\u5668\u5c31\u662fVC\/VS\u3002\u867d\u7136\u4e0d\u53ef\u5426\u8ba4\u7684\u662f\uff0cIDE\u7684\u51fa\u73b0\u5927\u5927\u7684\u964d\u4f4e\u4e86\u8f6f\u4ef6\u5f00\u53d1\u7684\u95e8\u69db\uff0c\u66fe\u7ecf\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u5165\u95e8\uff0c\u4f46IDE\u8fc7\u4e8e\u53cb\u597d\u7684\u754c\u9762\u8ba9\u4eba\u65e0\u9700\u601d\u8003\u7a0b\u5e8f\u7f16\u8bd1\u3001\u8fd0\u884c\u7684\u539f\u7406\u5373\u53ef\u5f00\u59cb\u5199\u81ea\u5df1\u7684\u7b2c\u4e00\u4e2aHelloWorld\u7a0b\u5e8f\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u6211\u4eec\u6709\u5fc5\u8981\u4e86\u89e3IDE\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u6709\u5fc5\u8981\u4e86\u89e3IDE\u662f\u600e\u4e48\u901a\u8fc7\u547d\u4ee4\u884c\u53bb\u5de5\u4f5c\u7684\u3002\u547d\u4ee4\u884c\uff0c\u770b\u4f3c\u7b80\u964b\uff0c\u5374\u80fd\u8ba9\u4eba\u4e13\u5fc3\u4e8e\u81ea\u5df1\u7684\u4e8b\u7269\uff0c\u5e76\u641e\u6e05\u695a\u4e00\u4e2a\u7a0b\u5e8f\u7684\u6765\u9f99\u53bb\u8109\u3002<\/p>\n<p>Keil\u4e0b\u7684\u547d\u4ee4\u884c\u5de5\u4f5c\u65b9\u5f0f\u5df2\u7ecf\u5728\u521b\u65b0\u4e2d\u5fc3\u7684\u300aSST\u5355\u7247\u673a\u5b9e\u8df5\u6559\u7a0b\u300b\u7684\u201c\u6c47\u7f16\u8bed\u8a00\u5de5\u5177\u94fe\u201d\u4e00\u8282\u4e2d\u6709\u4e86\u8be6\u7ec6\u7684\u4ecb\u7ecd\uff0c\u4e0b\u9762\u901a\u8fc7\u4e00\u4e2a\u5b9e\u4f8b\u4ecb\u7ecd\u6700\u5e38\u7528\u7684VC6.0\u7684\u547d\u4ee4\u884c\u5de5\u4f5c\u65b9\u5f0f\u3002<\/p>\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u5047\u8bbe\u4f60\u81f3\u5c11\u5df2\u7ecf\u7528VC\u5199\u8fc7C\u8bed\u8a00\uff0c\u7f16\u8bd1\u8fc7\u5de5\u7a0b\uff0c\u5e76\u5bf9Windows\u4e0b\u7684\u547d\u4ee4\u884c\u81f3\u5c11\u7565\u77e5\u4e00\u4e8c\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u73b0\u5728\u8fd8\u4e0d\u61c2\uff0c\u8d76\u7d27\u5229\u7528Google\u7b49\u4e00\u5207\u73b0\u4ee3\u5316\u7684\u5de5\u5177\u89e3\u9664\u81ea\u5df1\u7684\u7591\u60d1\u3002<\/p>\n<p><b>\u4f8b1<\/b> \u4f7f\u7528\u547d\u4ee4\u884c\u5b8c\u6210\u7528VC\u5bf9\u4e0b\u9762\u7b80\u5355\u7684C\u8bed\u8a00\u7a0b\u5e8f\u7684\u7f16\u8bd1\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/4.jpg\"><img loading=\"lazy\" title=\"4\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"4\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/4_thumb.jpg\" width=\"474\" height=\"37\"><\/a><\/p>\n<p><b>\u5b9e\u9a8c\u6b65\u9aa4<\/b><\/p>\n<p>\uff081\uff09 \u5c06\u8fd9\u6bb5\u4ee3\u7801\u4fdd\u5b58\u4e3a.c\u6587\u4ef6\uff08\u6b64\u5904\u4fdd\u5b58\u4e3amain.c\uff09\uff0c\u5e76\u8bb2\u8fd9\u6bb5\u4ee3\u7801\u653e\u5728VC\u5b89\u88c5\u8def\u5f84\u4e0b\u7684\u201cVC98\\Bin\\\u201d\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n<p>\u542f\u52a8\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u5e76\u5c06\u5730\u5740\u4fee\u6539\u4e3a\u5f53\u524d\u5730\u5740<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/5.jpg\"><img loading=\"lazy\" title=\"5\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"5\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/5_thumb.jpg\" width=\"567\" height=\"124\"><\/a><\/p>\n<p>\uff082\uff09 \u6572\u5165cl.exe main.c\u547d\u4ee4\u6267\u884c\u7f16\u8bd1\u3002<br \/>\u6b64\u65f6\u53ef\u80fd\u4f1a\u5f39\u51fa\u7a97\u53e3\uff0c\u63d0\u793a\u7f3a\u5c11\u6587\u4ef6\u201cmspdb60.dll\u201d\uff0c\u7f16\u8bd1\u5931\u8d25\u3002\u6bd5\u7adf\u5f53\u524d\u7684\u547d\u4ee4\u884c\u7a97\u53e3\u6ca1\u6709\u6807\u51c6VC\u7684\u73af\u5883\u53d8\u91cf\uff0c\u6240\u4ee5\u7f16\u8bd1\u7a0b\u5e8fcl.exe\u65e0\u6cd5\u4ece\u5f53\u524d\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u627e\u5230mspdb60.dll\u3002<\/p>\n<p>\uff083\uff09 \u5728VC\u5b89\u88c5\u8def\u5f84\u7684\u201cCommon\\MSDev98\\Bin\u201d\u76ee\u5f55\u4e2d\u627e\u5230\u6b64DLL\u5e76\u590d\u5236\u5230\u201cVC98\\Bin\u201d\u6587\u4ef6\u5939\u4e0b\u4e4b\u540e\uff0c\u6309\u952e\u76d8\u65b9\u5411\u952e\u2191\u91cd\u65b0\u8fd0\u884ccl.exe main.c\u3002\u6b64\u65f6\u4f1a\u63d0\u793a\u627e\u4e0d\u5230stdio.h\u6587\u4ef6\u3002\u5728VC\u5b89\u88c5\u8def\u5f84\u7684\u201cVC98\\Include\u201d\u76ee\u5f55\u4e2d\u627e\u5230stdio.h\u4e4b\u540e\uff0c\u590d\u5236\u5230\u201cVC98\\Bin\u201d\u6587\u4ef6\u5939\u4e0b\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/6.jpg\"><img loading=\"lazy\" title=\"6\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"6\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/6_thumb.jpg\" width=\"562\" height=\"188\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20113 \u547d\u4ee4\u884c\u7f16\u8bd1main.c-\u63d0\u793a\u627e\u4e0d\u5230stdio.h<\/span><\/p>\n<p>\uff084\uff09 \u540c\u7406\uff0c\u7a0b\u5e8f\u4f1a\u4f9d\u6b21\u63d0\u793a\u627e\u4e0d\u5230\u6587\u4ef6LIBC.lib\u3001OLDNAMES.lib\u3001kernel32.lib\u3002\u8fd9\u4e9b\u5e93\u6587\u4ef6\u90fd\u53ef\u4ee5\u5728VC\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684\u201cVC98\\Lib\u201d\u8def\u5f84\u4e2d\u627e\u5230\u3002<\/p>\n<p>\uff085\uff09 \u518d\u6b21\u8fd0\u884c\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7f16\u8bd1\u6210\u529f\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/7.jpg\"><img loading=\"lazy\" title=\"7\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"7\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/7_thumb.jpg\" width=\"481\" height=\"46\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20114 \u547d\u4ee4\u884c\u7f16\u8bd1main.c-\u7f16\u8bd1\u6210\u529f<\/span><\/p>\n<p>\uff086\uff09 \u5728\u547d\u4ee4\u884c\u4e2d\u6572\u5165main.exe\u3002\u201cHello,world\uff01\u201d\u662f\u5426\u663e\u793a\u51fa\u6765\u4e86\u5462\uff1f<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/8.jpg\"><img loading=\"lazy\" title=\"8\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"8\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/8_thumb.jpg\" width=\"562\" height=\"411\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20115 \u8fd0\u884cmain.exe<\/span><\/p>\n<p>\u81f3\u6b64\uff0c\u806a\u660e\u7684\u4f60\u5e94\u8be5\u5df2\u7ecf\u77e5\u9053VC\u7684IDE\u662f\u5982\u4f55\u4f9d\u8d56\u4e8e\u5b89\u88c5\u5305\u5185\u7684\u7f16\u8bd1\u5668CL.exe\u7a0b\u5e8f\u5b9e\u73b0\u7f16\u8bd1\u7684\u529f\u80fd\u4e86\u5427\u3002<\/p>\n<p>\u672c\u5c0f\u8282\u65e8\u5728\u901a\u8fc7\u5bf9\u5927\u5bb6\u719f\u6089\u7684VC\u7684IDE\u6539\u7528\u547d\u4ee4\u884c\u8fdb\u884c\u7f16\u8bd1\u7684\u65b9\u5f0f\u5f15\u5bfc\u5927\u5bb6\u63a5\u89e6\u4e00\u4e2a\u65b0\u7684\u4e8b\u7269\u9996\u5148\u5e94\u8be5\u641e\u6e05\u695a\u5176\u672c\u8d28\u7684\u601d\u60f3\uff0c\u517b\u6210\u641e\u5b66\u95ee\u65f6\u559c\u6b22\u5228\u6839\u95ee\u5e95\u7684\u597d\u4e60\u60ef\u3002\u9664\u4e86\u7f16\u8bd1\u5668\u7684\u529f\u80fd\u5916\uff0c\u96c6\u6210\u5f00\u53d1\u73af\u5883IDE\u5e94\u8be5\u8fd8\u5e26\u6709\u8c03\u8bd5\u5668\u7684\u529f\u80fd\u3002\u9650\u4e8e\u7bc7\u5e45\uff0c\u6b64\u5904\u4e0d\u518d\u591a\u8fc7\u591a\u63a2\u7d22\uff0c\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u7814\u7a76\u3002\u82e5\u5bf9IDE\u611f\u5174\u8da3\uff0c\u5927\u5bb6\u8fd8\u53ef\u4ee5\u8c03\u7528\u73b0\u6709\u7684\u7f16\u8bd1\u5668\u7a0b\u5e8f\u3001\u8c03\u8bd5\u5668\u7a0b\u5e8f\u7f16\u5199\u81ea\u5df1\u7684IDE\uff01<\/p>\n<h4><\/h4>\n<h1><span id=\"13_C\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">1.3 C\u8bed\u8a00\u7684\u9b45\u529b<\/span><\/span><\/h1>\n<h4><\/h4>\n<p>\u662f\u4e0d\u662f\u5728\u5927\u5bb6\u7684\u5370\u8c61\u91cc\uff0cC\u8bed\u8a00\u53ea\u80fd\u505a\u90a3\u79cdchar\u540e\u9762\u8ddf\u51e0\u4e2a*\uff0c\u6545\u610f\u628a\u4eba\u7ed5\u6655\u4e4b\u540e\u8fd0\u884c\u7684\u65f6\u5019\u8fd8\u4f1a\u5f39\u51fa\u4e00\u4e2a\u9ed1\u4e4e\u4e4e\u7684\u7a97\u53e3\u7684\u7a0b\u5e8f\uff1f<\/p>\n<p>\u662f\u4e0d\u662f\u5728\u5927\u5bb6\u7684\u5370\u8c61\u91cc\uff0cC\u8bed\u8a00\u4e0d\u80fd\u8bbf\u95ee\u7f51\u7edc\u3001\u4e0d\u80fd\u64ad\u653e\u58f0\u97f3\u3001\u4e0d\u80fd\u663e\u793a\u56fe\u7247\u3001\u4e0d\u80fd\u8ddf\u786c\u4ef6\u8bbe\u5907\u6253\u4ea4\u9053\u3001\u4e0d\u80fd\u505aGUI\uff0c\u5373\u4fbf\u505a\u51fa\u6765GUI\u4e5f\u4e11\u7684\u5f88\u6216\u8005\u6162\u7684\u5f88\uff0c\u66f4\u4e0d\u80fd\u641e\u591a\u7ebf\u7a0b\u4e4b\u7c7b\u7684\u9ad8\u7aef\u4e00\u70b9\u7684\u73a9\u610f\u513f\uff1f<\/p>\n<p>\u662f\u4e0d\u662f\u5728\u5927\u5bb6\u7684\u5370\u8c61\u91cc\uff0c\u4e3a\u4e86\u4f7f\u7528\u4e00\u4e2a\u4e32\u53e3\u5e93\uff0c\u6211\u4eec\u5c31\u5fc5\u987b\u4e22\u6389C\u8bed\u8a00\u7136\u540e\u8ba9C++\u751a\u81f3MFC\u95ea\u4eae\u767b\u573a\uff1f<\/p>\n<p>\u662f\u4e0d\u662f\u5728\u5927\u5bb6\u7684\u5370\u8c61\u91cc\uff0cC\u8bed\u8a00\u80fd\u505a\u7684\u4e8b\u60c5\uff0cC++\u3001Java\u3001C#\u6216\u8005Python\u7b49\u7b49\u7f16\u7a0b\u8bed\u8a00\u901a\u901a\u90fd\u80fd\u505a\u5230\uff1f\u800c\u8fd9\u4e9b\u7f16\u7a0b\u8bed\u8a00\u80fd\u505a\u5230\u7684\u4e8b\u60c5C\u8bed\u8a00\u5c31\u5f88\u96be\u505a\u5230\uff1f<\/p>\n<p>\u5982\u679c\u4e00\u5b9a\u8981\u8fd9\u4e48\u8ba4\u4e3a\uff0c\u90a3\u5c31\u5927\u9519\u7279\u9519\u4e86\u3002\u5373\u4fbf\u5728\u7f16\u7a0b\u8bed\u8a00\u66f4\u65b0\u6362\u4ee3\u5982\u6b64\u4e4b\u5feb\u7684\u4eca\u5929\uff0c\u6211\u4eec\u4e5f\u5f88\u96be\u627e\u51fa\u4e00\u4e2a\u667a\u80fd\u8bbe\u5907\u6216\u8005\u5546\u4e1a\u8f6f\u4ef6\u5728\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\u672a\u66fe\u4f7f\u7528C\u8bed\u8a00\u8fc7\u3002<\/p>\n<p>\u501f\u52a9CVI\u4ee5\u53caCVI\u81ea\u5e26\u7684\u4e30\u5bcc\u7684\u51fd\u6570\u5e93\uff0cC\u8bed\u8a00\u4e0d\u4ec5\u80fd\u591f\u505aC++\u3001C#\u3001Java\u7b49\u53ef\u4ee5\u505a\u7684\u4e8b\uff0c\u6709\u65f6\u8fd8\u53ef\u4ee5\u505a\u7684\u66f4\u5feb\u66f4\u597d\uff0c\u751a\u81f3\u8fd8\u53ef\u4ee5\u505a\u8fd9\u4e9b\u7f16\u7a0b\u8bed\u8a00\u6240\u4e0d\u80fd\u505a\u7684\u4e8b\u3002<\/p>\n<p>\u6211\u4eec\u5b66\u6821\uff08\u534e\u4e2d\u79d1\u6280\u5927\u5b66\uff09\u7684\u8bba\u575b\u201c\u767d\u4e91\u9ec4\u9e64\u201d\u7684\u670d\u52a1\u5668\u7aef\u7a0b\u5e8f\u5c31\u662f\u91c7\u7528C\u8bed\u8a00\u5f00\u53d1\u7684\uff0c\u6ca1\u6709\u4f7f\u7528\u73b0\u6210\u7684Web\u670d\u52a1\u7a0b\u5e8f\u6216\u8005\u6570\u636e\u5e93\u7ba1\u7406\u7a0b\u5e8f\uff08\u5f53\u65f6\u6ca1\u4ec0\u4e48IIS\u4e5f\u6ca1MySQL\u53ef\u4ee5\u7528\uff09\uff0c\u56e0\u6b64\u6570\u636e\u5e93\u901a\u8fc7\u4e0d\u65ad\u5bf9\u6587\u4ef6\u8fdb\u884cfread\u6216\u8005fwrite\u5b9e\u73b0\u7684\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u542c\u8bf4C\u8bed\u8a00\u8fd8\u53ef\u4ee5\u7528\u6765\u5f00\u53d1\u670d\u52a1\u5668\u7a0b\u5e8f\uff0c\u5927\u5bb6\u80af\u5b9a\u4e0d\u6562\u76f8\u4fe1\u3002\u4e0d\u8fc7\u4e0b\u9762\u6211\u4eec\u5c06\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u4f8b\u6765\u5411\u5927\u5bb6\u8bc1\u660e\uff0cC\u8bed\u8a00\u771f\u7684\u53ef\u4ee5\u5199\u670d\u52a1\u5668\u7aef\u7684\u7a0b\u5e8f\uff0c\u800c\u4e14\u7b80\u5355\u7684\u8d85\u4e4e\u60f3\u8c61\u3002<\/p>\n<p><b>\u4f8b2<\/b> \u4f7f\u7528C\u8bed\u8a00\u5b8c\u6210\u7b80\u5355\u7684Web\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002<\/p>\n<p><b>\u5b9e\u9a8c\u6b65\u9aa4<\/b><\/p>\n<p>\uff081\uff09 \u82e5\u60a8\u7684\u8ba1\u7b97\u673a\u5c1a\u672a\u5b89\u88c5Apache\uff0c\u8bf7\u5148\u5b89\u88c5Apache\u670d\u52a1\u5668\u3002\u82e5\u5df2\u5b89\u88c5Apache\uff0c\u8bf7\u786e\u4fddApache\u7a0b\u5e8f\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<p>\uff082\uff09 \u5728VC6.0\u4e2d\u65b0\u5efaC\u8bed\u8a00\u5de5\u7a0b\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/9.jpg\"><img loading=\"lazy\" title=\"9\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"9\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/9_thumb.jpg\" width=\"551\" height=\"204\"><\/a><\/p>\n<p>\uff083\uff09 \u7f16\u8bd1\uff0c\u5e76\u5c06\u7f16\u8bd1\u540e\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6main.exe\u590d\u5236\u5230Apache\u7a0b\u5e8f\u7684cgi-bin\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\uff084\uff09 \u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u4e2d\u8f93\u5165http:\/\/localhost\/cgi-bin\/main.exe?HelloWorld<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/10.jpg\"><img loading=\"lazy\" title=\"10\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"10\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/10_thumb.jpg\" width=\"559\" height=\"302\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20116 \u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u7f16\u8bd1\u7684\u7a0b\u5e8f\u5e76\u4f20\u5165HelloWorld\u53c2\u6570<\/span><\/p>\n<p>\u662f\u4e0d\u662f\u89c1\u8bc6\u5230\u4e86C\u8bed\u8a00\u5728\u7f51\u7edc\u5f00\u53d1\u4e2d\u201c\u521d\u89c1\u7aef\u502a\u201d\u7684\u4e00\u9762\uff1f\u4e0a\u8ff0\u4f8b\u5b50\u5176\u5b9e\u662fCGI\uff08Common Gateway Interface\uff0c\u901a\u7528\u7f51\u5173\u63a5\u53e3\uff09\u7684\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u4f8b\u5b50\u3002\u7a0d\u5fae\u8be6\u7ec6\u4e00\u4e9b\u7684\u4f8b\u5b50\u5c06\u4f1a\u5728\u7b2c6 \u7ae0\u201c\u7efc\u5408\u5b9e\u4f8b\uff1a\u8fdc\u7a0b\u73af\u5883\u53c2\u6570\u68c0\u6d4b\u7cfb\u7edf\u201d\u4e2d\u89c1\u5230\u3002\u5982\u679c\u4f60\u5bf9C\u8bed\u8a00\u5728\u5f00\u53d1CGI\u7a0b\u5e8f\u611f\u5174\u8da3\uff0c\u4e5f\u53ef\u4ee5\u81ea\u884c\u67e5\u627e\u8d44\u6599\uff0c\u7f16\u5199\u4e00\u4e2a\u66f4\u5177\u5b9e\u9645\u4ef7\u503c\u7684\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<h1><span id=\"14_CVI\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">1.4 CVI\u5f00\u53d1\u73af\u5883\u521d\u63a5\u89e6<\/span><\/span><\/h1>\n<h4><\/h4>\n<h2><span id=\"nbsp_141_Helloworld\"><strong>&nbsp; 1.4.1 \u4e09\u6b65\u521b\u5efa\u81ea\u5df1\u7684Hello\uff0cworld<\/strong><\/span><\/h2>\n<p>\u4e0d\u7ba1\u662f\u5b66\u4e60\u4e00\u95e8\u65b0\u7684\u8bed\u8a00\uff0c\u8fd8\u662f\u5b66\u4e60\u4e00\u4e2a\u65b0\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u5927\u5bb6\u7684\u7b2c\u4e00\u4e2a\u7a0b\u5e8f\u90fd\u662fHello world\u3002\u6240\u4ee5\uff0c\u4e0b\u9762\u6211\u4eec\u4e00\u6b65\u4e00\u6b65\u6765\uff0c\u5b9e\u73b0\u6211\u4eec\u7684Hello\uff0cworld\uff01<\/p>\n<p>1. \u5efa\u7acb\/\u4fdd\u5b58\u5de5\u7a0b<\/p>\n<p>\u8fd0\u884cLabWindows\/CVI\uff0c\u521d\u59cb\u72b6\u6001\u7684CVI\u4f1a\u81ea\u52a8\u4e3a\u6211\u4eec\u5efa\u597d\u4e00\u4e2a\u65b0\u7684\u5de5\u4f5c\u7a7a\u95f4Untitled.cws\u4ee5\u53ca\u65b0\u7684\u5de5\u7a0bUntitled\u3002.cws\u6587\u4ef6\u662fCVI\u5de5\u4f5c\u7a7a\u95f4\u6587\u4ef6\uff08CVI WorkSpace\uff09\uff0c\u800c.prj\uff08project\uff09\u662fCVI\u7684\u5de5\u7a0b\u6587\u4ef6\u3002\u70b9\u51fb\u83dc\u5355<u>F<\/u>ile-<u>N<\/u>ew-<u>S<\/u>ource(*.c)\uff0c\u65b0\u5efa\u4e00\u4e2aC\u6587\u4ef6\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/6373e9e64d8d39e837110amp.jpg\"><img loading=\"lazy\" title=\"6373e9e64d8d39e837110&amp;amp\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"6373e9e64d8d39e837110&amp;amp\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/6373e9e64d8d39e837110amp_thumb.jpg\" width=\"559\" height=\"302\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20117 \u6253\u5f00CVI\u5e76\u65b0\u5efaC\u6587\u4ef6<\/span><\/p>\n<p>2. \u8f93\u5165\u4ee3\u7801\u4fdd\u5b58\u4ee3\u7801\u6587\u4ef6<\/p>\n<p>\u5728\u65b0\u5efa\u7684C\u6587\u4ef6\u4e2d\u8f93\u5165\u4e0b\u5217\u4ee3\u7801\uff0c\u70b9\u51fb\u83dc\u5355<u>F<\/u>ile-<u>S<\/u>ave Untitled1.c\uff08\u6216\u8005\u6309Ctrl+S\u3001\u6216\u8005\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u4fdd\u5b58\u6309\u94ae\uff09\uff0c\u5c06\u65b0\u5efa\u7684C\u6587\u4ef6\u4fdd\u5b58\u5728\u81ea\u5df1\u60f3\u8981\u4fdd\u5b58\u7684\u4f4d\u7f6e\u4e2d\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/11.jpg\"><img loading=\"lazy\" title=\"11\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"11\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/11_thumb.jpg\" width=\"563\" height=\"87\"><\/a><\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/12.jpg\"><img loading=\"lazy\" title=\"12\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"12\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/12_thumb.jpg\" width=\"568\" height=\"111\"><\/a><\/p>\n<p align=\"center\">\n<p>3. \u7f16\u8bd1\u8fd0\u884c<\/p>\n<p>\u6b64\u65f6\u82e5\u70b9\u51fb\u83dc\u5355<u>R<\/u>un-<u>D<\/u>ebug Project\uff08\u6216\u8005\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u7eff\u8272\u4e09\u89d2\u5f62\u6309\u94ae\uff09\uff0c\u5219CVI\u4f1a\u5f39\u51fa\u5982\u4e0b\u6240\u793a\u63d0\u793a\u3002\u8bf4\u660e\u521a\u521a\u4fdd\u5b58\u7684C\u8bed\u8a00\u6587\u4ef6\u5fc5\u987b\u6dfb\u52a0\u5230\u4e00\u4e2a\u5de5\u7a0b\u4e2d\u624d\u80fd\u7ee7\u7eed\u7f16\u8bd1\u8fc7\u7a0b\u3002\u6b64\u65f6\u70b9\u51fbYes\u4f1a\u81ea\u52a8\u5c06C\u6587\u4ef6\u6dfb\u52a0\u5230\u5de5\u7a0b\u4e2d\uff0c\u82e5\u70b9\u51fbCancel\u4e5f\u53ef\u4ee5\u53f3\u51fbUntitled\u5de5\u7a0b\u4e4b\u540e\u9009\u62e9Add Fi<u>l<\/u>e\u2026\u6dfb\u52a0C\u6587\u4ef6\u5230\u5de5\u7a0b\u4e2d\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/13.jpg\"><img loading=\"lazy\" title=\"13\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"13\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/13_thumb.jpg\" width=\"393\" height=\"137\"><\/a><\/p>\n<p>\u7531\u4e8e\u6211\u4eec\u53ea\u4fdd\u5b58\u4e86C\u6587\u4ef6\uff0c\u5e76\u672a\u4fdd\u5b58\u5de5\u7a0b.prj\u6587\u4ef6\uff0c\u6240\u4ee5\u53f3\u51fbUntitled\u5de5\u7a0b\u4e4b\u540e\u9009\u62e9<u>S<\/u>ave\uff0c\u5c06\u5de5\u7a0b\u6587\u4ef6\u4fdd\u5b58\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/14.jpg\"><img loading=\"lazy\" title=\"14\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"14\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/14_thumb.jpg\" width=\"229\" height=\"146\"><\/a><\/p>\n<p>\u6b64\u65f6\u82e5\u518d\u70b9\u51fb\u83dc\u5355<u>R<\/u>un-<u>D<\/u>ebug Project\uff08\u6216\u8005\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u7eff\u8272\u4e09\u89d2\u5f62\u6309\u94ae\uff09\uff0cHello,world\u6210\u529f\u8fd0\u884c\uff01<\/p>\n<p>\u603b\u7ed3\u8d77\u6765\uff0c\u5b8c\u6210\u4e00\u4e2aHelloWorld\u7a0b\u5e8f\u53ea\u9700\u8981\u201c\u5efa\u7acb\/\u4fdd\u5b58\u5de5\u7a0b\u201d-\u201c\u8f93\u5165\u4ee3\u7801\u4fdd\u5b58\u4ee3\u7801\u6587\u4ef6\u201d-\u201c\u7f16\u8bd1\u8fd0\u884c\u201d\u7b80\u5355\u7684\u4e09\u6b65\u3002<\/p>\n<p>\u5927\u5bb6\u82e5\u611f\u5174\u8da3\uff0c\u4e5f\u53ef\u4ee5\u5c06\u4ee5\u524d\u5728VC\u4e2d\u5199\u7684C\u8bed\u8a00\u7a0b\u5e8f\u4ee3\u7801\u590d\u5236\u5230CVI\u4e2d\uff0c\u770b\u770b\u5728CVI\u4e2d\u662f\u5426\u4e5f\u80fd\u6b63\u786e\u7684\u8fd0\u884c\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/15.jpg\"><img loading=\"lazy\" title=\"15\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"15\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/15_thumb.jpg\" width=\"282\" height=\"119\"><\/a><\/p>\n<p>\u5176\u5b9e\uff0cCVI\u662f\u652f\u6301ANSI C\uff08American National Standards Institute\uff0c\u7f8e\u56fd\u56fd\u5bb6\u6807\u51c6\u534f\u4f1a\uff09\u7684\uff0c\u53ea\u8981\u662fANSI C\u7684\u4ee3\u7801\uff0c\u5728CVI\u4e2d\u4e00\u6837\u53ef\u4ee5\u8fd0\u884c\u3002<\/p>\n<h2><span id=\"nbsp_142_samples\"><strong>&nbsp; 1.4.2 \u9605\u8bfb\u5b98\u65b9\u7684samples<\/strong><\/span><\/h2>\n<p>\u5b66\u4e60\u6216\u63d0\u5347\u4e00\u95e8\u7f16\u7a0b\u8bed\u8a00\u7684\u6c34\u5e73\uff0c\u6700\u5feb\u901f\u6709\u6548\u7684\u662f\u9605\u8bfb\u5927\u91cf\u4f18\u8d28\u7684\u4ee3\u7801\u3002NI\u5728CVI\u5b89\u88c5\u76ee\u5f55\u7684samples\u4e0b\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u53c2\u8003\u4f8b\u7a0b\u3002\u5927\u5bb6\u53ef\u4ee5\u5c06samples\u4f8b\u7a0b\u4e2d\u7684.cws\u6587\u4ef6\u62d6\u52a8\u5230CVI\u4e2d\u6253\u5f00.cws\u6587\u4ef6\uff0c\u8fd0\u884c\u5e76\u67e5\u770b\u5b98\u65b9\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u521d\u6b21\u63a5\u89e6CVI\u7684\u540c\u5b66\u53ef\u80fd\u5bf9CVI\u7684\u201c\u5de5\u4f5c\u7a7a\u95f4\u201d\u4e0e\u201c\u5de5\u7a0b\u201d\u5e76\u4e0d\u719f\u6089\u3002\u4e00\u4e2a\u5de5\u4f5c\u7a7a\u95f4\u4e2d\u53ef\u80fd\u5b58\u5728\u4e00\u4e2a\u6216\u591a\u4e2a\u5de5\u7a0b\u3002<\/p>\n<p>CVI\u6bcf\u6b21\u7f16\u8bd1\u7684\u65f6\u5019\u4e00\u822c\u53ea\u5bf9\u201c\u5f53\u524d\u201d\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\u5f53\u524d\u5de5\u7a0b\u4e0d\u662f\u6307\u7684\u5f53\u524d\u6253\u5f00\u7684\u6587\u4ef6\u6240\u5728\u7684\u5de5\u7a0b\uff0c\u800c\u662f\u88ab\u8bbe\u7f6e\u4e3a\u201cActive Project\u201d\u7684\u5de5\u7a0b\u3002\u8bbe\u7f6e\u4e00\u4e2a\u5de5\u7a0b\u4e3a\u5f53\u524d\u5de5\u7a0b\uff0c\u53ef\u4ee5\u901a\u8fc7\u53f3\u51fb\u5de5\u7a0b-Set Acti<u>v<\/u>e Project\u6765\u5b8c\u6210\uff0c\u88ab\u8bbe\u7f6e\u4e3a\u5f53\u524d\u5de5\u7a0b\u7684\u5de5\u7a0b\u540d\u4f1a\u88ab\u52a0\u7c97\u663e\u793a\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p align=\"center\"><a href=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/16.jpg\"><img loading=\"lazy\" title=\"16\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"16\" src=\"http:\/\/img.liuwenhao.ink\/img\/LabWindowsCVILabWindowsCVI_13EB\/16_thumb.jpg\" width=\"164\" height=\"290\"><\/a><\/p>\n<p align=\"center\"><span style=\"font-size: small\">\u56fe 1\u20118 \u88ab\u8bbe\u7f6e\u4e3a\u5f53\u524d\u5de5\u7a0b\u7684Rtfileio<\/span><\/p>\n<p>CVI\u4e5f\u53ef\u4ee5\u6279\u91cf\u7f16\u8bd1\uff0c\u5373\u540c\u65f6\u5bf9\u4e00\u4e2a\u5de5\u4f5c\u7a7a\u95f4\u4e0b\u7684\u591a\u4e2a\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u3002\u6279\u91cf\u7f16\u8bd1\u53ef\u4ee5\u901a\u8fc7\u83dc\u5355<u>B<\/u>uild-<u>B<\/u>atch Build\u2026\u6765\u5b9e\u73b0\u3002<\/p>\n<h1><span id=\"15\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1\">1.5 \u63a2\u7d22\u4e0e\u5b9e\u9a8c<\/span><\/span><\/h1>\n<h4><\/h4>\n<h2><span id=\"nbsp_151\"><strong>&nbsp; 1.5.1 \u5b9e\u9a8c<\/strong><\/span><\/h2>\n<p>\u5b89\u88c5CVI\u5f00\u53d1\u73af\u5883\uff0c\u5e76\u5b9e\u73b0\u7c7b\u4f3c\u56fe 1\u20112 CVI\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u679c\u6240\u793a\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8981\u6c42\u4ea7\u751f\u9ad8\u65af\u566a\u58f0\u6ce2\u5f62\u3002<\/p>\n<h2><span id=\"nbsp_152\"><strong>&nbsp; 1.5.2 \u63a2\u7d22<\/strong><\/span><\/h2>\n<p>\u901a\u8fc7\u67e5\u770bNI\u5e2e\u52a9\u6587\u6863\u6216\u67e5\u627e\u8d44\u6599\uff0c\u63a2\u7a76LabWindows\/CVI\u7684\u547d\u4ee4\u884c\u7f16\u8bd1\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.1 LabWindows\/CVI &nbsp; 1.1.1 LabWindows\/CVI\u6982\u8ff0 LabWindows\/CVI\u662f\u7f8e\u56fdNI\uff08National Instruments\uff09\u516c\u53f8\u5f00\u53d1\u7684\u9762\u5411\u8ba1\u7b97\u673a\u6d4b\u63a7\u9886\u57df\u7684\u865a\u62df\u4eea\u5668\u8f6f\u4ef6\u5f00\u53d1\u5e73\u53f0\uff0c\u53ef\u4ee5\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff08WindowsXP\/Vista\/7\u3001Mac OS&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":-615,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[21],"views":2451,"_links":{"self":[{"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/posts\/615"}],"collection":[{"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":3,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":5347,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/5347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liuwenhao.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}