# Hardware Acquisition Manual Triggers

A Task can be executed manually if the Camera Device is configured to acquire from a hardware trigger, and the Task Mode is set to Manual.

1. A Button element is added on a Page.
2. In this scenario, the Button is named "Online/Offline", and is used to acquire images via a hardware trigger while Online, and Offline would be used to manually acquire images, change acquisition settings, review past images, etc.

3. The OnClick script of the Button is used, with the following code, so the Task can be executed manually, and the Camera block will manually acquire an image:

       $Devices.Camera1.TriggerModel = CogAcqTriggerModelConstants.Manual;
       $Tasks.Task.TriggerEnabled = false;