10#pragma warning(disable : 4127)
15#include <cvb/device_factory.hpp>
23 auto nodeMaps = dev->NodeMaps();
26 return dev->NodeMap(
"TLDatastream");
34 if (
auto dataStreamNodeMap = DataStreamNodeMap(dev))
37 std::cout <<
"Number of lost frames: " << node->Value() << std::endl;
48 if (
auto dataStreamNodeMap = DataStreamNodeMap(dev))
53 std::cout <<
"Successfully enabled packet resend." << std::endl;
63 if (
auto dataStreamNodeMap = DataStreamNodeMap(dev))
69 node->SetValue(
false);
70 std::cout <<
"Successfully disabled passing corrupt frames." << std::endl;
74 std::cout <<
"Pass Corrupt Frames: Error disabling feature!" << std::endl;
81int main(
int argc,
char* argv[])
83 auto path = Cvb::InstallPath();
84 path += CVB_LIT(
"drivers/GenICam.vin");
89 path =
Cvb::String(inputPath.begin(), inputPath.end());
100 std::cout <<
"Failed to open the device: " << error.what() << std::endl;
105 auto lostFrames = LostFrames(dev);
108 EnablePacketResend(dev);
111 DiscardCorruptFrames(dev);
static std::shared_ptr< T > Open(const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin)
Opens a device with the given provider with its default board and port (if applicable).
Definition: decl_device_factory.hpp:50
Node representing a true / false value.
Definition: boolean_node.hpp:19
Represents a integer number.
Definition: integer_node.hpp:20
std::string String
String for wide characters or unicode characters.
Definition: string.hpp:45