The proper circumstance where a call to Force Trigger would be effective will be when you have your system waiting for an Analog Trigger, however, somehow this trigger does not come along. Using the Force Trigger function, you can simulate the Analog Trigger and start your task.
The Auto Trigger must be disabled to ensure that the Force Trigger functionality is set correctly.
This code shows how to properly use the Force Trigger function and get as a result a "Forced" as Trigger Reason.
LabWindows/CVI
Virtual Bench
- Connect the Virtual Bench
- Make sure that the device name is declared properly
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Great example!
Great work!