Hardware - Dataman 448PRO2AP User Manual

Hide thumbs Also See for 448PRO2AP:
Table of Contents

Advertisement

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
When PG4UW receives the commands, it will do following procedures:
1. loads data file c:\15001-25001\file_10.bin
2. saves the currently selected device settings and buffer data to project file
c:\projects\project_10.eprj
If the result of operations performed is OK, PG4UWCMD application will return ExitCode (or
ErrorLevel) value 0.
If there are some errors (can not load file or save to project file), PG4UWCMD application will
return ExitCode value equal or greater than 1.
Note: When using the above commands, user must be sure the PG4UW is not performing any
device operation, for example device programming. If the PG4UW is busy, it will refuse the
commands and returns error status (ExitCode equal or greater than value 1).

Hardware

Warning:
Devices described at this manual are class A products. In domestic
environment this products may cause radio interference in which case the
user may be required to take adequate measures.
Class A ITE notice
139
Common notes

Advertisement

Table of Contents
loading

This manual is also suitable for:

48pro2ap

Table of Contents