Synchronizes execution timing to the scan period of the NI Scan Engine. This VI waits for each scan to complete and triggers subsequent code to execute once the scan engine has updated all values.

Use the Scan Engine page to configure the scan period. You also can use the Set Scan Engine Period VI to set the scan period programmatically.


icon

Inputs/Outputs

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iu32.png scans since last call

    scans since last call returns the number of times the scan engine has completed a scan since the last call of this VI. You can use this information to identify missed scan iterations and determine whether the synchronized code consistently finishes executing on time.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Use this VI for code running outside of a timed structure. For most NI Scan Engine use cases, NI recommends using a timed structure with the Synchronize to Scan Engine timing source.

    This VI must run on a target with the NI Scan Engine installed.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Scan Engine\Scan Engine.lvproj