Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Tera Term to send continuous

Status
Not open for further replies.

engr_joni_ee

Advanced Member level 3
Advanced Member level 3
Joined
Nov 3, 2018
Messages
822
Helped
2
Reputation
4
Reaction score
7
Trophy points
18
Activity points
6,874
Hi,

I need to send data from PC to COM port continuously which is just a short string to be send every 10 second. Is it possible to write for loops in Tera Term for that purpose ?
 

Hi,

A short string every 10s? Why not use a script?

in simplest case just (pseudo code)

Code:
copy file --> COMx 
pause 10
repeat

Klaus
 

I guess first I need to setup COM connection in Tera Term and then I need to run the script. How to run the script ? In which file do I need to save the code ?
 

Hi,


several OS support several script languages....
To be able to give a detailed answer we need to know your details first.


Klaus

- - - Updated - - -

Hi,

A quick internet search showed that TeraTerm supports a script language (TTL = TeraTermLanguage).
Didn´t go deep thout the infromations, but it seems it can do what you want.

Just do an internet search on your own to find documentation and sample codes ...and everything else you need.

Klaus
 

Hi,

I have tired the following Macro code in TTL, it works.

Code:
pause 2

val = 0

; Repeat 5 times.
i = 5
do while i>0
    i = i - 1
  random val 100
  send 'ABC'
  pause 1
loop

exit

I am wondering how to mention carriage return line feed. I would like to start new line and cursor in the start of the line.
 

Hi,

what about using "sendln" instead of "send".
or try "strspecial"

I found them in the documentation...

There maybe are more suitable commands...

Klaus
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top