Software Triggering | |||||||||||
Home | DAQ Techniques | Download as a PDF | View as one page<< Previous 1 2 3 4 5 6 Next >> Software Triggering, Part 2This page describes the steps necessary to add software triggering for event detection to a data acquisition application on a Data Acquisition Processor system. Or go back to start at page 1 of Software Triggering. Triggering: How Do You Use It?
You will add the following additional features to your configuration.
It is presumed here that the application is configured
for input sampling. The sampling configuration can have any
number of channels, and you can pick any channel you want to
detect events. Here, we will presume that triggering scans the
contents of the first channel pipe Defining the Trigger and Pipe A trigger T_VHigh mode=normal Define a pipe P_Select word Define Processing to Detect EventsDefine the processing task that makes the data selection. The possibilities are limitless... but this article covers only the simple case that an extreme signal level indicates an event of interest. Presume that any value higher than +25000 indicates that an event has occurred. In DAPstudio, select the Processing tab and the Procedure sub-tab. Enter the command name Limit(P_Select,inside,25000,32767,T_VHigh,inside,25000,32767)
Define Processing to Respond to Events Let us suppose that the desired action is to capture 100
samples prior to the event and 924 samples from the event
onward, for a total of 1024 samples. To do this, use another
pre-defined processing command called Wait(IPipe1,T_VHigh,100,9024,P_Select)
You will typically go to the Send to PC tab, de-select the usual input channels, and select the retained data pipe (in our example, Your application is configured and ready to test. Once you have the configuration set up correctly, you can copy it into any software application you want, from an embedded application that you write yourself, to a monster GUI application with every conceivable kind of graphical displays and user controls. The performance is embedded in the data acquisition processor. We have explored just one simple configuration – testing for a triggering condition in one data channel and taking selected data from another. Part 3 introduces software trigger processing of data in blocked groups. << Previous 1 2 3 4 5 6 Next >> View as one page |