![Elnec SEEprog User Manual Download Page 161](http://html1.mh-extra.com/html/elnec/seeprog/seeprog_user-manual_2395127161.webp)
Common notes
be in basic state, i.e. main program window focused, no modal dialogs displayed, no
menu commands opened or executed
6. order of processing command line parameters when using more parameters together is
defined firmly as following:
step1 Load file (/Loadfile:...)
step2 Load project (/Prj:...)
step3 EPROM/FLASH autoselect
step4 Program device (/Program[:switch])
step5 Close of control program (/Close only together with parameter /Program)
Example 1:
pg4uwcmd.exe /program:noanyquest /loadfile:c:\empfile.hex
Following operations will perform:
1. start pg4uw.exe (if not already running)
2. load file c:\empfile.hex
3. start program device operation without questions
4. pg4uwcmd.exe is still running and periodically checking status of pg4uw.exe
5. when device programming completes, pg4uwcmd.exe is closed and is returning
ExitCode depending on load file and device programming results in pg4uw.exe. When
all operations were successful, pg4uwcmd.exe returns 0, otherwise returns value 1 or
more.
Example 2:
pg4uwcmd.exe /program:noanyquest /prj:c:\emproject.eprj
The operations are the same as in Example 1, just Load file operation is replaced by Load
project file c:\emproject.eprj command.
Example 3:
Using pg4uwcmd.exe in batch file and testing return code of pg4uwcmd.exe.
rem ------- beginning of batch -------------------------
@echo off
rem Call application with wished parameters
pg4uwcmd.exe /program:noanyquest /prj:c:\emproject.eprj
rem Detect result of command line execution
rem Variable ErrorLevel is tested, value 1 or greater means the error occurred
if ErrorLevel 1 goto FAILURE
echo Command line operation was successful
goto BATCHEND
:FAILURE
echo Command line operation error(s)
:BATCHEND
echo.
echo This is end of batch file (or continue)
pause
rem ------- end of batch -------------------------
Example 4:
Let's assume the PG4UW control program is running, and has user selected device. We need
to load required data to PG4UW device buffer and save the selected device settings and
buffer content to project file. Data required for device are stored in file c:\15001-
25001\file_10.bin. Project file will be stored at c:\projects\project_10.eprj.
Following command line parameters should be specified to realize wished operation:
pg4uwcmd.exe /loadfile:c:\15001-25001\file_10.bin /saveproject:c:\projects\project_10.eprj
161
Summary of Contents for SEEprog
Page 7: ...Introduction Introduction 7...
Page 12: ...ELNEC s r o Quick Start 12...
Page 15: ...Detailed description Detailed description 15...
Page 16: ...ELNEC s r o BeeHive204 16...
Page 30: ...ELNEC s r o BeeProg2 BeeProg2C BeeProg 30...
Page 45: ...SmartProg2 SmartProg2 45...
Page 54: ...ELNEC s r o MEMprog2 54...
Page 61: ...SEEprog SEEprog 61...
Page 66: ...ELNEC s r o Setup 66...
Page 77: ...PG4UW PG4UW 77...
Page 144: ...ELNEC s r o PG4UWMC 144...
Page 154: ...ELNEC s r o Common notes 154...
Page 168: ...ELNEC s r o Troubleshooting and warranty 168...