5. if program is already running, then any of command line operation is processed only when
program was not busy (no operation was currently executing in program). Program must
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
132
相关PDF资料
84702-0008 CONN RECEPT ETHERNET 8-8 PNL MNT
848A MEMORY PROGRAMMER PARALLEL INTER
85506-0001 CONN MOD JACK VERT 8-8 HI-SPEED
85507-0001 CONN MOD JACK VERT 8-8 SHIELDED
85508-0001 CONN MOD JACK VERT 8-8 SHIELDED
85508-5001 CONN MOD JACK 8POS T/H HI SPEED
85511-0001 CONN MOD JACK VERT 8-8 HI-SPEED
862015-1 6 POS RECEPTACLE
相关代理商/技术参数
845 功能描述:程序设计器 - 基于通用和内存 REORD 615-865 UNIV. WITH SOFTWARE RoHS:否 制造商:Xeltek 产品:Universal Device Programmers 工具用于评估:EPROM, Parallel/Serial EEPROM, FPGA, PROM, Flash, BPROM, MCUs, PLD Devices 接口类型:Parallel, USB 工作电源电压:90 VAC to 250 VAC
845 1 1/2"X15YD 功能描述:SCOTCH BOOK TAPE 845 1-1/2 IN X 制造商:3m 系列:* 零件状态:在售 标准包装:24
845 3"X15YD 功能描述:SCOTCH BOOK TAPE 845 3 IN X 15 Y 制造商:3m 系列:* 零件状态:在售 标准包装:12
845 4"X15YD 功能描述:SCOTCH BOOK TAPE 845 4 IN X 15 Y 制造商:3m 系列:* 零件状态:在售 标准包装:8
845 PRO4 制造商:Micro-Star International 功能描述:845 P4 S478 SDRAM LAN - Bulk
845 PRO4-L 制造商:Micro-Star International 功能描述:845 P4 SKT478 ATX SDRAM - Bulk
845 ULTRA 制造商:Micro-Star International 功能描述:845 SKT-478 P4 DDR ATX AUD - Bulk
845 ULTRA-DF 制造商:Micro-Star International 功能描述:845 SKT-478 P4 DDR ATX AUD - Bulk