Ⅰ 濡备綍鍦↙abVIEW涓缂栫▼瀹炵幇鏂囦欢钖岖殑閲嶅懡钖
銆銆纭浠: PXI/CompactPCI>>Controllers
闂棰:
銆銆鍦ㄦ枃浠禝/O镄勯溃𨱒夸腑锛屾病链夐吨锻藉悕鏂囦欢镄刅I銆傚湪LabVIEW涓鎴戝备綍瀹炵幇瀵规枃浠剁殑閲嶅懡钖嶏纻
瑙g瓟:
銆銆瀵逛簬Labview 8.x:
銆銆鏂规硶1: 浣跨敤鏂囦欢I/O镄勯溃𨱒夸腑镄勭Щ锷ㄥ姛鑳斤纴灏嗘枃浠朵粠涓涓浣岖疆绉诲埌鍙﹀栦竴涓浣岖疆銆备絾鏄锛屽皢鏂扮殑浣岖疆涔熻剧疆鎴愬师𨱒ョ殑浣岖疆浣嗘槸浣跨敤涓嶅悓镄勬枃浠跺悕銆
銆銆阃夋嫨Programming»File I/O»Advanced File Functions»Move.
銆銆灏哠ource path鎺ョ嚎绔杩炴帴鍒板綋鍓岖殑缁濆硅矾寰鍜岄渶瑕佹洿鏀圭殑鏂囦欢钖嶏纸涓句緥𨱒ヨ达细C:\Folder1\Folder2\...\Filename.ext in Windows锛
銆銆浣跨敤鏂囦欢I/O闱㈡澘涓镄凷trip 鍜孊uild Path灏嗗师𨱒ユ棫镄勬枃浠跺悕镟挎崲鎴愭柊镄勬枃浠跺悕銆傚皢鏂扮殑缁濆硅矾寰勮繛鎺ュ埌Move镄勫嚱鏁扮殑target path鎺ョ嚎绔銆傚叿浣揿彲浠ュ弬瑙佷笅闱㈢殑锲剧墖銆
銆銆娉ㄦ剰:杩炴帴鍒皌arget path鎺ョ嚎绔镄勮矾寰勪篃鍙浠ヤ笉钖岋纴濡傛灉浣犲笇链涘湪瀵规枃浠堕吨锻藉悕钖庝篃鏀瑰彉瀹幂殑璺寰勚
鏂规硶2锛氱浜屼釜鏂规硶鏄鍒涘缓涓涓鏂扮殑鏂囦欢锛屼娇鐢ㄥ笇链涚殑鏂囦欢钖嶅拰璺寰勚傜劧钖庡皢鏂囦欢镄勫唴瀹逛粠镞х殑鏂囦欢𨰾峰埌鏂扮殑鏂囦欢涓锛屽啀灏嗘棫镄勬枃浠跺垹闄ゃ
銆銆浣跨敤鏂囦欢I/O闱㈡澘涓镄凷trip 鍜孊uild Path灏嗗师链夋枃浠舵敼涓哄笇链涚殑钖嶅瓧銆傚彲浠ヤ娇鐢ㄦ枃浠 I/O闱㈡澘涓婇溃镄凮pen/Create/Replace File鍑芥暟銆
銆銆鍏抽棴鏂板垱寤虹殑鏂囦欢銆
銆銆浣跨敤Programming» File I/O» Advanced File Functions» Copy闱㈡澘涓婄殑 Copy鍑芥暟灏嗘枃链鍐呭瑰嶅埗鍒版柊镄勬枃浠躲傚湪source path鎺ョ嚎绔杩炴帴镞х殑鏂囦欢锛屽皢target鎺ョ嚎绔杩炴帴鍒版柊鏂囦欢銆侰opy 鍑芥暟镄刼verwrite?鎺ョ嚎绔闇瑕佽繛鎺ヤ竴涓鐪熺殑甯冨皵甯搁噺銆傚傛灉鏂囦欢镄勫悕瀛楀拰宸茬粡瀛桦湪镄勬棫鏂囦欢镄勫悕瀛楃浉钖岋纴闾d箞杩椤皢浣跨▼搴忚嗙洊宸叉湁镄勬枃浠讹纴钥屼笉鏄灏嗗嶅埗镄勫唴瀹规坊锷犲埌铡熸湁鍐呭圭殑钖庨溃銆傝﹁佷笅闱㈢殑锲剧墖銆
銆銆鍦–opy鍑芥暟钖庨溃鏀剧疆Delete鍑芥暟銆备缭璇佽繛鎺ョ殑鏄镞х殑鏂囦欢璺寰勶纴钥屼笉鏄澶嶅埗镄勬枃浠惰矾寰勚
銆銆
銆銆
銆銆瀵逛簬Labview 7.1:
鏂规硶1
銆銆阃夋嫨Programming»File I/O»Advanced File Functions»Move锛
銆銆灏嗗綋鍓嶆枃浠剁殑缁濆硅矾寰勫拰鏂囦欢钖嶅瓧杩炴帴鍒皊ource path銆傦纸渚嫔侰:\Folder1\Folder2\...\Filename.ext锛
銆銆灏嗘枃浠剁殑缁濆硅矾寰勫拰鏂囦欢钖嶈繛鎺ュ埌target path鎺ョ嚎绔锛堟牴鎹闇瑕佽矾寰勪篃鍙浠ヤ笉钖岋级銆
鏂规硶2锛
Method Two
銆銆浣跨敤Copy鍑芥暟锛岃ュ嚱鏁板拰Move鍑芥暟鍦ㄥ悓涓涓瀛愰溃𨱒夸笂銆.
銆銆鍜屼娇鐢∕ove鍑芥暟涓镙疯繛鎺ユ帴绾跨
銆銆鍦–opy鍑芥暟钖庨溃浣跨敤Delete鍑芥暟.
銆銆淇濊瘉杩炴帴镄勬槸镞х殑鏂囦欢璺寰勶纴钥屼笉鏄澶嶅埗镄勬枃浠惰矾寰.
銆銆娉ㄦ剰锛氩傛灉鍦ㄥ唴瀛树腑閲嶅懡钖崭竴涓猇I锛屽湪纭鐩树笂镄勬枃浠朵篃浼氲閲嶅懡钖嶏纴浣嗘槸鍦ㄥ唴瀛树腑镄刅I杩树细鏄镞х殑钖嶅瓧銆傚綋鍏抽棴璇VI镞讹纴灏嗕细鎻愮ず浠ユ棫镄勬枃浠跺悕淇濆瓨璇ユ枃浠躲傚傛灉娌℃湁阃夋嫨淇鏀圭殑钖嶅瓧锛岄偅涔埚皢链2浠藉坛链銆