Can we reset dose calculation in API

May 9, 2016 at 9:28 AM
As current Eclipse API can not automatically export dose distributions, DCMTK is used to export the dose distributions. However, DCMTK times out after about 100 dose distributions. Does anybody know the command of resetting dose calculation?

Thank you so much,
Liyong Lin, PhD
UPenn
Coordinator
May 10, 2016 at 7:39 PM
Edited May 10, 2016 at 7:40 PM
I will assume you that you are using the DB Daemon to export a large amount of data from the Aria DB in batch using DCMTK, and sometimes see that the DB Daemon stops responding. It has been reported that when exporting large amounts of data with the DB Daemon it could stop responding during the process. To overcome this, you can export a certain number of objects (e.g. 100), then restart the DB Daemon with your batch script, and continue on to export more.

The batch function to restart a windows service in batch looks something like this below. the batch script assumes the DB Daemon is installed on the same system the export batch script is running on, which might not be the case. Look into the DOS "sc" command for exact details how to use it.

The general idea is:

export (n) objects
reset
export (n) more,
reset
and so on.

In the script code below for restarting the service, the DB Daemon service name is "DB Daemon"
REM =====================================================================
REM Reset daemon
REM ========================================================================
:reset
echo Stopping daemon...
sc stop "DB Daemon"
timeout /t 20
echo Starting daemon...
sc start "DB Daemon"
timeout /t 20
goto :EOF