Pira.cz Technical Forum

FM Analysis => FM Scope Script Files => Topic started by: r-aktiv on December 19, 2018, 12:58:54 pm

Title: Automatic saving of HTML reports in FM Scope
Post 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
Title: Re: Automatic saving of HTML reports in FM Scope
Post by: Jan on December 19, 2018, 02:57:39 pm
This task can be executed using the task scheduler, like any other script.


Code: [Select]
set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)

stop

include(report_svg.fms)


Make sure you have latest FM Scope version.
Title: Re: Automatic saving of HTML reports in FM Scope
Post by: Jan on December 19, 2018, 03:25:45 pm
Maybe you will need to acquire all data from the receiver before saving the report, so the script can be enhanced:

Code: [Select]
getfrequency
getquality
getlevel
frequencydeviation.acquire
getpilot
getrds
getphase
rds.getdata

set(OutputFile,c:\reports\%date %time.htm)
call(CompleteReport)

stop

include(report_svg.fms)
Title: Re: Automatic saving of HTML reports in FM Scope
Post by: r-aktiv on December 20, 2018, 08:52:49 am
Thanks for your support, Jan! I tried out your second script and it works well!