05-06-2010 12:23 PM
Solved! Go to Solution.
05-06-2010 07:07 PM
Hi Nasgul,
The "PixelFormat" attribute is actually an enumeration consisting of name/value pairs. For GenICam cameras (such as GigE Vision) these names and values are determined by the camera's XML file, not IMAQdx. The names themselves are standardized by the "Standard Features Naming Convention" portion of GenICam (but their values are not).
I think you are referring to the Pixel Format property node. I think you are right that this is a numeric. This is likely because the available modes cannot be known before you actually run the code and LabVIEW enumeration values must be known at edit time, not compile time. The node itself as a numeric is likely there as a relic of the firewire interface. It would likely be more useful as a string I'd imagine.
You probably want to use the generic way of manipulating attributes instead. You first set the "Active Attribute" property to "PixelFormat" and then you can then query a list of available name/value pairs or simply set the value. IMAQdx lets you set the value directly as a string (using the standard names) rather than ever having to translate it to a numeric value.
Eric
05-07-2010 10:19 AM