Author Topic: Windows task scheduler: start/stop recording  (Read 375 times)

admin

  • Anthony Tekatch
  • Administrator
  • Jr. Member
  • *****
  • Posts: 71
    • Unihedron
Windows task scheduler: start/stop recording
« on: August 14, 2017, 10:22:55 pm »
In Windows, you can use the Task Scheduler to start and stop recording.

First make sure that UDM can read your meter and can log data using the Log Continuous feature.
Also, use UDM to determine the MAC address of the meter (on the main page).
Then, close UDM.

Enter the start/stop times into the Windows Task Scheduler. Start the task scheduler as follows:
  • Click the Windows "Start" button
  • Start typing Schedule Tasks
  • select the Schedule Tasks or Task Scheduler program.

Other ways to get to the Task Scheduler are shown here:
https://www.isunshare.com/windows-10/4-ways-to-open-task-scheduler-on-windows-10.html
  • Press "Create basic task" on the right side in the Actions window.
  • Name: Start UDM
  • Next
  • Daily
  • Enter the desired start time
  • Select Start a program
  • Click on browse to find the program which is usually located at C:\Users\User\AppData\Local\Programs\Unihedron\udm.exe
  • Enter additional parameter: -SEM,x -LCMS,y -LCR
     where x is the MAC address of the SQM-LE to be monitored, for example: 00204AAF20A2
     where y is the number of seconds between recordings, for example: 10
  • Next, Finish

Tasks may not show up in the Task Scheduler library immediately, you may have to close the Task scheduler and re start it.

Then, make another task to stop UDM at a specific time as follows:
  • Press "Create basic task" on the right side in the Actions window.
  • Name: Stopt UDM
  • Next
  • Daily
  • Enter the desired stop time
  • Select Start a program
  • Type the following ointo the program area: taskkill
  • Enter additional parameters: /IM udm.exe /F
  • Next, Finish

The logged files are stored in your log directory, usually located at: C:\ProgramData\Unihedron\logs

The above was tested with Windows 10 and UDM ver.105.