User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 423,514 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,618 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 521 | Replies: 8
Reply
Join Date: Jul 2008
Posts: 7
Reputation: puma8085 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
puma8085 puma8085 is offline Offline
Newbie Poster

Difficulty in reading data thru Com port

  #1  
Jul 18th, 2008
My project is to receive data from MRI machine, which has a com port can send serial signals. The data come thru pin3 of the com port and we want to save and read them on a pc. I've check the data with a spectrum analyzer and found the signal consists of 12 bytes in 11520 baud rate and was sent every 4ms. So I have been seeking software to save them. Can anybody help me fig it out or give some hints?

thanks
Last edited by puma8085 : Jul 18th, 2008 at 5:05 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2008
Posts: 31
Reputation: Teropod is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
Teropod Teropod is offline Offline
Light Poster

Re: Difficulty in reading data thru Com port

  #2  
Jul 19th, 2008
What kind of communication that is rs232? or 485?
Reply With Quote  
Join Date: Jul 2008
Posts: 7
Reputation: puma8085 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
puma8085 puma8085 is offline Offline
Newbie Poster

Re: Difficulty in reading data thru Com port

  #3  
Jul 22nd, 2008
Originally Posted by Teropod View Post
What kind of communication that is rs232? or 485?



I will use RS232.
Thank you!
Reply With Quote  
Join Date: Jul 2008
Posts: 31
Reputation: Teropod is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
Teropod Teropod is offline Offline
Light Poster

Re: Difficulty in reading data thru Com port

  #4  
Jul 22nd, 2008
Just connect 2nd pin from first connector to 3rd pin on second connector and 3rd pin on first connector to 2nd on second connector,
and 5th from first with 5th from second.

2'''''''''''''''''\/''''''''''''''2
3........../\..........3
5......................5

Sorry if my drawing skills are not A+ but i hope you got the point.

Now u need to read data sheet and look what are parameters of your device. Baud rate, stop bits, data bits, parity or if you can set it up your self then its your choice and you need have same setup in your program.
Last edited by Teropod : Jul 22nd, 2008 at 11:19 am.
Reply With Quote  
Join Date: Jul 2008
Posts: 7
Reputation: puma8085 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
puma8085 puma8085 is offline Offline
Newbie Poster

Re: Difficulty in reading data thru Com port

  #5  
Jul 23rd, 2008
Thank you Teropod.

Based on your descriptions, should it be
2""""""""\/"""""""""3
3""""""""\/"""""""""2

I understand how to connect two ports, but don't know how to program because I am complete not familiar with low level settings.

I've check the data with a spectrum analyzer and found the signal consists of 12 bytes in 11520bps and was sent every 4ms. 8 bit data +1 stop bit without parity bit.
Reply With Quote  
Join Date: Jul 2008
Posts: 31
Reputation: Teropod is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
Teropod Teropod is offline Offline
Light Poster

Re: Difficulty in reading data thru Com port

  #6  
Jul 23rd, 2008
Ehm please define me a low level settings?

What device are you trying to connect to comm port?

And don't forget to connect pins 5 to 5 those are grounds you wont be able to close circuit without them.
Reply With Quote  
Join Date: Jul 2008
Posts: 7
Reputation: puma8085 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
puma8085 puma8085 is offline Offline
Newbie Poster

Re: Difficulty in reading data thru Com port

  #7  
Jul 23rd, 2008
The device connected to comm port is MRI machine who has a comm port through which we received the data of patient's heart beeting signals and breath frequency signals. We do know how to connect them but need a software to save these signal in a pc.
Reply With Quote  
Join Date: Jul 2008
Posts: 31
Reputation: Teropod is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
Teropod Teropod is offline Offline
Light Poster

Re: Difficulty in reading data thru Com port

  #8  
Jul 25th, 2008
Ok!
So you don't know how to do it in vb 6.0 or you don't know what kind of data you are getting? Usually those communication devices have protocols and byte positioning what is first byte, what is second and that goes on until you get last byte for end of message. And machine should also have options of some kind to setup comm parameters.

What is model of that machine? Do you have manual of any kind?
Reply With Quote  
Join Date: Jul 2008
Posts: 7
Reputation: puma8085 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
puma8085 puma8085 is offline Offline
Newbie Poster

Re: Difficulty in reading data thru Com port

  #9  
Jul 25th, 2008
Emm, I dno't know how to compile it in VB 6.0 I'm a complete new guy. I've check the data with a spectrum analyzer and only know the signal consists of 12 bytes in 11520 baud rate and was sent every 4ms. The proctocol is rs232. The machine is general Magnetic Resonce Imaging machine which has a serial port to output data. If you need more information I can send you email. Anyway, thank you so much.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 4:43 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC