Previous in Forum: shell programming   Next in Forum: c and cpp language
Close
Close
Close
16 comments
Rate Comments: Nested
Power-User

Join Date: Dec 2007
Location: Franklin, NC
Posts: 111
Good Answers: 5

Order program

01/24/2008 5:37 PM

I'd like to know if any of you have heard of this one.

A few years ago I wrote a program which enables a dealer/distributor to populate text boxes with customer and product information for the manufacturer. After this is done the application generates a comma delimited file which can be sent as an email attachment to the manufacturer. The file can then be added to a database and no retyping of data is neccessary. My question is this. Have you ever heard of this before. I thought such an application would be common but no techies I know have ever heard of it.

Thanks.

__________________
Peace be upon you.
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Order program

01/24/2008 6:04 PM

Haven't done exactly that, but I often generate log files (error + time & date, or process cycle time data) using comma-delimited (.CSV) format. It's very convenient to be able to open it in a spreadsheet (or pull it into a database). With the spreadsheet, you can easily generate graphical representations for trend analysis etc. (when appropriate). I don't know whether it's common practice, but I've generally assumed it must be.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#10
In reply to #1

Re: Order program

01/26/2008 4:13 PM

BTW - I also use an ASCII text file for handshake between a sample changing machine control program (my design) and a nucleonics/data analysis suite (from A. N. Other). They say "Change to sample #5", my stuff does it, & says "Sample #5 in position".

Looked at DDE (now being phased out) & OLE, COM stuff etc., but a simple text file was the easiest way to do it. You can test either side of the handshake (when accusations get thrown around) by opening the file in e.g. Notepad, & making manual edits. It wasn't practical in the "old days", as file access was too slow, but it works a treat now.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Philippines - Member - New Member Engineering Fields - Instrumentation Engineering - New Member Engineering Fields - Control Engineering - Who am I?

Join Date: Oct 2006
Location: Northern Mindanao, Philippines
Posts: 2147
Good Answers: 53
#2

Re: Order program

01/24/2008 7:20 PM

I've done that also.

If you talk to a techie, he's probably familiar with it but calls it by another name or something. Or they probably do the same thing in a slightly different way (possibly not with a CSV file).

__________________
Miscommunication: when what people heard you say differs from what you said. Make yourself understood.
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#3

Re: Order program

01/25/2008 1:05 AM

Yes - All the time.

I also did a lot of DOS and pre-dos like programming and loved it but data structures of most programs are known today, data can therefore be pumped into or abstracted directly from system or program.

The intermediate step of ASCII or comma delimited files can mostly by left out as well.

In an attempt to make programs more (stupid) user friendly they sacrificed data entry speed, my solution to that is to use a dos program as a fast entry and validation utility and then pump it into the program directly, via the clipboard or text based input / import file.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Power-User

Join Date: Jul 2007
Location: Somewhere in the hills of Pennsylvania, I think.
Posts: 246
Good Answers: 4
#6
In reply to #3

Re: Order program

01/25/2008 11:25 PM

"use a dos program as a fast entry and validation utility"

FAST - FAST - FAST! and, no B/S! Here I thought I was the only one holding onto DOS.

__________________
I'm somewhere between the age of thirty-something and Alzheimer's. I just can't remember where!
Register to Reply
Anonymous Poster
#4

Re: Order program

01/25/2008 8:17 AM

Hello,

I am a software Eng. and I have seen simple database programs perform the functions that you outlined.

Register to Reply
Power-User

Join Date: Dec 2007
Location: Franklin, NC
Posts: 111
Good Answers: 5
#5

Re: Order program

01/25/2008 11:12 AM

Thanks guys. My main purpose with the program was to enable the data to be sent as an email attachment and avoid retyping.

__________________
Peace be upon you.
Register to Reply
Associate

Join Date: Mar 2007
Location: Lancaster UK
Posts: 30
#7

Re: Order program

01/25/2008 11:39 PM

I did this once to enable a disconnected desktop application update a web based database system. The email was picked up by the server, and the attachment automatically moved into a drop folder, where a small application opened it and appended the contents to the database.

Register to Reply
Commentator

Join Date: Jun 2007
Location: Inverness, Florida
Posts: 84
Good Answers: 3
#8

Re: Order program

01/26/2008 12:05 PM

This is done in the relational database field quite often to transfer information across disparaging operating systems such as UNIX to DOS and Oracle. Progress is one such company where this is used.

Register to Reply
Anonymous Poster
#9

Re: Order program

01/26/2008 3:42 PM

I don't know which techie you have been talking to but many, in fact every company I have ever worked for has used this system. I buildt the program myself for my home server. To answer your question; Yes, the technology is quite common.

BBLACKSCORPION908@YAHOO.COM

