If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > acqiring data from rs232

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-07, 01:32
Sharma Arvind Sharma Arvind is offline
Registered User
 
Join Date: Jul 2006
Posts: 4
acqiring data from rs232

Hi,

I want to acquire data into dbf from an electronic weighing machine through RS232 serial interface.

I want to acquire data and store it in dbf and then use in foxpro (DOS) software.

Kindly help me in acquiring data in DOS.
Reply With Quote
  #2 (permalink)  
Old 11-08-07, 08:24
SimonMT SimonMT is offline
Registered User
 
Join Date: Sep 2006
Posts: 265
It is a long time since I have had to do this 10 years or so but we managed it with SLIP - Serial Line Interface Protocol. But someone my have a better idea.

Simon
Reply With Quote
  #3 (permalink)  
Old 11-12-07, 11:32
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Are you looking for a package which will do this for you, or for help with programming a solution yourself?

If the former, I would suggest Google, using search parameters of +DOS +"Serial Data Acquisition" or, contact the weigh scale manufacturer. One package which might work for you is TALtech's File-Wedge.

In either case, if there's ANY possibility of getting a Windows machine into the picture, it would be very beneficial, as there are a LOT of products available for windows programming, and data collection. If nothing else, you could add a windows computer with 2 serial ports to read the serial comm from the weigh scale and echo it to the existing computer. That way, you could sample it and store it in the data file. (assuming that you have networking enabled on the DOS machine)

If you cannot get the DOS computer changed over to windows, or adding a monitor per above, I would suggest taking a look at some of the programming archives - Turbo Pascal, for instance, had a lot of support in the 80's/early 90's, and I remember quite a few programming examples dealing with serial I/O. You'll be on your own as far as the dbf file and index updates, though.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Last edited by loquin; 11-12-07 at 11:49.
Reply With Quote
  #4 (permalink)  
Old 11-12-07, 23:02
Sharma Arvind Sharma Arvind is offline
Registered User
 
Join Date: Jul 2006
Posts: 4
Thanx Loquin,

I am running DOS Software on a Win.98 machine. I has the serial port which can be connected to the electronic weigh scale. I want to program myself to acquire data from weigh scale into my software.
Reply With Quote
  #5 (permalink)  
Old 11-13-07, 14:46
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
So, TALtech's File-Wedge may work for you. It could potentially capture the serial input, filter it, and write the appropriate fields into the database file.

(it does have some fairly advanced filtering)

Or, write a VB program to capture the serial input, parse it, and write to the DB file yourself.

What does the current software do? Does it currently read the serial input?

Would the data capture program be required to interface to the existing software? (I'm not sure that a windows program can easily (if at all) automate a DOS based app...)
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
  #6 (permalink)  
Old 02-10-09, 16:22
bliebb bliebb is offline
Registered User
 
Join Date: Feb 2009
Posts: 1
Another solution ...

Another good solution to solve your problem !

Bill Redirect software from Bill Production Softwares can redirect the serial data directly to a file !

Support all scales model and protocol

Price 35$ USD

Regards,

Peter
Reply With Quote
  #7 (permalink)  
Old 06-10-09, 05:12
AnanthaP AnanthaP is offline
Registered User
 
Join Date: May 2009
Location: India
Posts: 62
Foxpro 2.6 "help fopen".

It says that in DOS mode, you can open COMn ports also if they are preceded by the appropriate MODE setting. But be careful, you have to boot in DOS mode.

A idea would be to use a package (free and simple) that writes data to a file on the host.

Noe use Foxpro to read it in.

End
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On