Go Back   Home > Forums > General Interest > Everything Else
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Everything Else Anything related to audio / video / electronics etc) BUT remember- we have many new forums where your thread may now fit! .... Parts, Equipment & Tools, Construction Tips, Software Tools......

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 16th January 2006, 09:47 PM   #1
Stocker is offline Stocker  United States
diyAudio Member
 
Join Date: Dec 2003
Location: Austin
Question RS232 program to send ascii commands?

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?
__________________
Jesus loves you.
  Reply With Quote
Old 17th January 2006, 01:02 AM   #2
diyAudio Member
 
Join Date: Feb 2004
Location: Racine, Wisconsin
Symantec Procomm Plus using Aspect Scripting language.
  Reply With Quote
Old 17th January 2006, 02:55 AM   #3
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
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/real...rom_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
  Reply With Quote
Old 17th January 2006, 05:14 AM   #4
Stocker is offline Stocker  United States
diyAudio Member
 
Join Date: Dec 2003
Location: Austin
Wow that sounds like the ticket, thanks. I'll try that tomorrow.

Anyone else?
__________________
Jesus loves you.
  Reply With Quote
Old 17th January 2006, 01:40 PM   #5
Schaef is offline Schaef  United States
diyAudio Member
 
Join Date: Jan 2001
Location: Cuyahoga Falls, OH
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.
  Reply With Quote
Old 17th January 2006, 01:52 PM   #6
diyAudio Member
 
jackinnj's Avatar
 
Join Date: Apr 2002
Location: Llanddewi Brefi, NJ
Quote:
Originally posted by Schaef
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?
  Reply With Quote
Old 17th January 2006, 03:25 PM   #7
diyAudio Member
 
Join Date: Dec 2005
Location: Kuala Lumpur
There is a Windows terminal emulator called teraterm, which has source code available, that could probably do this.
  Reply With Quote
Old 17th January 2006, 05:00 PM   #8
Stocker is offline Stocker  United States
diyAudio Member
 
Join Date: Dec 2003
Location: Austin
Quote:
Originally posted by Schaef
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
__________________
Jesus loves you.
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single connection USB Audio PLUS RS232 Conversion? mbcouple Digital Source 1 16th January 2007 01:06 PM
ASCII to WAV in Circuitmaker northsiderap Everything Else 4 24th October 2005 02:59 PM
RS232 Relay Control (Logic) Morbid Digital Source 4 21st July 2004 02:50 PM


New To Site? Need Help?

All times are GMT. The time now is 10:38 AM.

Page generated in 0.11224 seconds (68.98% PHP - 31.02% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio