Pira.cz Technical Forum

FM Analysis => FM Scope Script Files => Topic started by: Jan on October 09, 2017, 10:05:19 am

Title: RSSI level vs. time
Post by: Jan on October 09, 2017, 10:05:19 am
Need to save signal level each second?

Code: [Select]
12:00:00 65
12:00:01 67
12:00:02 70

This script would do that job:

Code: [Select]
set(lasttime,%timestamp)  ;initialize last time variable

loop:
if (%timestamp=%lasttime) ;wait for next second
  goto(loop)
  endif
set(lasttime,%timestamp)
getlevel                  ;read the level from the device
set(value,%level)
inc(value,0)              ;remove all non-numeric characters
appendtext(C:\monitor\log %date.log,%time%tab%value%cr)
goto(loop)

In the FM Scope, select Script - Script Editor, enter the script file name, for example rssitime.fms.
Copy and paste the script above. Check the output file name and path (the output folder must exist). Save the script.
Select Script - Run Script...