WriteRegister
Top  Previous  Next

Description

Writes a 32-bit integer value to the specified bootstrap register of the current camera.


Syntax


[VB]
objActiveUSB.WriteRegister Reg, Value


[C/C++]
HRESULT WriteRegister( long Reg, long Value );


Data Types
[VB]

Reg: Long


Parameters
[C/C++]

Reg [in]  
The 32-bit offset of the register in the camera's address space  
Value [in]  
The value to be written in the register  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This C++ example changes the value of the heartbeat timeout using the corresponding USB3 Vision™ register.

value=ActiveUSB.WriteRegister(0x0938,5000);

This VB example modifies a value of the custom camera feature.

ActiveUSB.WriteRegister &HA080,512


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 control custom camera attributes not available through USB3 Vision™ feature interface. Refer to the camera documentation for the list of the manufacturer-specific registers.