// uploading a file
mvIMPACT::acquire::GenICam::ODevFileStream file;
file.open( pDev, fileNameDevice.c_str() );
if( !file.fail() )
{
// Handle the successful upload.
}
else
{
// Handle the error.
}
A read access will look like:
const string fileNameDevice("UserFile");
// downloading a file works in a similar way
mvIMPACT::acquire::GenICam::IDevFileStream file;
file.open( pDev, fileNameDevice.c_str() );
if( !file.fail() )
{
// Handle the successful upload.
}
else
{
// Handle the error.
}
You can find a detailed code example in the C++ API manual in the documentation of the classes
mvIMPACT::acquire::GenICam::IDevFileStream and
mvIMPACT::acquire::GenICam::ODevFileStream
18.9 Working with device features
There are several use cases concerning device features:
18.9.1 Reset timestamp by hardware
This feature can be used
for precise control of timestamp
for one camera or♦
to synchronize timestamp of multitude of cameras.♦
•
The latter sample, can be achieved by follwing steps:
Define the input line ("TriggerSource") to reset the timestamp, e.g. "Line5" and1.
set the "Trigger Selector" to "mvTimestampReset".2.
Connect all input lines of all cameras together.3.
Finally, use one output of one camera to generate reset edge:4.
18 Use cases
238