Post reply

Name:
Email:
Subject:
Message icon:

Verification:
Unregistered users must pass a verification:



Please enter the number from the picture above which is showing FM broadcast antenna:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

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