“Pandat Utility: Pandat Run” Module

A core module calling Pandat.exe

class panpython.sdk.pandat_utility.pandat_run.WinCmdProcess_2(time_limit_in_min=15.0)[source]

Bases: object

Run a windows exe in cmd

Parameters

time_limit_in_min (float, default=15.0) – time limit (minutes) for an exe run

Examples

>>> from panpython.sdk.pandat_utility.pandat_run import WinCmdProcess_2
>>> m_pandat_process: WinCmdProcess_2 = WinCmdProcess_2(time_limit_in_min=15.0)
>>> run_list: str = '"' + 'pandat.exe' + '" "' + 'example_batchfile.pbfx' + '" "0"'
>>> m_pandat_process.run_silent(run_list=run_list,
...                             task_id='0')
get_elapsed_time()float[source]

Return elapsed time of exe

Returns

elapsed time of running Pandat.exe

Return type

float

run_silent(run_list, task_id)[source]

Run exe in silent mode

Parameters
  • run_list (str) – the command list to run

  • task_id (str) – an task id from calling to track