Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-20-2004, 04:34 AM   #1 (permalink)
Elbatrop1's Avatar
 
Memberbot

Join Date: Mar 2004

Posts: 4,055

Elbatrop1 is on a distinguished road

Send a message via MSN to Elbatrop1
Default Raw Binary input

Hey everyone. I've never used Visual Basic before, so forgive me if I sound dumb.

I've been told that Vis Bas would probably the best programming software to use for this application.

I'm doing a project for school, which involves inputting raw rs232 data into the serial port. I have no problem getting the data into regular rs232 format (start &stop bits, +10V,-10V, baud rate, etc). I would like the final result to be put into ms excel, and graphed. But what i dont know is everything in between the serial port and the excel spreadsheet. Could you guys help me out?

Thanks!
Elbatrop1 is offline  
Old 04-11-2004, 12:00 AM   #2 (permalink)
 
Junior Techie

Join Date: Mar 2004

Posts: 56

raylu

Send a message via AIM to raylu
Default

First off, I've never done this before.

OLE
That should be your answer.
If you told me what the project was, a short little description, I may be able to help.

You could also yous the VBX that comes with Excel.
__________________
\"Only when the last tree is dead, the last field paved, and the last river dammed, only then will we realize that we can\'t eat money.\"
http://raylu.uni.cc
raylu is offline  
Old 04-17-2004, 04:47 AM   #3 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 7

willer

Default

---------------------------------------------------
I have no problem getting the data into regular rs232 format (start &stop bits, +10V,-10V, baud rate, etc)....????
---------------------------------------------------

Private Sub Comm_OnComm()

'Comm.Input is the input data from another socket
stat.Caption = stat.Caption & Comm.Input
End Sub

Private Sub Form_Load()

Comm.CommPort = 2

' Set the port number
Comm.Settings = "9600,N,8,1"
' you may not need to set anything for direct cable
' Tell the control to read entire buffer when Input is used
Comm.InputLen = 0
Comm.RThreshold = 1

' Open the port.
Comm.InBufferSize = 1024
Comm.PortOpen = True

End Sub

Private Sub ping_timer_Timer()

'Comm.Output - This timer will send out something every few second
Comm.Output = "Ping from port" & Comm.CommPort & " - " & Now
End Sub

--------------------------------------------------------
i dun know u oledi know "how to send/get data "
willer is offline  
Old 04-17-2004, 04:56 AM   #4 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 7

willer

Default

i saw the "save data to excel spreadsheet" tutorial b4 , but i forgoten where the URL was... u can find it

but if u need save to some file that can be open by excel, why dun try *.CSV file , a simple comma separate data file, text base
no need extra COM object loading
willer is offline  
Old 04-17-2004, 05:02 AM   #5 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 7

willer

Default

u need a direct cable for comm...
here is the wiring
http://support.microsoft.com/default...NoWebContent=1

i just built one last month , just RM 8, (2Xrs232 socket + CAT cable+15 minutes)
willer is offline  
Old 04-17-2004, 05:05 AM   #6 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 7

willer

Default

if need more resource , goto MSDN, there is where i start VisualBasic.
willer is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On