Balluff - BVS CA-SF Technical Documentation
|
The BVS CA-SF offers a 64 KByte section in the Flash memory that can be used to upload a custom file to (UserFile).
To read or write this file you can use the following GenICam File Access Control and its interfaces:
ImpactControlCenter offers a wizard for the File Access Control usage:
The header providing the file access related classes must be included into the application:
#include <mvIMPACT_CPP/mvIMPACT_acquire_GenICam_FileStream.h>
A write access then will look like:
const string fileNameDevice("UserFile"); // 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