dark_zone05 0 Report post Posted February 12, 2007 saper yg tahu guna visual basic untuk comunicate dengan device luar melalui serial port??? device yg dimaksudkan ialah microcontroller dan motor.. Quote Share this post Link to post Share on other sites
zsuperxtreme 0 Report post Posted February 12, 2007 Buat communication port melalui serial port adalah mudah guna vb sebab dah ada OCX... so cuba tengok link kat bawah sbgai panduanhttp://mc-computing.com/Languages/SerialIO.htm Quote Share this post Link to post Share on other sites
dark_zone05 0 Report post Posted February 12, 2007 thanks sbb reply.. tp link yg ko bg tu broken la. Quote Share this post Link to post Share on other sites
zsuperxtreme 0 Report post Posted February 12, 2007 Mana ada broken.... Tengok, aku siap pastekan isi kandungan kat dalam tu.... aku dah baca... kalau aku tak baca aku takkan post********************************FROM: http://mc-computing.com/Languages/SerialIO.htm Serial I/O (RS232)All Intel PCs have one or two serial ports usually referred to as Com1 and Com2. These comm ports provide voltages and pin outs consistent with RS-232C. Normally, these ports are used for mice, modems, printers, and the like.Under DOS, it was possible to directly access these ports. However, Windows 95 and above forbid direct hardware access. Therefore, this page exists to help get around windows.Generic References | Visual Basic | MS Access | Delphi | C++ Builder | Windows APIGeneric ReferencesMost of this was gathered by searching Altavista for rs232 (notice that I used lower case). * I suggest starting with this good Tutorial. * Here is the complete standard including the pin out, timing, and signal descriptions. * Voltage Specs * Free Application Software * Did you know that RS means Recommended Standard? This site also compares Simplex/Duplex and DTE/DCE. Free software shows how to write Windows 95 programs which access the serial port - comm32.zip/comm32.cpp (4kb) * The Visual Basic help file explains how to use Comm.drv to access serial ports. (Search on serial.) ' Open the serial port MSComm1.CommPort = 2 ' Set the port number MSComm1.Settings = "56000,N,8,1" ' Set UART parameters MSComm1.PortOpen = True ' Required, might lock port MsComm1.Output = "Text string" ' Send data Buffer$ = Buffer$ & MSComm1.Input ' Read data Quote Share this post Link to post Share on other sites
dark_zone05 0 Report post Posted February 12, 2007 aik.. apsal aku xleh nak masuk web site tu? anyway, thanks sbb tolong... Quote Share this post Link to post Share on other sites
zsuperxtreme 0 Report post Posted February 12, 2007 Website kena block kot kat network ko... Quote Share this post Link to post Share on other sites
dark_zone05 0 Report post Posted February 12, 2007 baru leh buka.. pelik jugak apsal td xleh.. Quote Share this post Link to post Share on other sites
ApOgEE 1 Report post Posted February 14, 2007 kalau nak sample Serial Programming, aku biasa download kat http://www.planetsourcecode.combanyak giler... so, carilah... download yg berkenan dihati!! have fun!! Quote Share this post Link to post Share on other sites
dark_zone05 0 Report post Posted February 14, 2007 thankx ApOgEE Quote Share this post Link to post Share on other sites