Register to Reply
Power-User
Australia - Member - New Member

Join Date: Jul 2006
Posts: 267
Good Answers: 22
#11

Re: Order program

01/27/2008 6:11 AM

Tecchies (and I'm only a pretend one, so they may pounce on my well-meaning ignorance here) would more likely do this using XML - where the data is delimited but, to varying degrees, human readable - if I came across the file I could see quickly what it was.

If there's a read error in a comma delimited file it's very difficult to manually scan through and see which field is the problem, whereas XML makes all kinds of error checking much easier.

The two databases - one sending and one receiving - don't need to be similar - eg one could be an order form, the other a sales database, but both need to know the XML structure.

But for a one-off process with small files, a comma delimited file would be more useful - little setup required etc.

Your use of email as the carrier (rather than web service or html or whatever) is also good for a reasonably small number of instances for availability across users/platforms/applications etc - most people know how to use email and how to deal with a comma delimited file.

In my experience of this kind of system, the reason tecchies wouldn't know about it is that unless there are torrents of data, most tecchies think it's easier to let someone do a small amount of data entry than to write an application specifically to do it.

I'm with you though - any typing saved is a great idea - saves creating errors and also can add up to hundreds of hours saved over a few years...

Register to Reply
Power-User

Join Date: Dec 2007
Location: Franklin, NC
Posts: 111
Good Answers: 5
#12
In reply to #11

Re: Order program

01/27/2008 9:58 PM

Thanks RobertOz. I'm not only not a techie but have never programmed for pay. It was mostly a hobby with me. I used VB6. I say used instead of use because I haven't written anything for a couple of years. Right now I need to learn PLC programming. Wish me luck. I'm 71 years old!

__________________
Peace be upon you.
Register to Reply
Power-User

Join Date: May 2007
Location: West Jordan, Utah, USA, Earth
Posts: 144
Good Answers: 5
#13
In reply to #12

Re: Order program

01/29/2008 10:00 AM

"I need to learn PLC programming. Wish me luck. I'm 71 years old!"

Skelly,

Hey don't sweat the PLC stuff. I had not touched the stuff for some twenty years (I am 42) and just had to pick back up on it. (And believe me I was no expert then either! haha)

If I may be so bold. I would suggest purchasing a small unit like I am using for my application and just start playing with it and the manual. I suggest the TECO SG2 series. The manual is VERY good and it comes with free software that is pretty good for programing it. I got mine from factorymation.com for about 80 bucks, And you will need the programing cable (20 bucks) unless you want to do it from the built in Keys and LCD (really too small to really work with, good for a quick tweak though).

I am a ladder logic kinda guy. But the software allows FBD or Ladder so you can swing both ways.

Good luck! and bye the way there are some really smart PLC guys here that helped me get started! I am sure any problem you run into is just a post away!

Bill12780

__________________
I'm fix'in to do somethin' stupid as hell...But I'm gonna do it anyway.
Register to Reply
Guru

Join Date: Jun 2007
Location: chennai,India
Posts: 592
Good Answers: 19
#14
In reply to #12

Re: Order program

01/31/2008 10:34 PM

Hello

PLC programming is easy, nothing but logic! As some one sugested get a small PLC say 4DI and 4DO then operate different programmes, you will be thrilled.

You can try Siemens logo PLC, this programme can be simulated and seen on the screen, in which case no need to have the PLC.the software can be downloaded from siemens site free.

__________________
Ramesh,Freelance Electrical/automation Consultant
Register to Reply
Power-User

Join Date: May 2007
Location: West Jordan, Utah, USA, Earth
Posts: 144
Good Answers: 5
#15

Re: Order program

02/01/2008 10:49 AM

I believe that the Siemens Logo PLC is the same unit (repackaged) as the TECO SG2 series. And they too have free software that has simulation mode.

I used this to get a head start on my project while I was waiting for the PLC to arrive.

Here is a link to the software:

http://factorymation.info/plr/SG2ClientSetup.exe

Good luck! and have fun!

bill12780

__________________
I'm fix'in to do somethin' stupid as hell...But I'm gonna do it anyway.
Register to Reply
Power-User

Join Date: Dec 2007
Location: Franklin, NC
Posts: 111
Good Answers: 5
#16

Re: Order program

03/21/2008 3:25 PM

Thank you all. Life would be indeed dull if we couldn't learn something new every day.

__________________
Peace be upon you.
Register to Reply
Register to Reply 16 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); bill12780 (2); CEngWannabe (1); FKIA (1); Hendrik (1); JohnDG (2); ramvinod (1); RobertOz (1); Self Thinker (1); Skelley (3); Vulcan (1)

Previous in Forum: shell programming   Next in Forum: c and cpp language

Advertisement