MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Podręcznik Użytkownika Strona 124

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 123
6 Defining Device-Specific Properties
6-12
IPropInfo functions you can retrieve the property name, its storage type and its
default value. This information is useful if you have a generic listener class that
handles multiple properties.
• value is a pointer to the location in memory where your adaptor stores the requested
property value.—The engine passes this value as a void*. Your getValue()
function must cast the value to the appropriate C++ data type. The following table
tells which C++ data type to cast to for all property types supported by the adaptor
kit.
imaqkit::PropertyTypes C++ Data Type
STRING char**
DOUBLE double*
INT int*
DOUBLE_ARRAY imaqkit::PropertyTypes::NDoubles*
INT_ARRAY imaqkit::PropertyTypes::NInts*
For nonscalar data types, strings, double arrays, and integer arrays, your listener
class must allocate sufficient memory for the current property value using the new[]
operator. The engine deletes this memory, calling delete[]. An example using a
string property is:
char** returnStr = reinterpret_cast<char**>(value);
*returnStr = imaqkit::imaqmalloc(sizeof(char) * (stringLength));
strcpy(*returnStr, currentPropertyValueString);
Suggested Algorithm for a getValue() Function
The design of the getValue() function varies with the needs of your device and the
facilities offered by its SDK. For example, you could create one get listener class that
handles value queries for all properties in a particular property container (general or
device-specific). In this case, the getValue() function includes a switch statement with
cases that handle each individual property.
Alternatively, define a separate get listener class for each property or each property
storage type. Then, the engine calls the specific listener for the property specified.
You also can define get listener classes that fit the way the device SDK organizes
property configuration. For example, if an SDK provides one function to configure all
device properties, you can define a get listener class for these properties.
Przeglądanie stron 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag

Privileg 283.820 9/20015 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Pralki Privileg 283.820 9/20015.
Dostarczamy 1 pdf podręczników Privileg 283.820 9/20015 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Pralki Privileg

Modele Rodzaj dokumentu
118.907 5/20263 Instrukcja Użytkownika   Privileg 118.907 5/20263 Benutzerhandbuch, 48 strony
266.471 2/20064 Instrukcja Użytkownika   Privileg 266.471 2/20064 Benutzerhandbuch [de] [en] , 44 strony
34512 Instrukcja Użytkownika   Privileg 34514 Benutzerhandbuch [en] , 52 strony
53615 Instrukcja Użytkownika   Privileg 53615 Benutzerhandbuch, 52 strony
27614 Instrukcja Użytkownika   Privileg 27614 Benutzerhandbuch [ja] [zh] , 48 strony
59614E Instrukcja Użytkownika   Privileg 59614E Benutzerhandbuch [de] [es] [fr] [it] [nl] [pt] , 52 strony
6255 Instrukcja Użytkownika   Privileg 6255 Benutzerhandbuch [en] , 48 strony
269.159 0/20093 Instrukcja Użytkownika   Privileg 269.159 0/20093 Benutzerhandbuch [ja] , 48 strony
360.614 2/20287 Instrukcja Użytkownika   Privileg 360.614 2/20287 Benutzerhandbuch, 48 strony
PRIVILEG9482, 20420 Instrukcja Użytkownika   Privileg PRIVILEG9482, 20420 Benutzerhandbuch, 48 strony
00899187_21350 Instrukcja Użytkownika   Privileg 00899187_21350 Benutzerhandbuch, 52 strony
126.006 6/20309 Instrukcja Użytkownika   Privileg 126.006 6/20309 Benutzerhandbuch, 48 strony
639.863 0/20021 Instrukcja Użytkownika   Privileg 639.863 0/20021 Benutzerhandbuch, 44 strony
83512 Instrukcja Użytkownika   Privileg 83514 Benutzerhandbuch, 52 strony
775.600 0/20306 Instrukcja Użytkownika   Privileg 340.593 3/20307 Benutzerhandbuch, 48 strony
266.471 2/20064 Instrukcja Użytkownika   Privileg 266.471 2/20064 Benutzerhandbuch, 44 strony
30716 Instrukcja Użytkownika   Privileg 30716 Benutzerhandbuch [en] , 52 strony
503.663 7/20310 Instrukcja Użytkownika   Privileg 775.542 4/20312 Benutzerhandbuch [bs] [hr] [sk] , 48 strony
00396536_21121 Instrukcja Użytkownika   Privileg 00396536_21121 Benutzerhandbuch, 52 strony
268.027 0/20289 Instrukcja Użytkownika   Privileg 268.027 0/20289 Benutzerhandbuch [pl] , 46 strony