Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Aspect Script to export Text to Comm port

Status
Not open for further replies.

Phantom462

Technical User
Nov 25, 2002
1
US
I am trying to export the text from procomm to a comm port and overlay that text onto a video feed. The format of the exported text is important and I'm lead to understand that an aspect script has the ability to route the text and to reformat it as the programer see's fit. All I want exported is the text itself nothing else since it will be overlayed onto video. The terminal emulation being used is DG D210..or somthing like that and using Zmodem. I hope I have provided enough info. Thanks for any help offered.
Don
 
I believe that you could simply use the "transmit" command just as if you were writing to a host system. The transmit command has an optional parameter of "Raw" which ensures that none of your text is translated into formatting or key characters.

Sample:
Proc Main
transmit "Text to Com Port" RAW
Endproc

See if that works. Alternately, you could use the "Comwrite" command, although I confess that I do not understand what the advantage of comwrite is! Robert Harris
 
In addition to what Robert said, you may need to use the strfmt command to get the data you want to transmit "massaged" into the correct format, and then use the transmit command to send the string to the com port.

It also sounds to me like you are reading data from one location and then wanting to write some of that data to a second location. This would probably require that you have two Procomm windows active at one time. If so, you will likely need to use Procomm's predefined global string variables (s0 through s9) as one script can write data to these strings while the other script can then read that value. aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top