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.
Hardware and Software Requirements
Steps to Implement or Execute Code
- Connect the Virtual Bench
- Make sure that the device name is declared properly