mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
implemented read_ts as a lua function
This commit is contained in:
parent
ab678e6c88
commit
9d74fe9e74
5 changed files with 93 additions and 4 deletions
16
examples/lua/pvt.lua
Normal file
16
examples/lua/pvt.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
send("\n")
|
||||
msleep(100)
|
||||
-- read buffer with 0.5 sec delay
|
||||
read(160, 500)
|
||||
send("S")
|
||||
msleep(100)
|
||||
-- read buffer
|
||||
read(160, 500)
|
||||
-- query Parallel Value Table
|
||||
send("t")
|
||||
print(read(300, 500))
|
||||
while true do
|
||||
sleep(1)
|
||||
send("t")
|
||||
print(read(300, 500))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue