| | |
Filter data coming from serial port
![]() |
•
•
Join Date: Jun 2009
Posts: 5
Reputation:
Solved Threads: 0
I am developing a program to receive serial data from serial port. I am successfully getting data from serial port with MScomm. The next step is to filter the data coming from serial port.
Data Example:
$ABCDE,1,1,??,,007.60,163.6,00.2,061.6,07.4,099.9
$ABCDE,1,2,??,,006.60,153.6,10.2,161.6,07.4,099.9
$ABCDE,1,3,??,,017.60,109.6,11.2,161.6,07.4,099.9
$ABCDE,1,4,??,,107.60,103.6,09.2,111.6,07.4,099.9
...............................
...............................so on
I want to filter the red coloured data from the coming strings on real time and want to show the data in another text box.
Select Case MSComm1.CommEvent
Case comEvReceive
Dim strReceived As Variant
strReceived = MSComm1.Input
Now any body can help me what I have to do to filter out the desired values...
Data Example:
$ABCDE,1,1,??,,007.60,163.6,00.2,061.6,07.4,099.9
$ABCDE,1,2,??,,006.60,153.6,10.2,161.6,07.4,099.9
$ABCDE,1,3,??,,017.60,109.6,11.2,161.6,07.4,099.9
$ABCDE,1,4,??,,107.60,103.6,09.2,111.6,07.4,099.9
...............................
...............................so on
I want to filter the red coloured data from the coming strings on real time and want to show the data in another text box.
Select Case MSComm1.CommEvent
Case comEvReceive
Dim strReceived As Variant
strReceived = MSComm1.Input
Now any body can help me what I have to do to filter out the desired values...
![]() |
Similar Threads
- Send data on a serial port (C)
- reading data using serial port (Visual Basic 4 / 5 / 6)
- storing data from serial port inyto a database using VB6.0 (Visual Basic 4 / 5 / 6)
- Serial port communication using C++ (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Have a question....
- Next Thread: creating a license ?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





