Synchronize to Scan Engine VI

Owning Palette: NI Scan Engine VIs

Requires: Base Development System (Real-Time, Windows)

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.

Details  Example

 Add to the block diagram  Find on the palette
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
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.
error out contains error information. This output provides standard error out functionality.

Synchronize to Scan Engine Details

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.

Example

Refer to the Scan Engine.lvproj in the labview\examples\Scan Engine directory for an example of using the Synchronize to Scan Engine VI.

 Open example  Find related examples