30 lines
451 B
C++
30 lines
451 B
C++
#include <iostream>
|
|
|
|
#include "StreamManager.hpp"
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
StreamManager mgr;
|
|
PvString lConnectionID;
|
|
|
|
// If no devies are found, exit.
|
|
if (mgr.FindDevice(&lConnectionID).IsFailure())
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
if (mgr.ConnectToDevice(lConnectionID).IsFailure())
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
mgr.OpenStream(lConnectionID);
|
|
|
|
mgr.AcquireImages();
|
|
|
|
mgr.Disconnect();
|
|
|
|
return 0;
|
|
} |