Example, 3 example – Bronkhorst FLOW-BUS LabVIEW Driver User Manual
Page 13
FLOW-BUS LabVIEW™ Driver Manual
© 2014 Bronkhorst®
Bronkhorst®
13
4.3
Example
This example shows how to create a VI that can configure the user tag of an instrument.
First we need the values of the folloing parameters:
Node Address
Communication Command
Process number
Parameter number
Data Type
Data
These parameters can be found in the the parameter properties table:
Parameter
number (DDE)
Parameter name Group 0
Group 1
Group 2
Process
number
FB nr
(par)
Var
Type
Var
Length
...
115
User tag
11
113
6
c
-2
...
The next step is to enter the values in the corresponding fields of the FLOW-BUS Command Cluster. Note:
The Communication Command will be set to “send parameter with destination address and 00 response” which corresponds to
a write command with a status reply.
The combination of Var Type c and Var Length -2 indicates the data type is a string, so the Data Type will be set to String.
When all settings are entered the cluster should look like this:
Figure 8: FLOW-BUS Command Cluster
If this cluster is wired to the FLOW-BUS RW VI, every time the VI is executed, the same values will be sent. To make the VI
interactive, the controls of the node address and the string data can be wired into the cluster. To do this, wire the cluster to the
Bundle by Name function and select the Node Address and the Data for String as the inputs. Then create controls for these two
values and connect the output cluster to the FLOW BUS RW VI.
Figure 9: Interactive Parameter Bundle