RS232 program to send ascii commands?

Status
Not open for further replies.
up front: this is for my work and we are all pretty much clueless how to get this done. If this can be figured out, it will free up about 20 minutes per job, cutting time required for each of these devices as much as 50%...

I am looking for a way to have one button to click in windows 98 and have a RS-232 serial port send out a string of commands interspersed with a specified delay.

What we need is:
O (open)
wait 3 or 4 seconds
C (close)
wait 3 or 4 seconds

and this sequence repeats 250 times.

Can anybody help me or point me in the right direction?
 
under windows vba from word, excel ms office programs can work with COM objects (vba = Visual Basic for Applications; many people don't realize that hidden under the 'macro' tool is a real programing language)

RealTerm at sourceforge has some example excel vba code:

realterm(free):

http://realterm.sourceforge.net/

vba/excell example code:

http://realterm.sourceforge.net/realterm_from_excel.html

essentially free if you already have word or excel

in fact realterm has a character delay setting, I don't remeber how large it can be but you may be able to do this from within realterm without external control

I just downloaded and installed realterm here at home to look, you can do this entirely within realterm, send window has repeat count and the delay setting scrolled up beyond 10000 ms = 10 s
 
Over-kill method: it would take me about 10 minutes in .NET to whip up an application to do that for you. A window with a button that sends those commands. Give me about a week, and I could probably have something that doesn't require .NET.

Give me a week with .NET and I'll have if fully configurable and adjustable allowing you to specify commands, delays repeat counts, ports everything.
 
Schaef said:
Over-kill method: it would take me about 10 minutes in .NET to whip up an application to do that for you. A window with a button that sends those commands. Give me about a week, and I could probably have something that doesn't require .NET.

Give me a week with .NET and I'll have if fully configurable and adjustable allowing you to specify commands, delays repeat counts, ports everything.

will "dotnetfx.exe" run in WIN98?
 
Schaef said:
Give me a week with .NET and I'll have if fully configurable and adjustable allowing you to specify commands, delays repeat counts, ports everything.

Hey that would be great! You work for prestige, right? 😀

Is there anyplace I can get a tutorial for novices? The last I remember hearing about .NET was Microsoft trying to monopolize the internet portal business, so please excuse my ignorance of what appears to be a new programming thingy :cannotbe:
 
Status
Not open for further replies.