apppref_gui_sample_app
Table of contents
Introduction
This explanation assumes that the i-PRO camera application development environment has been completed.
If you are not ready to build the development environment, please refer to here to complete it.
Also, in this tutorial, the SDK installation directory is described as ${SDK_DIR}
.
Operation overview
apppref_gui_sample_app is a sample application that displays and sets AppPref from the GUI screen.
External libraries required for operation
No special mention.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/apppref_gui_sample_app
The Python source code is stored below.
${SDK_DIR}/src/adamapp-py/apppref_gui_sample_app
How to build the sample app (C/C++)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR}
$ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp/apppref_gui_sample_app
$ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp/apppref_gui_sample_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
If the image below is displayed, it is successful.
If you get a message that appControl.html cannot be found, copy the following.
${SDK_DIR}/src/adamapp-py/apppref_gui_sample_app/data/appControl.html
Paste it below.
${SDK_DIR}/src/adamapp/apppref_gui_sample_app/data/appControl.html
How to build the sample app (Python)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR}
$ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp-py/apppref_gui_sample_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
If the image below is displayed, it is successful.
How to use the sample app
Since this is a sample application, changing the value has no particular meaning. Please check the operation by operating the check box and list box.
Appendix
How to change preferences
This application has some preferneces which a user is able to change.
When changing some preferneces, push "AppPrefs" button in "ADAM OPERATION UI" html page.
TestBoolean :
boolean sample parameterTestInteger :
Integer sample parameterTestString :
String sample parameterTestEnum :
Enum sample parameterTestBinary :
Binary sample parameter
Application preferences input limit
Integer : -9223372036854775808 to 9223372036854775807
String : Up to 255 characters can be entered
Binary : Up to 255 characters can be entered
*Boolean, Enum is nothing special