Ib qho teeb meem nyuaj thaum tsim cov kev pab cuam rau kev ua haujlwm nrog cov khoom siv nruab nrab yog kev saib xyuas qhov kev nkag mus rau lub khoos phis tawj. Yog tias koj sau hauv cov ntawv sau ua lus yooj yim, Microsoft Visual Studio 2005 yuav pab koj txog qhov teeb meem no.
Tsim nyog
Is Taws Nem
Cov Lus Qhia
Kauj ruam 1
Pib Microsoft Visual Studio 2005. Cov software no raug teeb tsa los ntawm lub tshuab ntiag tug nrog rau kev ua haujlwm. Koj tuaj yeem nrhiav nws los ntawm "Pib" ntawv qhia zaub mov. Tsim qhov project tshiab siv cov ntawv qhia zaub mov "Cov Ntaub Ntawv" - "Tshiab" - "Project". Qhia kom meej Windows ua hom khoom, thiab hauv Templates pawg xaiv Console Thov.
Kauj ruam 2
Tsim cov SendSerialData thiab ReceiveSerialData txoj kev siv cov lus txib nram qab no (koj yuav tsum qhia nws sab hauv tus qauv): Siv com1 Raws li IO. Ports. SerialPort = _ My. Computer. Ports. OpenSerialPort ("COM1") Kev nyeem ntawv tuaj yeem ua nrog lub com1. ReadLine () txujci. - com1. WriteLine (cov ntaub ntawv). Tsis txhob hnov qab kaw qhov chaw nres nkoj kawg ntawm txoj kev nrog com1. Close () tus txheej txheem.
Kauj ruam 3
Muab cov txheej txheem los pib nyeem lossis sau ntawv ntawm cov neeg siv kev thov lossis lwm yam. Kev pib tsim yuav tuaj yeem txuas ntxiv tom qab, tom qab ntsuas qhov kev pab cuam nrog cov chaw nres nkoj ntawm cov nkoj. Tamsim no, pib ntawm lub console yuav txaus. Khiav qhov kev pab cuam siv cov ntawv qhia zaub mov khawm lossis los ntawm nias CTRL + F5 ntawm koj cov keyboard. Kho cov teeb meem yog tias lawv tshwm sim thaum sim.
Kauj ruam 4
Yog xav paub ntxiv, saib hauv phau ntawv qhia cov lus qhia. Koj tuaj yeem pom cov kev daws teeb meem zoo sib xws rau qhov teeb meem no ntawm cov chaw thematic ntawm Cov ntawv sau sib txuas. Koj tseem tuaj yeem nrhiav cov ntaub ntawv pab hauv Microsoft lub vev xaib. Feem ntau, peb tuaj yeem hais tias nws tsis yooj yim kom nkag mus rau hauv cov chaw nres nkoj ntawm lub koos pij tawj, vim tias kev ua haujlwm zoo li no yuav tsum muaj kev txawj ntse ntawm kev ua haujlwm ntawm tus kheej ntiag tug, nrog rau kev ua haujlwm nrog Is Taws Nem. Sim tsis qhib txhua qhov chaw nres nkoj, vim tias koj lub khoos phis tawm yuav muaj kev puas tsuaj rau lub network, uas tuaj yeem ua rau muaj kev rau txim loj.