FM Analysis > FM Scope Script Files

RSSI level vs. time

(1/1)

Jan:
Need to save signal level each second?


--- Code: ---12:00:00 65
12:00:01 67
12:00:02 70
--- End code ---

This script would do that job:


--- Code: ---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)
--- End code ---

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...

Navigation

[0] Message Index

Reply

Go to full version