05-01-2007 06:21 AM
05-01-2007 03:54 PM
The second code does not make too much sense? The example will configure your card to acquire a finite number of sampels after the trigger is sensed on the specified PFI line. Is this not what you want? You might be asking about retriggering? This can also be done and the acquisition can be done in a loop. If you give a little more info we can give you what you are looking for.
Paul
05-02-2007 04:00 AM
05-02-2007 07:05 AM
If I get you correct you are trying to do something on a digital high edge. There are two different things you are trying to do, the first case is a HW trigger using daq, this is internal to the DAQmx driver where you can program a task to start on a digital edge, essentially programming the DAQ card to do HW edge detection. The second thing is software edge detection and gating. Here you actually are going to setup a digital input line and poll it. Use a shift register to detect a low to high transition and then pass the result to the case structure.
Paul