Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

Working with data files

The storing of the data is regularily managed by the script. Only in cases when the script is deactivated and the device is totally ruled by the command interfaces, commands via command interface can be placed. For the command interface please see the refering chapter. Using the script data can be handled variable in terms of format, selection, conjunction, number and time of files or other issues like timestamp etc. Here you can find some examples of changes in the scripting:

RS232: adding line feed after each dataset

With RS232 the first questions how to define the end of a dataset:

- either there is a character send only at the end of each dataset or

- you define a pause as a end of dataset

 

In this example we use the second criteria defining a pause of 100 ms as the trigger for a line feed. The duration of the break can be defined variably. The red command are the changes necessary to implement the line feed.

let ms = 0

do

' Read data and write to file
INPUT A
if BYTESREAD > 0 then

put -202, #0
put 1, A, BYTESREAD

let ms = millis + 100

end if

if (millis > ms) and (ms > 0) then
put 1, #13
put 1, #10

let ms = 0

end if