Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Bidirectional Aux Port (again)
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedBidirectional Aux Port (again)

 Post Reply Post Reply
Author
Message
anonymous View Drop Down
Groupie
Groupie


Joined: January 15 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote anonymous Quote  Post ReplyReply Direct Link To This Post Topic: Bidirectional Aux Port (again)
    Posted: February 09 2004 at 3:40am
Several months ago you had helped me with a script to accept data via the serial port on the pc, much like a aux port on an adds 4000 by using a second session connected to the serial port. That has worked out great!. My only problem is that sometimes the users forget to start the ‘scanner’ session, and things get messed up. I was wondering if there is any way from a BASIC program, - or whatever – to automatically start that session if it is not already open. Meaning my program would check for this session before running the script to send and receive data from the PC serial port.

Any help would be great!

Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: February 09 2004 at 3:45am
You can modify the BIDIRECT.ATSC script automatically open the scanner session if its not already open. For example, before the check for 'Sessions.Count = 2', add this line:

     If Sessions.Count = 1 Then Sessions.Add "scanner.atcf"

(that is all on a single line). Change "scanner.atcf" to the name of the session you use for the scanner port.

Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.