|
-
Mar 20th, 2000, 09:09 PM
#2
Member
If you're looking to send a "command" to your data logger every second to get data, just plop down a timer and set the interval. If the data logger is active and you want to check the data that it has sent to the PC, the MSComm control will toss the incomming data into a buffer... You can read the contents of the incomming buffer after a specified time or you can let the oncomm event handle it:
Public Sub MSComm_OnComm()
Dim TempBuf As Variant
If MSComm.CommEvent = comEvReceive And MSComm.InBufferCount > 0 Then
TempBuf = MSComm.Input
Call HandleTheData(TempBuf)
end if
end sub
I don't see any reason why you can't just plop down two instances of the MSComm control (MSComm1 and MSComm2) -- as long as you open a different physical port for each control you shouldn't run into any problems.
Hope this helps!
[Edited by Andrew Herrmann on 03-21-2000 at 09:10 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|