Advertisement
Guest User

Untitled

a guest
Aug 5th, 2022
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. try{
  2.             //let's pretend to set some odd width
  3.             int desired_w = 1003;
  4.             CIntegerParameter width(camera.GetNodeMap(), "Width");        
  5.             cout << "Width increment is equal to: " << width.GetInc() << endl;
  6.             width.TrySetValue(desired_w, IntegerValueCorrection_Nearest);  
  7.  
  8.             cout << "Width has been set to: " << width.GetValue() << endl;
  9.         }
  10.         catch (Pylon::RuntimeException e)
  11.         {
  12.             cout << "Hmm, something went wrong..." << endl;
  13.             cout << e.what() << endl;
  14.             cout << e.GetDescription() << endl;
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement