Whe using a software trigger with the 5122, you generate the trigger whenver you call the "Send Software Trigger" function. you can program the software events that cause this funtion to be called in any way you want.
In the simplest case, you could place the "Send Software Trigger" function in a while loop and only execute it when the user presses a button.
Jack