This VI performs a grab acquisition from an IMAQdx-compatible camera and allows the user to generate a software trigger to trigger the acquisition.
This VI uses the IMAQdx functions to open a session to a camera, set trigger settings, and start a grab. A parallel trigger loop monitors a UI button that allows the user to send a software trigger to the camera by setting the TriggerSoftware attribute of the camera. When the camera receives a trigger, it will acquire and return a single frame to the IMAQdx Grab 2 VI. The user can trigger as many frames as they want before stopping the acquisition.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks! It was very helpful