10-12-2006 10:54 AM
10-16-2006 11:18 AM
10-16-2006 05:19 PM
10-17-2006
08:54 AM
- last edited on
07-09-2025
01:34 PM
by
Content Cleaner
Thanks Johann. Someone should replace that string in the release notes PDF file with "CameraAttributes::Brightness::Value", instead of just Brightness. It looked like that just "Brightness:Value" would work also. I downloaded the IMAQdx from http://digital.ni.com/softlib.nsf/websearch/161B95F09A55347F862571EF00549358?opendocument&node=132060_US, and it should be registered since we have a site licence. I can't seem to find the have the Low-Level Grab Async.vi example, or the Grab and Attributes Setup.vi. I can find an .exe file @ this location: C:\Program Files\National Instruments\NI-IMAQdx\Examples\MSVC\Low-Level Grab Async? Thanks again.
Kevin Baker
10-17-2006 09:01 AM
Kevin
The LabVIEW examples are installed into the following library:
C:\Program Files\National Instruments\LabVIEW 8.2\examples\IMAQ\IMAQdx Examples.llb
Open the examples directly or use the Example Finder to locate the examples.
Johann
11-23-2006 03:08 AM
11-23-2006 03:17 AM
11-27-2006 09:54 AM
What does your Vendor variable look like? Based on your code, I would expect the following snippet to work:
char Vendor[IMAQDX_MAX_API_STRING_LENGTH];
IMAQdxGetAttribute (sessionID, IMAQdxAttributeVendorName, IMAQdxValueTypeString, &Vendor);
Looking at the header file NIIMAQdx.h, we see the following:
IMAQdxError NI_FUNC IMAQdxGetAttribute(IMAQdxSession id, const char* name, IMAQdxValueType type, void* value);
IMAQdxError NI_FUNCC IMAQdxSetAttribute(IMAQdxSession id, const char* name, IMAQdxValueType type, ...);
The important distinction is that GetAttribute is passed by reference as a pointer (void*), whereas SetAtttribute is passed by value as a variable argument list (...) . This applies to all value types. Here is another example for shutter value:
uInt32 ES;
IMAQdxGetAttribute (sessionID, "Shutter::Value", IMAQdxValueTypeU32, &ES);
IMAQdxSetAttribute (sessionID, "Shutter::Value", IMAQdxValueTypeU32, ES);
Hope this helps,
Johann S
11-27-2006 10:28 AM