Adding the Button

On a Page, a Button can be used to initiate several different types of actions. For this example, a Button will be used to acquire a new image every time the button is pushed by a user.

  1. On the Page, from the Toolbox, drag and drop a Button onto the Page.
  2. In the Text property, enter the text "Acquire Image."
  3. Right-click the Button on the Page, and from the Scripts drop-down menu, select On Mouse Click. Enter the following script:
    $Tasks.BufferImage.Run();
    $Tasks.CopyRegion.Run();
    
  4. Alternatively, set the Click Command property to the acquisition command (Devices.{CameraDeviceName}.Acquire).