Pira.cz Technical Forum
FM Analysis => FM Scope Script Files => Topic started by: r-aktiv on December 19, 2018, 12:58:54 pm
-
Hello,
is there any way saving daily HTML reports of all measurements in FM Scope automatically every day? I tried out the task scheduler, but unfortunately I don't see the possibility to execute a task like this. It would be a lot of work saving the reports in a daily interval manually.
Thank you for your answer!
Sincerely
Jonas
-
This task can be executed using the task scheduler, like any other script.
- Create a folder on your disk for the reports, for example C:\reports
- In the FM Scope, select Script - Script Editor...
- Enter the path and file name for the new script, for example C:\reports\report autosave.fms
- Click Open and confirm the creation
- Enter the script code below
- Click File - Save
- In the FM Scope, open the Task Scheduler and fill the script file on an empty line:
C:\reports\report autosave.fms - Define the days and times when the script shall execute.
set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)
stop
include(report_svg.fms)
Make sure you have latest FM Scope version.
-
Maybe you will need to acquire all data from the receiver before saving the report, so the script can be enhanced:
getfrequency
getquality
getlevel
frequencydeviation.acquire
getpilot
getrds
getphase
rds.getdata
set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)
stop
include(report_svg.fms)
-
Thanks for your support, Jan! I tried out your second script and it works well!