VFP 愛用者社區 首頁 VFP 愛用者社區
本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
 
 常見問題常見問題   搜尋搜尋   會員列表會員列表   會員群組會員群組   會員註冊會員註冊 
 個人資料個人資料   登入檢查您的私人訊息登入檢查您的私人訊息   登入登入

應用MSCOMM32.OCX (轉貼)

 
發表新主題   回覆主題    VFP 愛用者社區 首頁 -> VFP 討論區
上一篇主題 :: 下一篇主題  
發表人 內容
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 1 樓

發表發表於: 星期一 八月 25, 2003 7:24 pm    文章主題: 應用MSCOMM32.OCX (轉貼) 引言回覆

Title

Serial Data Parameters Detector for VFP

Download the file

bitrate2.zip

Summary

This sample form provides automatic detection of the parameters of an unknown data stream from an external device into a PC serial port using VFP7+ and the MSCOMM32.OCX control. It also provides for manual parameter setting to test the setup of the external device.

Description

Selecting "Initialize" starts the search for serial ports and modems on your PC. Once complete, enter your search string (if desired), select your port, handshaking method, and click "Auto". That's it. Note that ports in use by another application will not be available.

The "Search String" is case sensitive. The more discriminating the string, the better detection of false hits. Let's face it, even garbage will spit out an "a" occasionally. If left blank, the form will run continuously (forever). If you see some candidate data, hit "Hold" and data will continue to be displayed. Hit "Hold" again to resume. Examples might be "lb" for scale data, "$GP" for a GPS device, "/03" or "/2003" for PBX SMDR, or "Volts" for DMM data. To enter a control character, use the ALT key plus the 3 digit ANSI value on the numeric keypad. For example, to search for a STX character, ALT+002. You may or may not get a visual indication of the insert.

For those that like going it alone, just select the desired port and settings, put the form on "Hold", then click "Fixed". The port will be opened and any data received displayed. Handy for putting an external device to your known local settings.

The port can be changed on the fly by reselecting and clicking "Auto" or "Fixed". In the case of "Auto", scanning starts from the beginning settings.

_________________
#############################
快樂媽咪系列幸福宅配,喝十全雞湯~原來幸福那麼簡單!!

學會VFP使用者社區的搜尋,Code才會更有趣~
#############################
回頂端
檢視會員個人資料 發送私人訊息
從之前的文章開始顯示:   
發表新主題   回覆主題    VFP 愛用者社區 首頁 -> VFP 討論區 所有的時間均為 台北時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票
無法 在這個版面附加檔案
無法 在這個版面下載檔案


Powered by phpBB © 2001, 2005 phpBB Group
正體中文語系由 phpbb-tw 維護製作