|Download Help (Windows Only)|
For the processes in the Dataflow Script to operate on data, each process that produces data must send it to the first process in the Dataflow Script. The data-producing process must also divide it into data sets according to the data group whose channels acquired the data.
In the process VI case that produces data, create the following code to send the data to the first process in the Dataflow Script. Customize the gray sections for your unique programming goals.
|Make a copy of the point value map associated with the data group. This map is created for each data group in the reference code initialization subVI, so you can duplicate the existing map. Copying the map preserves the values from the time when the data enters the Dataflow Script, while the original map continues to receive updates from other processes.|
|Write a map point named AcqBlockNumber whose value is a running numeric count that specifies the order of each data set relative to other data sets from the same data group. This means you must maintain this count separately for each data group for which the process produces data.|
|When the process has finished operating on the data, bundle the elements into a cluster with the following elements:
In this example, the data set cluster consists only of single-point values and properties in the point value map element of the cluster, so the process leaves the waveform element empty.
|Use the following type definition to specify the correct format for the data cluster: labview\vi.lib\addons\InsightCM\Devices\Shared\DataFlow\controls\Data.ctl|
|Call the GetFirstProcessModule VI to send the data cluster to the first process in the Dataflow Script via a ProcessDataFlowBlock Qbus message. The first process will operate on the data and then transfer it to the next process. Each subsequent Dataflow Script process repeats this action.|