Trigger Examples

The following examples demonstrate how to use SI_SCOPE's trigger mechanism.


Example-1 Simple trigger: Suppose that you are monitoring a line that sends the ASCII values for the decimal digits 0 through 9 followed by all the letters in the Alphabet A through Z from the DCE port to the DTE port and then stops communicating. If you only wanted to see the Alphabet and not the digits you could set up a trigger to do so. You would need to define a trigger on the data "0123456789" that would switch SI_SCOPE from idle to active mode, and monitor the trigger on the DCE port.

Example-2 Linked trigger: Suppose that you are monitoring a line exactly like that in example one except that this line continually sends 0 through 9 followed by A through Z from the DCE port. If you were still only interested in watching the alphabet you could set up a trigger link to do so. The first trigger in the link would be the same trigger used in example one. The second trigger would be set up with the data as "Z" to switch SI_SCOPE from active to idle mode, and monitor on the DCE port. For simplicity assume that the first trigger is keyed off F5 and the second trigger off F6. You would now set up two trigger links. The first link would have F5 as the primary with F6 as the secondary. This causes SI_SCOPE to skip over the numeric data. The second link would have F6 as the primary and F5 as the secondary. This causes SI_SCOPE to go back to idle mode as soon as the Z passes and wait until it sees the 0123456789 before going active again. Note that in this example SI_SCOPE is in a trigger loop and therefore never leaves triggering mode. If you want SI_SCOPE to exit this loop you will need to press the key of the active trigger.

Example-3 Wildcards: Suppose that you were monitoring a line exactly like that in example 2 except that the digit pattern was preceded by a 4 byte count field. For example the first pattern would be 0001 then 0-9 followed by A-Z. The second pattern was 0002 then 0-9 followed by A-Z and so on. Again suppose that you only wanted to see the characters in the alphabet. You would need to set up the two triggers and their links exactly like that in example 2 with one small change. The data pattern on the first trigger would now look like "****0123456789" where the "*" represents the wildcard character you defined. Remember that in order for SI_SCOPE to treat a character as a wildcard you need to define it as the wildcard character and turn wildcard processing on.