#RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=parametrizing.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include #include #include #include #include #include #cs This script is created to be used for reliability testing, and automates system start and stop: TemServer, PEOUI, (optional) DM, TIA and Flucamviewer. Per cycle TemServer, PEOUI, TestVacuum application are started, vacuum switched on, (optional) DM, TIA and Flucamviewer are started. Then Flucamviewer duration test runs for 100 random actions and then FlucamViewer is closed. Subsequently in TIA 7 random acquisitions are done, followed by closing TIA, DM (if exists), PEOUI and TEMServer. Prerequisites: PC restarted (optionally) and Temserver NOT running. Log in as factory! Directly after installation of GMS software, Digital Micrograph must be started manually and handle the dialogs for setting Prefs, etc. For testing in VM also the 'enable_simulated_camera.s' script has to be executed, so that during startup of DM the CTRL-Shift keys don't have to be pressed. Also the camera names must be set to integrate properly with TIA. #ce If $CmdLine[0] = 0 Then MsgBox(0, 'Command Line Info', 'No arguments passed, so defaults selected') Elseif $CmdLine[0] = 1 Then $logFilePath = FileOpen($CmdLine[1],9) Consolewrite("LogFilePath = " & $logFilePath) MsgBox(0, 'Command Line Info', '$logFilePath' & $logFilePath) $cycles = 10 Elseif $CmdLine[0] = 2 Then $logFilePath = FileOpen($CmdLine[1],9) $cycles = $CmdLine[2] Consolewrite("LogFilePath = " & $logFilePath) Consolewrite("cycles = " & $cycles) MsgBox(0, 'Command Line Info', '$logFilePath' & $logFilePath) MsgBox(0, 'Command Line Info', '$cycles' & $cycles) Elseif $CmdLine[0] > 2 Then Exit EndIf ;$logFile = FileOpen(".\Logs\System_Start_stop" & @YEAR & @MON & @MDAY & "_" & @HOUR & @MIN & @SEC & ".log",1) ;FileWrite($tst_logFile,@CR & @MON & "/" & @MDAY & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & " " & $logFile) ;FileWrite($tst_logFile,@CR & @MON & "/" & @MDAY & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & " " & $cycles)