PreviousNext
Help > DAQmx Steps Reference > DAQmx Digital Step Types > Wait Digital Edges
Wait Digital Edges

This step waits for N edges detected on the specified Digital Line DAQmx Global Channel.

This Step is a Pass/Fail Test. It returns Passed if the number of edges is read before the timeout occurred.

To configure this step open the Edit Step window from Sequence editor.

In the Configuration Dialog Box, select the Mode and a valid DAQmx Global Channel.

For this Step, you can configure:

          Edge Type: select the edge type (Rising or Falling) to count;

          Number of Edges: number of edges to count before exiting the function from 1 to 100;

          Timeout (s): maximum time in seconds to wait to detect all the edges from -1 to 1000;

          Timer (ms): minimum time to wait between each read of the line from 10 to 200.

Note  A Timeout value of -1 means that the function will wait indefinitely the state of the line.

Tip  Only compatible variables are listed in the DAQmx Global Channel Selector according to Selected Mode and Step Type.

Note  The Mode option is enabled according to your Edition (see DAQmx Steps Licensing Options)

At execution, step configuration and results are added to the report.

Two variables are set in result, according to the Read operation:

       the number of Edges detected is saved in Step.Result.EdgesDetected;

       the time elapsed to detect all the edges is saved in Step.Result.TimeElapsed;

Tip  You may configure a Post-Expression to set the read value in another variable:
Locals.NbEdges = Step.Result.EdgesDetected

If the timeout occurred, the step Status is “Failed”.

 

See Also

Configuration Dialog Box

Mode Option

Configure IO for DAQmx Steps