FM Analysis > FM Scope Script Files
Automatic saving of HTML reports in FM Scope
(1/1)
r-aktiv:
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
Jan:
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.
--- Code: ---set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)
stop
include(report_svg.fms)
--- End code ---
Make sure you have latest FM Scope version.
Jan:
Maybe you will need to acquire all data from the receiver before saving the report, so the script can be enhanced:
--- Code: ---getfrequency
getquality
getlevel
frequencydeviation.acquire
getpilot
getrds
getphase
rds.getdata
set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)
stop
include(report_svg.fms)
--- End code ---
r-aktiv:
Thanks for your support, Jan! I tried out your second script and it works well!
Navigation
[0] Message Index
Go to full version