ReadRegister
Top  Previous  Next

Description

Reads a 32-bit integer value from the specified bootstrap register of the current camera.


Syntax


[VB]
Value=objActiveUSB.ReadRegister( Reg )


[C/C++]
HRESULT ReadRegister( long Reg, long* pValue );


Data Types
[VB]

Reg: Long
Return value: Long


Parameters
[C/C++]

Reg [in]  
The 32-bit offset of the register in the camera's address space  
pValue [out,retval]  
Pointer to the registers's 32-bit value  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Examples


This C++ example reads the value of the heartbeat timeout from the corresponding USB3 Vision™ register :

value=ActiveUSB.ReadRegister(0x00D8);

This VB example reads the value of the custom camera feature:

value=ActiveUSB.ReadRegister(&HA080)

Remarks


The list of standard bootstrap registers can be found in "USB3 Vision Camera Interface Standard For Machine Vision" published by the Automated Imaging Association.

This method can be used to access custom camera attributes not available through USB3 Vision™ feature interface. Refer to the camera documentation for the list of the manufacturer-specific registers.