This example demonstrates the retrieval of information from both the transport layer and the camera. Because the focus of this example is node access, which is where QuickSpin and regular Spinnaker differ, this example differs from NodeMapInfo quite a bit.
using namespace std;
{
{
cout << pNode->ToString() << endl;
return;
}
cout << "unavailable" << endl;
}
{
int result = 0;
try
{
cout << "Device serial number: ";
cout << "Device vendor name: ";
cout << "Device display name: ";
cout << endl;
}
{
cout <<
"Error: " << e.
what() << endl;
result = -1;
}
return result;
}
{
int result = 0;
try
{
cout << "Stream ID: ";
cout << "Stream type: ";
cout << endl;
}
{
cout <<
"Error: " << e.
what() << endl;
result = -1;
}
return result;
}
{
int result = 0;
try
{
cout << "Interface display name: ";
cout << "Interface ID: ";
cout << "Interface type: ";
cout << "Host adapter name: ";
cout << "Host adapter vendor: ";
cout << "Host adapter driver version: ";
PrintNodeInfo(&pInterface->TLInterface.HostAdapterDriverVersion);
cout << endl;
}
{
cout <<
"Error: " << e.
what() << endl;
result = -1;
}
return result;
}
{
int result = 0;
try
{
cout << "Exposure time: ";
cout << "Black level: ";
cout << "Height: ";
cout << endl;
}
{
cout <<
"Error: " << e.
what() << endl;
result = -1;
}
return result;
}
{
int result = 0;
cout << "Application build date: " << __DATE__ << " " << __TIME__ << endl << endl;
const LibraryVersion spinnakerLibraryVersion = system->GetLibraryVersion();
cout <<
"Spinnaker library version: " << spinnakerLibraryVersion.
major <<
"." << spinnakerLibraryVersion.
minor
<<
"." << spinnakerLibraryVersion.
type <<
"." << spinnakerLibraryVersion.
build << endl
<< endl;
unsigned int numCameras = camList.
GetSize();
cout << "Number of cameras detected: " << numCameras << endl << endl;
unsigned int numInterfaces = interfaceList.
GetSize();
cout << "Number of interfaces detected: " << numInterfaces << endl << endl;
cout << endl << "*** PRINTING INTERFACE INFORMATION ***" << endl << endl;
for (unsigned int i = 0; i < numInterfaces; i++)
{
}
cout << endl << "*** PRINTING TRANSPORT LAYER DEVICE INFORMATION ***" << endl << endl;
for (unsigned int i = 0; i < numCameras; i++)
{
}
cout << endl << "*** PRINTING TRANSPORT LAYER STREAMING INFORMATION ***" << endl << endl;
for (unsigned int i = 0; i < numCameras; i++)
{
}
cout << endl << "*** PRINTING GENICAM INFORMATION ***" << endl << endl;
for (unsigned int i = 0; i < numCameras; i++)
{
}
system->ReleaseInstance();
cout << endl << "Done! Press Enter to exit..." << endl;
getchar();
return result;
}