Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Synchronizing the Start of Timed Structures

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Use the Synchronize Timed Structure Starts VI to synchronize the start of timed structures on the block diagram. For example, if you have two timed structures on the block diagram, you can ensure that they execute on the same schedule relative to each other. You can configure the first timed structure to execute first and generate data, then configure the second timed structure to process that data when an iteration of the first structure finishes. You can synchronize the start of the timed structures to ensure that both structures use the same start time as the basis for their execution.

You can create synchronization groups that allow you to specify the structures on the block diagram that you want to synchronize. You can create a synchronization group by wiring a name for the group to the synchronization group name input and wiring an array of the timed structure names to the timed structure names input of the Synchronize Timed Structure Starts VI. The synchronization groups you create remain active until the VI completes execution.

The Synchronize Timed Structure Starts VI in the following block diagram creates a synchronization group, Timed Loop group, and synchronizes Timed Loops A and B to use the same start time.

A timed structure cannot belong to more than one synchronization group. If you attempt to add a timed structure that already belongs to a previous group to a new synchronization group , LabVIEW removes the structure from the previous group and adds it to the new group. You can set the replace (T) input of the Synchronize Timed Structure Starts VI to FALSE to prevent the movement of a timed structure that already belongs to a previous synchronization group. If you attempt to move the structure, LabVIEW returns an error.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit