1.labview ç®ä»ï¼
2.labviewåç1+2+3+4+.....+100çåçç¨åº
labview ç®ä»ï¼
LabVIEWæ¯ä¸ç§ç¨åºå¼åç¯å¢ï¼ç±ç¾å½å½å®¶ä»ªå¨ï¼NIï¼å ¬å¸ç å¶å¼åçï¼ç±»ä¼¼äºCåBASICå¼åç¯å¢ï¼ä½æ¯LabVIEWä¸å ¶ä»è®¡ç®æºè¯è¨çæ¾èåºå«æ¯ï¼å ¶ä»è®¡ç®æºè¯è¨é½æ¯éç¨åºäºææ¬çè¯è¨äº§ç代ç ï¼èLabVIEW使ç¨çæ¯å¾å½¢åç¼è¾è¯è¨Gç¼åç¨åºï¼äº§ççç¨åºæ¯æ¡å¾çå½¢å¼ã
ä¸ C å BASIC ä¸æ ·ï¼LabVIEW[1]ä¹æ¯éç¨çç¼ç¨ç³»ç»ï¼æä¸ä¸ªå®æä»»ä½ç¼ç¨ä»»å¡çåºå¤§å½æ°åºãLabVIEW[1]çå½æ°åºå æ¬æ°æ®ééãGPIBã串å£æ§å¶ãæ°æ®åæãæ°æ®æ¾ç¤ºåæ°æ®åå¨ï¼ççãLabVIEW[1]ä¹æä¼ ç»çç¨åºè°è¯å·¥å ·ï¼å¦è®¾ç½®æç¹ã以å¨ç»æ¹å¼æ¾ç¤ºæ°æ®åå ¶åç¨åºï¼åVIï¼çç»æãåæ¥æ§è¡ççï¼ä¾¿äºç¨åºçè°è¯ã
LabVIEW[1]ï¼Laboratory Virtual Instrument Engineering Workbenchï¼æ¯ä¸ç§ç¨å¾æ 代æ¿ææ¬è¡å建åºç¨ç¨åºçå¾å½¢åç¼ç¨è¯è¨ãä¼ ç»ææ¬ç¼ç¨è¯è¨æ ¹æ®è¯å¥åæ令çå å顺åºå³å®ç¨åºæ§è¡é¡ºåºï¼è LabVIEW [1]åéç¨æ°æ®æµç¼ç¨æ¹å¼ï¼ç¨åºæ¡å¾ä¸èç¹ä¹é´çæ°æ®æµåå³å®äºVIåå½æ°çæ§è¡é¡ºåºãVIæèæ仪å¨ï¼æ¯ LabVIEW [1]çç¨åºæ¨¡åã
LabVIEW [1]æä¾å¾å¤å¤è§ä¸ä¼ ç»ä»ªå¨ï¼å¦ç¤ºæ³¢å¨ãä¸ç¨è¡¨ï¼ç±»ä¼¼çæ§ä»¶ï¼å¯ç¨æ¥æ¹ä¾¿å°å建ç¨æ·çé¢ãç¨æ·çé¢å¨ LabVIEW [1]ä¸è¢«ç§°ä¸ºåé¢æ¿ã使ç¨å¾æ åè¿çº¿ï¼å¯ä»¥éè¿ç¼ç¨å¯¹åé¢æ¿ä¸ç对象è¿è¡æ§å¶ãè¿å°±æ¯å¾å½¢åæºä»£ç ï¼å称G代ç ãLabVIEW [1]çå¾å½¢åæºä»£ç å¨æç§ç¨åº¦ä¸ç±»ä¼¼äºæµç¨å¾ï¼å æ¤å被称ä½ç¨åºæ¡å¾ä»£ç ã
labviewåç1+2+3+4+.....+çåçç¨åº
int i ,流程星辰娱乐源码S=0;for (i=1;i<=;i++)
S=S+i
cout << S <<endl;
vb代ç ï¼
S=0
for i=1 to step 1
S=S + i
next i
print "S=";S
æ©å±èµæï¼
LabVIEWæä¾å¾å¤å¤è§ä¸ä¼ ç»ä»ªå¨ï¼å¦ç¤ºæ³¢å¨ãä¸ç¨è¡¨ï¼ç±»ä¼¼çæ§ä»¶ï¼å¯ç¨æ¥æ¹ä¾¿å°å建ç¨æ·çé¢ãç¨æ·çé¢å¨ LabVIEW ä¸è¢«ç§°ä¸ºåé¢æ¿ã使ç¨å¾æ åè¿çº¿ï¼å¯ä»¥éè¿ç¼ç¨å¯¹åé¢æ¿ä¸ç对象è¿è¡æ§å¶ãè¿å°±æ¯å¾å½¢åæºä»£ç ï¼å称G代ç ãLabVIEW çå¾å½¢åæºä»£ç å¨æç§ç¨åº¦ä¸ç±»ä¼¼äºæµç¨å¾ï¼å æ¤å被称ä½ç¨åºæ¡å¾ä»£ç ã
åèèµææ¥æºï¼ç¾åº¦ç¾ç§-LabVIEW