labview_wireless_sensor_network_module_12-14-2023
labview_wireless_sensor_network_module_12-14-2023
Wireless
Sensor
Network
Module
2023-12-14
LabVIEW Wireless Sensor Network Module
Contents
Wireless Sensor Network Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Related Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Creating Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Configuring a Project with Offline Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Configuring a Project with Connected Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Comparing a Deployed Node to One on the Host. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Creating Targets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Using LabVIEW WSN Targets on WSN Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Limitations in Developing Block Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Array Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Data Communication Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Memory Control Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Numeric Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Data Type Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Fixed-Point Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
String Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Structures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Unsupported VIs and Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Performance and Memory Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
User Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Using Elemental I/O Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Using Elemental I/O Property Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Properties for NI WSN Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Analog Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
NI WSN-3202. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
NI WSN-3212. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
NI WSN-3214. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
NI WSN-3226. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Digital I/O Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
NI WSN-3202. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
NI WSN-3212. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
NI WSN-3214. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2 ni.com
LabVIEW Wireless Sensor Network Module
NI WSN-3226. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
NI WSN-3230. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
NI WSN-3231. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Adding and Removing Header Files from an Inline C Node. . . . . . . . . . . . . . . . . 44
Communicating with WSN Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Sending and Receiving Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Reading and Writing Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Supported User-Defined I/O Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Accessing User RAM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Building VIs into Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Deploying Applications to WSN Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Debugging Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
LabVIEW WSN Module Error Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Wireless Sensor Network Module VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Elemental I/O Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Elemental IO Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Elemental IO Property Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
WSN Host API VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
WSN Cancel Firmware Deployment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
WSN Cancel Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
WSN Close Gateway. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
WSN Close Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
WSN Close Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
WSN Deploy Firmware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
WSN Discover All Nodes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
WSN Gateway Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
WSN Get New Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
WSN Get Node Info. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
WSN Message Status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
WSN Open Gateway. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
WSN Open Node Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
WSN Send Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
WSN VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Elemental I/O Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
© National Instruments 3
LabVIEW Wireless Sensor Network Module
Elemental IO Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Elemental IO Property Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
User Memory VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Copy Sector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Erase Sector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Get Number of Erase Cycles Remaining. . . . . . . . . . . . . . . . . . . . . . . . 80
Is Sector Empty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Read from Sector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Write to Sector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
User RAM VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
User RAM Allocate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
User RAM Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
User RAM Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
User RAM BlockCopy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
User RAM Free. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
User RAM Property Node. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Configuration & Communication VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Config Node VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
NI WSN-3202. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
NI WSN-3212. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
NI WSN-3214. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
NI WSN-3226. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
NI WSN-3230. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
NI WSN-3231. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Radio Messages VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Serial VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
WSM Serial Port Init VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
WSN Serial Port Receiver Power VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
WSN Serial Port Read VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
WSN Serial Port Close VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
WSN Serial Port Bytes At Port VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
WSN Serial Port Break VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
WSN Serial Port Write VI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
User Calibration VIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
4 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 5
LabVIEW Wireless Sensor Network Module
6 ni.com
LabVIEW Wireless Sensor Network Module
■ Refer to the KnowledgeBase at ni.com for a WSN tutorial and the latest
information about the Wireless Sensor Network Module.
■ Refer to the KnowledgeBase at ni.com for more information about the
WSN execution model.
© National Instruments 7
LabVIEW Wireless Sensor Network Module
8 ni.com
LabVIEW Wireless Sensor Network Module
5. Click the New target or device radio button, select the node to add, and
click OK.
6. Assign an ID to the node, and click OK.
7. Right-click the node in the Project Explorer window and select Properties
to configure node settings. Click the Help button for information about the
node settings.
© National Instruments 9
LabVIEW Wireless Sensor Network Module
1. Create a project.
2. In the Project Explorer window, right-click the project root and select
New»Targets and Devices from the shortcut menu to display the Add
Targets and Devices dialog box.
3. Select Existing target or device to display the available targets and devices.
4. Expand the WSN Gateway folder. LabVIEW displays the WSN gateways that
you configured in the Measurement & Automation Explorer (MAX).
5. Select a gateway from the list of available gateways.
6. Click the OK button. The gateway appears in the Project Explorer window.
Note You must set a time server for the
WSN gateway to obtain significant time
information in the application. Refer to the
Measurement & Automation Explorer Help
for WSN, available by selecting
Start»All Programs»National
Instruments»NI-WSN»Configuring WSN
in MAX
, for more information about configuring
WSN gateways.
7. Right-click the gateway in the Project Explorer window and select
New»Targets and Devices from the shortcut menu to display the Add
Targets and Devices dialog box.
8. Select Existing target or device to display the available targets and devices.
9. Expand the WSN Node folder. LabVIEW displays the WSN nodes that you
configured in MAX.
Note Refer to the Measurement &
Automation Explorer Help for WSN,
10 ni.com
LabVIEW Wireless Sensor Network Module
available by selecting
Start»All Programs»National
Instruments»NI-WSN»Configuring WSN
in MAX
, for more information about configuring
WSN nodes.
10. Select a WSN node from the list of available WSN nodes.
11. Click the OK button. The WSN node appears under the gateway in the
Project Explorer window.
12. Right-click the WSN node in the Project Explorer window and select Add
LabVIEW WSN Target from the shortcut menu to add a WSN target to the
WSN node.
© National Instruments 11
LabVIEW Wireless Sensor Network Module
example, you can use this state to sample data from the analog or digital lines
or count events.
Note The value of a local variable initialized in
one state is not passed to the same local
variable in a different state. You can use a global
variable instead to pass values between states.
Alternatively, you can use an uninitialized shift
register or a Feedback Node.
The WSN VI must periodically exit these states to receive messages from the
gateway. As a result, if the application delays too long in a state and blocks the state
machine, the application might crash. National Instruments recommends that you
use the following guidelines when determining how long the application remains in
states:
12 ni.com
LabVIEW Wireless Sensor Network Module
receive errors when you try to build the VI into an application. In most cases you see
a broken Run button.
WSN VIs support the following block diagram objects differently from how VIs
running on Windows support these objects:
■
Array Functions
■
Data Communication functions
■ Memory Control functions
■
Numeric functions
■ String functions
■ Structures
WSN VIs also differ in data type support. Some VIs and functions also are
unsupported.
■ Array to Matrix
■ Matrix to Array
© National Instruments 13
LabVIEW Wireless Sensor Network Module
■ Color to RGB
■ RGB to Color
■ Flatten To String
■ Scaling VIs
The Round To Nearest and Round Toward –Infinity functions return the same output
on timestamps because when a timestamp is rounded to the nearest integer, the
timestamp value always is rounded down to the next lowest integer.
14 ni.com
LabVIEW Wireless Sensor Network Module
You cannot use the Type Cast or Unflatten From String function to obtain a valid
data value reference. You must use the New Data Value Reference function instead.
■ Arrays
■ Booleans
■ Clusters
Note While clusters are supported, National
Instruments recommends avoiding clusters,
including error clusters, in WSN applications
because clusters increase the size of the
application.
■ Double-precision, floating-point numerics (represented as single-precision,
32-bit, floating point numerics)
Note While double-precision, floating-point
numerics are supported, National
Instruments recommends avoiding double-
precision, floating-point numerics in WSN
applications because this data type slows
the performance of the application.
■ Enumerated types
■ Fixed-point numerics
■ Strings
■ 8-bit, 16-bit, and 32-bit signed integers
■ Timestamps
Note WSN nodes return timestamps in
terms of time elapsed since 12:00 a.m.,
Thursday, January 1, 1970, Universal Time
[01-01-1970 00:00:00]. WSN gateways return
timestamps in terms of time elapsed since
12:00 a.m., Friday, January 1, 1904,
Universal Time [01-01-1904 00:00:00].
© National Instruments 15
LabVIEW Wireless Sensor Network Module
Comparison Functions
The following Comparison functions support the fixed-point data type:
■ Equal?
■
Equal To 0?
■ Greater Or Equal?
■ Greater Or Equal To 0?
■ Greater?
■
Greater Than 0?
■ Less Or Equal?
16 ni.com
LabVIEW Wireless Sensor Network Module
■ Less Or Equal To 0?
■ Less?
■ Less Than 0?
■ Not Equal?
■
Not Equal To 0?
Conversion Functions
The following Conversion functions support the fixed-point data type:
■
Logical Shift
■ Rotate Left With Carry
■
Rotate Right With Carry
© National Instruments 17
LabVIEW Wireless Sensor Network Module
Fixed-Point Functions
The following Fixed-Point functions are supported:
Numeric Functions
The following Numeric functions support the fixed-point data type:
■ Absolute Value
■ Add
■
Decrement
■ Increment
■ Multiply
■
Negate
■ Round To Nearest
■
Round Toward +Infinity
■ Round Toward –Infinity
■ Scale By Power Of 2 Function
■ Sign
■ Subtract
■ Square
■
Decimal String To Number
■ Fract/Exp String To Number
■
Hexadecimal String To Number
■ Number To Decimal String
18 ni.com
LabVIEW Wireless Sensor Network Module
Structures
The Inline C Node supports the fixed-point data type.
© National Instruments 19
LabVIEW Wireless Sensor Network Module
function. The following Search and Replace String inputs are unsupported because
they apply to regular expression mode:
■ multiline?
■ ignore case?
■ Event structure
■ All shared variables except NI-PSP I/O variables
■ Timed Structures and VIs
I/O Variables
The Wireless Sensor Network Module only supports the NI-PSP I/O variable type of
shared variable. You use I/O variables in WSN VIs to read data from and write data to
the host.
Formula Nodes
Formula Nodes have the following restrictions:
■ You must use strict C code or LabVIEW cannot build the VI into an
application. LabVIEW does not check for strict C code at edit time.
■ Clusters are unsupported in the Formula Node.
■ Only 1D and 2D arrays are supported in the Formula Node.
■ You cannot define variables inside of a Formula Node. For example, int x
; and double y; result in an error when you build the VI into an
application. The only way to create variables in a Formula Node is to create
the variables as inputs and outputs.
■ The ** power function is unsupported. To perform a power operation in a
Formula Node, you must use the pow() function. For example, replace Y=X*
*4; with Y=pow(X,4);.
20 ni.com
LabVIEW Wireless Sensor Network Module
■ You cannot declare data types for the inputs or outputs. If you declare
outputs inside of a Formula Node, the Formula Node causes syntax errors in
the generated code. Create an input with the same name and type as the
output to avoid declaring the output inside of a Formula Node.
■ All Formula Node outputs are floating-point values.
© National Instruments 21
LabVIEW Wireless Sensor Network Module
22 ni.com
LabVIEW Wireless Sensor Network Module
You can expand an Elemental I/O Node by clicking the upper or lower edge of the
node with the Positioning tool and dragging the edge up or down. LabVIEW
automatically fills in each additional terminal with Elemental I/O items in the order
they appear in the Project Explorer window.
You can change the order in which the Elemental I/O items appear in the Project
Explorer window prior to expanding the node. In the Project Explorer window,
© National Instruments 23
LabVIEW Wireless Sensor Network Module
select the Elemental I/O item under the WSN target and drag the Elemental I/O item
to the new position in the project tree. If you change the order of items in the
Project Explorer window after you expand the node on the block diagram, the
node does not update until you collapse the node and expand the node again.
You also can expand the Elemental I/O Node by right-clicking an Elemental I/O item
in the Elemental I/O Node and selecting Add Element from the shortcut menu. A
new unconfigured I/O Name terminal appears in the Elemental I/O Node. Right-
click the unconfigured I/O Name terminal and select Select Elemental I/O from
the shortcut menu.
1. Create a new VI or open an existing VI that is under an WSN target that also
contains Elemental I/O items.
2. Place an Elemental I/O Property Node on the block diagram.
3. Right-click the Elemental I/O Property Node and select Select Item from the
shortcut menu. The Select Item submenu displays the Elemental I/O items
present in the Project Explorer window under the WSN target. Select the
Elemental I/O item you want to use.
4. Right-click the Property terminal in the Elemental I/O Property Node and
select Select Property from the shortcut menu to select a property you want
to assign to the Elemental I/O item. LabVIEW displays the properties available
24 ni.com
LabVIEW Wireless Sensor Network Module
for the WSN target in the Select Property submenu. LabVIEW displays No
Properties Available in the shortcut menu if the WSN target does not
support properties for the Elemental I/O item you select.
Tip You also can click the Elemental I/O
Property Node and use the shortcut menu to
select properties available for the WSN
target.
You can add additional Property terminals in the Elemental I/O Property Node by
right-clicking the node and selecting Add Element from the shortcut menu. A new
Property terminal appears in the Elemental I/O Property Node.
© National Instruments 25
LabVIEW Wireless Sensor Network Module
Property Description
Range Returns or sets the gain for the corresponding a
nalog input. The default value is Host Driven.
This property can contain the following values:
■ ±0.5 V
■ ±2 V
■ ±5 V
■ ±10 V
■ Host Driven
Sensor Power Returns or sets the sensor excitation for the corr
esponding analog input. The default value is Ho
st Driven.
This property can contain the following values:
■ 0 ms before sampling
■ 25 ms before sampling
■ 100 ms before sampling
26 ni.com
LabVIEW Wireless Sensor Network Module
Property Description
CJC Source Returns or sets CJC source. The default value is
Host Driven.
This property can contain the following values:
■ Internal CJC
■ 0C
■ 25 C
■ Host Driven
© National Instruments 27
LabVIEW Wireless Sensor Network Module
■ T
■ E
■ R
■ S
■ N
■ B
■ Host Driven
Property Description
Channel Configuration Returns or sets the Channel Bridge Configuratio
n.
The default is value Host Driven.
This property can contain the following values:
■ Host Driven
■ Full Bridge Strain Type I
■ Full Bridge Strain Type II
■ Full Bridge Strain Type III
■ Half Bridge Strain Type I
■ Half Bridge Strain Type II
■ Quarter Bridge Strain Type I
■ Full Bridge Ratiometric
■ Half Bridge Ratiometric
■ Quarter Bridge Ratiometric
■ Channel Disabled
For detailed descriptions of the bridge configura
tions, see NI WSN-3214 Waveform Analog Input
28 ni.com
LabVIEW Wireless Sensor Network Module
Gage Factor Returns or sets the Gage Factor. The Gage factor
specifies the sensitivity of the strain gages and r
elates the change in electrical resistance to the c
hange in strain. Each gage in the bridge must ha
ve the same gage factor. Refer to the sensor doc
umentation to determine this value.
The default value is 2.
This property can contain the following values:
■ 0 < Gage Factor < 800
Offset Null Returns of sets the Offset Null. The offset null va
lue is added to the calibrated ratiometric readin
g. This value is applied in all bridge configuratio
ns and can be set manually or obtained by the Of
fset Nulling VI.
The default value is 0 mV/V.
This property can contain the following values:
■ -25 to +25 mV/V
Quarter Bridge Gage Resistance Returns or sets the Quarter Bridge Gate Resistan
ce. Quarter bridge gage resistance is the resistan
ce in ohms of the gage in an unstrained position
.
The default value is 350.
This property can contain the following values:
■ 350 Ohms
■ 1000 Ohms
© National Instruments 29
LabVIEW Wireless Sensor Network Module
Property Description
Measurement Type Returns or sets the Measurement Type. The defa
ult value is Host Driven.
This property can contain the following values:
■ Voltage—Measures voltage in V.
■ Resistance—Measures resistance in O
hms.
30 ni.com
LabVIEW Wireless Sensor Network Module
RTD Temperature Scale Returns or sets the RTD Temperature Scale. The
default value is Host Driven.
This property can contain the following values:
© National Instruments 31
LabVIEW Wireless Sensor Network Module
Property Description
DIO Drive Mode Returns or sets the drive mode for the correspo
nding DIO lines. The default value is Host Drive
n. This property can contain the following value
s:
■ Tristate—Does not drive the DIO line re
gardless of the DIO output value.
■ Drive Low Only—For DIO output value
1, does not drive the DIO line. For DIO out
put value 0, drive the DIO line low.
■ Drive High Only—For DIO output valu
e 1, drives the DIO line high. For DIO outp
ut value 0, does not drive the DIO line.
32 ni.com
LabVIEW Wireless Sensor Network Module
Property Description
DIO Drive Mode Returns or sets the drive mode for the correspo
nding DIO lines. The default value is Host Drive
n. This property can contain the following value
s:
■ Tristate—Does not drive the DIO line re
gardless of the DIO output value.
■ Drive Low Only—For DIO output value
1, does not drive the DIO line. For DIO out
put value 0, drive the DIO line low.
© National Instruments 33
LabVIEW Wireless Sensor Network Module
Property Description
DIO Mode Returns or sets the mode for the corresponding
DIO lines. The default value is Host Driven. Thi
s property can contain the following values:
■ DI - 24V Sinking—Use this mode to co
nnect to industrial 24V sourcing output de
vices. The input has a low impedance to g
round and input thresholds compatible wi
th 24 V signaling.
34 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 35
LabVIEW Wireless Sensor Network Module
36 ni.com
LabVIEW Wireless Sensor Network Module
Property Description
DIO Mode Returns or sets the mode for the corresponding
DIO lines. The default value is Host Driven. Thi
s property can contain the following values:
■ DI - 24V Sinking—Use this mode to co
nnect to industrial 24V sourcing output de
vices. The input has a low impedance to g
round and input thresholds compatible wi
th 24 V signaling.
■ DI - 24V Sinking with Power Manag
ement—This mode is similar to DI-24V Si
nking, but the low impedance path to gro
und is removed when the inputs are not b
eing actively read. This may reduce power
consumption of the output device. It shou
ld only be used with output devices that h
ave valid output states within 100 μs of ha
ving a low impedance path presented to t
he output.
■ DI - TTL Logic—High impedance input
s with TTL compatible thresholds; suitabl
e for most 3 V or 5 V logic signals.
■ DI - Contact Closure—The input has T
TL compatible thresholds and provides a
pull-up resistor to 3 V when the input is ac
tively being read. This is suitable for conn
© National Instruments 37
LabVIEW Wireless Sensor Network Module
38 ni.com
LabVIEW Wireless Sensor Network Module
Property Description
DIO Mode Returns or sets the mode for the corresponding
DIO lines. The default value is Host Driven. Thi
s property can contain the following values:
© National Instruments 39
LabVIEW Wireless Sensor Network Module
40 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 41
LabVIEW Wireless Sensor Network Module
Property Description
DIO Mode Returns or sets the mode for the corresponding
DIO lines. The default value is Host Driven. Thi
s property can contain the following values:
■
DI - 24V Sinking—Use this mode to co
nnect to industrial 24V sourcing output de
vices. The input has a low impedance to g
round and input thresholds compatible wi
th 24 V signaling.
■ DI - 24V Sinking with Power Manag
ement—This mode is similar to DI-24V Si
nking, but the low impedance path to gro
und is removed when the inputs are not b
eing actively read. This may reduce power
consumption of the output device. It shou
ld only be used with output devices that h
ave valid output states within 100 μs of ha
42 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 43
LabVIEW Wireless Sensor Network Module
44 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 45
LabVIEW Wireless Sensor Network Module
46 ni.com
LabVIEW Wireless Sensor Network Module
You access data using static I/O variables from the project tree in the Project
Explorer window or programmatically using supported Shared Variable functions
with the following URL format:
ni.var.psp://gateway/node/channel
© National Instruments 47
LabVIEW Wireless Sensor Network Module
1. Right-click the WSN node in the Project Explorer window and select
New»User-Defined Variable.
2. Select the data type for the I/O variable. The Length text box automatically
displays the maximum size for the selected data type.
Note Some WSN nodes support only certain
types of I/O variables.
You only can create user-defined I/O variables that send data from the WSN node to
the WSN gateway. Sending data from the WSN gateway to the WSN node is
unsupported.
The following LabVIEW project includes User0, a user-defined I/O variable.
48 ni.com
LabVIEW Wireless Sensor Network Module
The following block diagram demonstrates how to write the value of AI0 on Node1
to User0. User0 then sends that data to the WSN gateway.
© National Instruments 49
LabVIEW Wireless Sensor Network Module
Buffering Data
When you use I/O variables in a WSN VI, LabVIEW buffers the data in the I/O variable
buffer, which is a first-in-first-out (FIFO) buffer. Buffering the data prevents data loss
if the network connection fails.
You can use the Memory Configuration page to configure the size of the I/O variable
buffer. When you increase the I/O variable buffer size, the amount of total RAM that
the I/O variable buffer uses might increase significantly. If the network connection
fails, the I/O variable buffer retains any data that LabVIEW wrote to the buffer.
You must enable buffering for each I/O variable to enable I/O variable buffering.
50 ni.com
LabVIEW Wireless Sensor Network Module
Waveform of
UInt16‡
Waveform of
UInt32‡
Waveform of
UInt8‡
† Maximum string length is 256 characters.
‡ Maximum waveform element length is 8192 elements.
Related information
Creating User-Defined I/O Variables in Reading and Writing Data (WSN).
You use the User RAM VIs to allocate and free space in the user RAM and to read data
from and write data to specific blocks of memory in the user RAM.
The following block diagram reads data from AI0 on Node3 and copies the data to
an allocated block in the user RAM. The example then writes the square of each
© National Instruments 51
LabVIEW Wireless Sensor Network Module
element to the user RAM and then writes that data to User1, a user-defined I/O
variable.
The user RAM shares RAM with the I/O variable buffer on WSN nodes. Use the
Memory Configuration page to configure the amount of space allocated to the I/O
variable buffer and the amount of RAM available as user RAM.
52 ni.com
LabVIEW Wireless Sensor Network Module
Tip You can use the WSN Host API VIs to deploy
applications programmatically.
You can deploy WSN VIs on multiple WSN nodes in the same project; however, you
cannot deploy multiple VIs on the same WSN node.
The WSN System Monitor launches automatically when you build or deploy a WSN
application or run a WSN VI. Use the WSN System Monitor to display information
about all WSN nodes and WSN gateways in the LabVIEW project, determine the build
and deployment progress of a WSN application on the target, and view debug
messages sent by WSN nodes to the WSN gateway.
© National Instruments 53
LabVIEW Wireless Sensor Network Module
Code Description
−25339 You must enable the serial port receiver power b
efore calling this function, or no new data can b
e read.
−25338 The device does not support reading or writing t
he specified number of bytes from the serial por
t at one time.
−25337 The specified number of bytes cannot be read o
r written within the specified timeout.
−25336 The specified serial port configuration is unsupp
orted on this device.
−25327 Not enough user RAM.
54 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 55
LabVIEW Wireless Sensor Network Module
56 ni.com
LabVIEW Wireless Sensor Network Module
Subpalette Description
Elemental I/O Functions Use the Elemental I/O functions to perform Ele
mental I/O operations on WSN targets.
WSN Host API VIs Use the WSN Host API VIs to program, monitor, a
nd control a wireless sensor network from a hos
t computer.
WSN VIs Use the WSN VIs to create applications for LabVI
EW WSN targets.
©2009–2013 National Instruments. All rights reserved.
© National Instruments 57
LabVIEW Wireless Sensor Network Module
Elemental IO Node
Owning Palette: Elemental I/O Functions
Requires: LabVIEW WSN Module
Performs specific Elemental I/O operations on WSN targets. You can configure the
Elemental I/O Node with one or more Elemental I/O items. Elemental I/O resources
can perform both read and write operations.
To add Elemental I/O items to an Elemental I/O Node, right-click the I/O Item
section and select Add Element from the shortcut menu. You also can expand or
contract the Elemental I/O Node by clicking the upper or lower edge of the node
with the Positioning tool and dragging the edge up or down.
Details
58 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 59
LabVIEW Wireless Sensor Network Module
60 ni.com
LabVIEW Wireless Sensor Network Module
Note You can use the WSN Host API VIs on any
RT target, such as the NI 9792 WSN Real-Time
Gateway. You must use the NI Measurement &
Automation Explorer (MAX) to install the Host
API VIs on the RT target before you can run them
on the target.
© National Instruments 61
LabVIEW Wireless Sensor Network Module
WSN Get Node Info Returns information about the specified WSN n
ode from the gateway.
WSN Message Status Returns the status of a message sent to a WSN n
ode.
WSN Open Gateway Creates a reference to the WSN gateway.
WSN Open Node Reference Creates a reference to the specified WSN node.
WSN Send Message Sends a user message to a WSN node.
62 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 63
LabVIEW Wireless Sensor Network Module
64 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 65
LabVIEW Wireless Sensor Network Module
66 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 67
LabVIEW Wireless Sensor Network Module
68 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 69
LabVIEW Wireless Sensor Network Module
70 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 71
LabVIEW Wireless Sensor Network Module
72 ni.com
LabVIEW Wireless Sensor Network Module
WSN VIs
Owning Palette: Wireless Sensor Network Module VIs
Requires: LabVIEW WSN Module. This topic might not match its corresponding
palette in LabVIEW depending on your operating system, licensed product(s), and
target.
Use the WSN VIs to create applications for LabVIEW WSN targets.
Subpalette Description
Elemental I/O Functions Use the Elemental I/O functions to perform Ele
mental I/O operations on WSN targets.
User Memory VIs Use the User Memory VIs to access data in the u
ser memory sector.
User RAM VIs Use the User RAM VIs to access data in the user
RAM on WSN nodes.
© National Instruments 73
LabVIEW Wireless Sensor Network Module
User Calibration VIs Use the User Calibration VIs to calibrate WSN str
ain nodes.
Elemental IO Node
Owning Palette: Elemental I/O Functions
Requires: LabVIEW WSN Module
Performs specific Elemental I/O operations on WSN targets. You can configure the
Elemental I/O Node with one or more Elemental I/O items. Elemental I/O resources
can perform both read and write operations.
To add Elemental I/O items to an Elemental I/O Node, right-click the I/O Item
section and select Add Element from the shortcut menu. You also can expand or
contract the Elemental I/O Node by clicking the upper or lower edge of the node
with the Positioning tool and dragging the edge up or down.
Details
74 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 75
LabVIEW Wireless Sensor Network Module
76 ni.com
LabVIEW Wireless Sensor Network Module
Copy Sector VI
Owning Palette: User Memory VIs
Requires: LabVIEW WSN Module
Copies all data from the source sector to the destination sector in user memory. The
destination sector must be empty before the VI can copy data to it. If the destination
© National Instruments 77
LabVIEW Wireless Sensor Network Module
sector is not empty, the VI erases the destination sector before copying the data. The
VI erases one 4 KB sector at a time.
Erase Sector VI
Owning Palette: User Memory VIs
78 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 79
LabVIEW Wireless Sensor Network Module
80 ni.com
LabVIEW Wireless Sensor Network Module
Is Sector Empty VI
Owning Palette: User Memory VIs
Requires: LabVIEW WSN Module
Checks if a user memory sector is empty. This VI returns TRUE if sector in is empty.
© National Instruments 81
LabVIEW Wireless Sensor Network Module
82 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 83
LabVIEW Wireless Sensor Network Module
84 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 85
LabVIEW Wireless Sensor Network Module
86 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 87
LabVIEW Wireless Sensor Network Module
88 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 89
LabVIEW Wireless Sensor Network Module
90 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 91
LabVIEW Wireless Sensor Network Module
92 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 93
LabVIEW Wireless Sensor Network Module
94 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 95
LabVIEW Wireless Sensor Network Module
96 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 97
LabVIEW Wireless Sensor Network Module
98 ni.com
LabVIEW Wireless Sensor Network Module
© National Instruments 99
LabVIEW Wireless Sensor Network Module
100 ni.com
LabVIEW Wireless Sensor Network Module
Write to Sector VI
Owning Palette: User Memory VIs
Requires: LabVIEW WSN Module
Writes data into a user memory sector starting at the specified byte offset. The offset
is advanced by the length of the data. After writing the data, the data is read to verify
that the write succeeded. An error code is returned if the write or verify fails. You
must manually select the polymorphic instance you want to use.
Details
102 ni.com
LabVIEW Wireless Sensor Network Module
104 ni.com
LabVIEW Wireless Sensor Network Module
106 ni.com
LabVIEW Wireless Sensor Network Module
108 ni.com
LabVIEW Wireless Sensor Network Module
110 ni.com
LabVIEW Wireless Sensor Network Module
112 ni.com
LabVIEW Wireless Sensor Network Module
114 ni.com
LabVIEW Wireless Sensor Network Module
116 ni.com
LabVIEW Wireless Sensor Network Module
118 ni.com
LabVIEW Wireless Sensor Network Module
120 ni.com
LabVIEW Wireless Sensor Network Module
122 ni.com
LabVIEW Wireless Sensor Network Module
124 ni.com
LabVIEW Wireless Sensor Network Module
126 ni.com
LabVIEW Wireless Sensor Network Module
128 ni.com
LabVIEW Wireless Sensor Network Module
Config Node VI
Owning Palette: Configuration & Communication VIs
Requires: LabVIEW WSN Module
Default is 5.
130 ni.com
LabVIEW Wireless Sensor Network Module
132 ni.com
LabVIEW Wireless Sensor Network Module
Default is 5.
Maximum Debug Message Size Returns the maximum allowable size of debug
messages. If you send a debug message that exc
eeds the maximum size, the message is truncat
ed to the maximum size.
Maximum User Message Size Returns the maximum allowable size of user me
ssages. If you send a user message that exceeds
the maximum size, the message is truncated to t
he maximum size.
Memory.Current Heap Usage Returns the amount of heap memory currently
allocated for the application.
134 ni.com
LabVIEW Wireless Sensor Network Module
Parameter Description
Sample Interval Sets or returns the waveform interval. This is th
e time between successive waveform acquisitio
ns, in seconds. If set, the new value is immediat
ely applied. The default value is 30.
Possible inputs are:
Sample Interval Mode Specifies whether the host computer for the WS
N network or the VI on the WSN node controls th
e rate at which samples are taken. The default v
alue is VI Driven.
Possible inputs are:
Waveform Sample Rate Specifies the sampling rate in samples per chan
nel per second (SPS/ch)during each waveform.
The default value is 10.
Possible inputs are:
136 ni.com
LabVIEW Wireless Sensor Network Module
Aperture Time Specifies the period during which the ADC is rea
ding the input signal. Default is 1.4 ms.
Possible inputs are:
■ 250 us
■ 400 us
■ 750 us
■ 1.4 ms
■ 2.8 ms
■ 5.5 ms
■ 10.8 ms
■ 21.5 ms
138 ni.com
LabVIEW Wireless Sensor Network Module
140 ni.com
LabVIEW Wireless Sensor Network Module
142 ni.com
LabVIEW Wireless Sensor Network Module
144 ni.com
LabVIEW Wireless Sensor Network Module
146 ni.com
LabVIEW Wireless Sensor Network Module
148 ni.com
LabVIEW Wireless Sensor Network Module
Radio Messages VI
Owning Palette: Configuration & Communication VIs
Requires: LabVIEW WSN Module
150 ni.com
LabVIEW Wireless Sensor Network Module
Sends and receives messages between the WSN nodes and the host computer for
the WSN network.
Serial VIs
Owning Palette: WSN VIs
Requires: LabVIEW WSN Module. This topic might not match its corresponding
palette in LabVIEW depending on your operating system, licensed product(s), and
target.
Use the Serial VIs to configure and communicate with the LabVIEW WSN serial
nodes.
152 ni.com
LabVIEW Wireless Sensor Network Module
154 ni.com
LabVIEW Wireless Sensor Network Module
156 ni.com
LabVIEW Wireless Sensor Network Module
158 ni.com
LabVIEW Wireless Sensor Network Module
Offset Nulling VI
Owning Palette: User Calibration
Requires: LabVIEW WSN Module
Obtains the offset value in mV/V that the bridge is away from 0.
160 ni.com
LabVIEW Wireless Sensor Network Module
Shunt Calibration VI
Owning Palette: User Calibration
Requires: LabVIEW WSN Module
Obtains the shunt calibration gain value by applying a shunt calibration resistor in
parallel with the gage and measuring the deflection. This can only be used in
Quarter Bridge configurations.
NI-WSN
September 2012, 372839F-01
This help file contains information about using LabVIEW with the National
Instruments Wireless Sensor Network gateways and nodes.
162 ni.com
LabVIEW Wireless Sensor Network Module
Help Resources
■ LabVIEW Help—Use these help files to learn how to create and download
LabVIEW applications to WSN nodes over a wireless connection and for
information about developing and using Vis and projects.
■ Measurement & Automation Explorer Help for WSN—This help file
contains information about configuring your Wireless Sensor Network system
using NI Measurement & Automation Explorer (MAX).Configuring WSN in MAX,
available in MAX from Start»Programs» National Instruments»NI-
WSN»Configuring WSN in MAX.
Refer to the National Instruments Product Manuals Library for updated
documentation resources.
PDF Documents
These documents are available as PDFs in the Documentation\Manuals
directory. The latest versions of these documents are online at ni.com/manuals. You
must have Adobe Reader with Search and Accessibility 5.0.5 or later installed to view
the PDFs. You must have Adobe Reader with Search and Accessibility 6.x or later
installed to search PDF versions of these manuals. Refer to the Adobe Systems
Incorporated Web site to download Adobe Reader.
Readme
■ NI-WSN Readme—This document contains last-minute information about
WSN devices, including a list of known issues. Access the NI-WSN Readme on
the NI-WSN installation CD.
164 ni.com
LabVIEW Wireless Sensor Network Module
WSN Nodes
■ NI WSN-3202 ±10 V, 4-Channel, 16-Bit Analog Input Node
■ NI WSN-3212 4-Channel, 24-Bit Thermocouple Input Node
■ NI WSN-3226 4-Channel, 20-Bit Voltage/RTD Node
■
NI WSN-3214 Strain Node
■ NI WSN-3230/3231 Serial Node
Node Channels
The NI WSN-3202 has the following channels.
NI WSN-3202 Settings
Right-click the node in the Project Explorer window and select Properties. Select
the Channels or Node tab.
To upload the serial number of a connected node to the Project Explorer window,
right-click the gateway and select Refresh Node Serial Numbers.
166 ni.com
LabVIEW Wireless Sensor Network Module
■ Device Name—Specifies the name of the WSN node, which appears in the
Project Explorer window. LabVIEW assigns a default name to the node
based on the Hardware Configuration ID. You can use this field to give the
node a descriptive name.
■ Device Type—Specifies the type of WSN node. You cannot change this
value.
■ Hardware Configuration—Specifies the hardware configuration ID and
the sample interval (seconds).
Node Channels
The NI WSN-3212 has the following channels.
168 ni.com
LabVIEW Wireless Sensor Network Module
NI WSN-3212 Settings
Right-click the node in the Project Explorer window and select Properties. Select
the Channels or Node tab.
To upload the serial number of a connected node to the Project Explorer window,
right-click the gateway and select Refresh Node Serial Numbers.
170 ni.com
LabVIEW Wireless Sensor Network Module
■ Device Name—Specifies the name of the WSN node, which appears in the
Project Explorer window. LabVIEW assigns a default name to the node
based on the Hardware Configuration ID. You can use this field to give the
node a descriptive name.
■ Device Type—Specifies the type of WSN node. You cannot change this
value.
■ Hardware Configuration—Specifies the hardware configuration ID and
the sample interval (seconds).
■ ID—Allows you to map a node in the property tree to a node of that ID on
the gateway.
■
Sample Interval (Seconds)—Specifies how often the node samples all
inputs, in seconds. For End Nodes, the nodes sleep during this interval.
Node Channels
The NI WSN-3214 has the following channels.
NI WSN-3214 Settings
Right-click the node in the Project Explorer window and select Properties.
To upload the serial number of a connected node to the Project Explorer window,
right-click the gateway and select Refresh Node Serial Numbers.
Waveform Analog Input Properties
Digital Input/Output Properties
Node Properties
172 ni.com
LabVIEW Wireless Sensor Network Module
Channel Configuration
Default = Full Bridge – Strain Type I
Sensor Properties
Property Value/Description
Range Microstrain (µε) when Strain, mV/V when Ratiom
etric. The default value is Microstrain (µε).
Gage Factor Returns or sets the Gage Factor. The Gage factor
specifies the sensitivity of the strain gages and r
elates the change in electrical resistance to the c
hange in strain. Each gage in the bridge must ha
ve the same gage factor. Refer to the sensor doc
umentation to determine this value. The default
value is 2.
Possible inputs are:
Calibration, Offset Null (mV/V) The Offset Null value is added to the calibrated r
atiometric reading. It can be measured by clicki
ng Run in the node properties window for each
channel. This value is applied automatically in a
ll bridge configurations. The default value is 0.
174 ni.com
LabVIEW Wireless Sensor Network Module
Poisson Ratio Sets the Poisson Ratio. Poisson ratio is the ratio
of lateral strain to axial strain in the material yo
u are measuring. The default value is 0.
Possible inputs are:
■ -1 to +1
Quarter Bridge Gage Resistance Sets the Quarter Bridge Gage Resistance. Quarte
r bridge gage resistance is the resistance in ohm
s of the gage in an unstrained position. The defa
ult value is 350.
Possible inputs are:
■ 350 Ohms
■ 1000 Ohms
Shunt Calibration (1/Actual Gain) The Shunt Calibration value is a gain applied to
the post-ADC calibrated ratiometric value. This v
alue will always be applied regardless of bridge
configuration, as it can be calculated and/or me
asured through external means. This value is ap
plied in all configurations. The default value is 1
.
Note The hardware ca
n only perform a shunt
calibration in Quarter
Bridge mode. It can be
measured by clicking
Run in the node prope
rties window for each c
hannel. Shunt calibrati
on must be done befor
e an offset null calibrat
ion.
Possible inputs are:
■ 0–2
Property Value/Description
DIO Mode Returns or sets the mode for the corresponding
DIO lines. The default value is Host Driven. Thi
s property can contain the following values:
■ DI - 24V Sinking—Use this mode to co
nnect to industrial 24V sourcing output de
vices. The input has a low impedance to g
round and input thresholds compatible wi
th 24 V signaling.
■ DI - 24V Sinking with Power Manag
ement—This mode is similar to DI-24V Si
nking, but the low impedance path to gro
und is removed when the inputs are not b
eing actively read. This may reduce power
consumption of the output device. It shou
ld only be used with output devices that h
ave valid output states within 100 μs of ha
ving a low impedance path presented to t
he output.
■ DI - TTL Logic—High impedance input
s with TTL compatible thresholds; suitabl
e for most 3 V or 5 V logic signals.
■ DI - Contact Closure—The input has T
TL compatible thresholds and provides a
pull-up resistor to 3 V when the input is ac
tively being read. This is suitable for conn
ections to contact switches wired betwee
n the input and ground. If a contact to gro
und remains closed in this setting while DI
O Notifications are not set to Disabled, the
current into the contact switch increases
176 ni.com
LabVIEW Wireless Sensor Network Module
WSN Configuration
Property Value/Description
Device Name Specifies the name of the WSN node, which app
ears in the Project Explorer window. LabVIEW
assigns a default name to the node based on th
e Hardware Configuration ID. You can use this fi
eld to give the node a descriptive name.
Device Type Specifies the type of WSN node. You cannot cha
nge this value.
ID Allows you to map a node in the property tree to
a node of that ID on the gateway.
Waveform Acquisition
Property Value/Description
Waveform Interval (Seconds) Waveform interval is time between successive w
aveform acquisitions, in seconds. The default va
lue is 5.
Possible inputs are:
Waveform Sample Rate (Hz) Waveform sample rate is the rate at which samp
les are taken within a single waveform. The defa
ult value is 10.
Possible inputs are:
■ 1 to 8192 Samples
The following diagram shows how these three properties work together:
178 ni.com
LabVIEW Wireless Sensor Network Module
For each sample, one sample is taken for each channel that is active. This means that the
waveform shown in the diagram can be replicated up to 4 times, depending on which channels
are enabled. These waveforms overlap in time, with a small offset between them (the settling
time for each channel).
Waveform Filtering
Property Value/Description
Powerline Filtering When set to None, Powerline Filtering will avera
ge a series of ADC values to arrive at a single sa
mple value. The time spent doing this can be set
using the Aperture Time attribute. The default v
alue is 50/60 Hz.
Possible inputs are:
■ 50 Hz
■ 60 Hz
■ 50/60 Hz
■ None
Filtering Strength Sets or returns the filtering strength for the nod
e. The default is High Rejection.
Note Powerline Filteri
ng must be enabled for
Aperture Time Specifies the period during which the ADC is rea
ding the input signal. The default value is 1.4 m
s.
Note Aperture Time c
an only be edited whe
n Powerline Filtering is
set to None.
Possible inputs are:
■ 250 us
■ 400 us
■ 750 us
■ 1.4 ms
■ 2.8 ms
■ 5.5 ms
■ 10.8 ms
■ 21.5 ms
180 ni.com
LabVIEW Wireless Sensor Network Module
Powerline Filtering
If you use the powerline filtering setting, the following waveform sample rates
apply.
Aperture Time
If you use the aperture time setting, the following waveform sample rates apply.
Channels 1 2 3 4
Aperture (us) Max Sample Rat Max Sample Rat Max Sample Rat Max Sample Rat
e (Hz) e (Hz) e (Hz) e (Hz)
250 4096 1560 1092 862
400 2340 992 697 537
750 1260 585 404 306
1400 668 321 217 164
2800 344 168 113 85
5500 175 86 57 43
10800 88 43 29 22
21500 44 22 14 11
Strain Gages
You can measure strain with a strain gage, which is a device with electrical resistance
that varies in proportion to the amount of strain in the device, and with signal
conditioning. When using a strain gage, you bond the strain gage to the device under
test, apply force, and measure the strain by detecting changes in resistance (Ω).
Strain gages return varying voltages in response to stress or vibrations in materials.
Resistance changes in parts of the strain gage to indicate deformation of the
material. Strain gages require excitation, generally voltage excitation, and
linearization of the voltage measurements.
Strain measurements rarely involve quantities larger than a few microstrain (µε).
Therefore, measuring strain requires accurate measurements of very small changes
in resistance. For example, if a test specimen undergoes a substantial strain of 500
µε, a strain gage with a gage factor of 2 exhibits a change in electrical resistance of
only 2 × (500 × 10 -6 ) = 0.1%. For 120 Ω, this is a change of only 0.12 Ω.
To measure such small changes in resistance and to compensate for temperature
sensitivity, strain gages often use a Wheatstone bridge with a voltage or current
excitation source, arranged in one of several bridge configurations. The gage is the
collection of all of the active elements of the Wheatstone bridge.
WSN supports measuring axial strain, bending strain, or both. While you can use
some similar configuration types to measure torsional strain, NI software scaling
does not support these configuration types. It is possible to use NI products to
measure torsional strain, but to properly scale these configuration types you must
use a custom scale with a bridge (V/V) or a custom voltage with excitation channel.
Gage Factor
A fundamental parameter of the strain gage is its sensitivity to strain, expressed
quantitatively as the gage factor (GF). Gage factor is the ratio of the fractional
change in electrical resistance to the fractional change in length, or strain. The gage
factor must be the same for each gage in the bridge.
The gage factor for metallic strain gages is usually around 2. You can obtain the
actual gage factor of a particular strain gage from the sensor vendor or sensor
documentation.
182 ni.com
LabVIEW Wireless Sensor Network Module
Bridge-Based Sensors
Bridge-based sensors operate by correlating a physical phenomena, such as strain,
temperature, or force, to a change in resistance in one or more legs of a Wheatstone
bridge. The general Wheatstone bridge, shown in the following figure, is a network
of four resistive legs with an excitation voltage, VEX, that is applied across the bridge.
One or more of these legs can be active sensing elements.
The Wheatstone bridge is the electrical equivalent of two parallel voltage divider
circuits. R1 and R2 compose one voltage divider circuit, and R4 and R3 compose the
second voltage divider circuit. You measure the output of a Wheatstone bridge
between the middle nodes of the two voltage dividers.
A physical phenomena, such as a temperature shift or a change in strain applied to a
specimen, changes the resistance of the sensing elements in the Wheatstone bridge.
You can use the Wheatstone bridge configuration to help measure the small
variations in resistance that the sensing elements produce corresponding to a
physical change in the specimen.
where VR is the voltage ratio; V is the voltage output from the bridge; VIB is the initial
bridge voltage, as determined by offset nulling; VEX is the excitation voltage supplied
to the bridge; and G is the gain adjustment from shunt calibration.
Ratiometric devices divide the voltage output from the bridge by the excitation
voltage in hardware. Therefore, V/VEX must be within the device range of the device.
On voltage devices, the voltage output from the bridge must be within the device
range. The initial bridge voltage and gain adjustment affect the association between
device range and input limits. For example, on a device that can measure ±5 V, an
initial bridge voltage of 1 V means that the minimum and maximum input limits
must correspond to -6 V to 4 V.
■ Full-Bridge Ratiometric
■
Full-Bridge Type I
■ Full-Bridge Type II
■ Full-Bridge Type III
■
Half-Bridge Ratiometric
■ Half-Bridge Type I
■ Half-Bridge Type II
■
Quarter-Bridge Ratiometric
■ Quarter-Bridge Type I
184 ni.com
LabVIEW Wireless Sensor Network Module
Full-Bridge Ratiometric
Full-bridge Ratiometric sensors have the following characteristics:
The following figure shows how to position strain gage resistors in a bending
configuration for the full-bridge type I.
■ Four active strain gage elements, two mounted in the direction of bending
strain on the top side of the strain specimen and the other two mounted in the
direction of bending strain on the bottom side.
■ High sensitivity to bending strain.
■ Rejection of axial strain.
■ Compensation for temperature.
■ Compensation for lead resistance.
■ Sensitivity at 1000 µε is ~ 2.0 mVout / VEX input.
186 ni.com
LabVIEW Wireless Sensor Network Module
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, and GF is the gage factor.
Full-Bridge Type II
The full-bridge type II configuration only measures bending strain.
The following figure shows how to position strain gage elements in a bending
configuration for the full-bridge type II.
■ Four active strain gage elements. Two are mounted in the direction of
bending strain with one on the top side of the strain specimen and the other
on the bottom side. The other two act together as a Poisson gage and are
mounted transverse, or perpendicular, to the principal axis of strain with one
on the top side of the strain specimen and the other on the bottom side.
■ Rejection of axial strain.
■ Compensation for temperature.
■ Compensation for the aggregate effect on the principle strain measurement
due to the Poisson's ratio of the material.
■ Compensation for lead resistance.
■ Sensitivity at 1000 µε is ~ 1.3 mVout / VEX input.
188 ni.com
LabVIEW Wireless Sensor Network Module
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, and v is the Poisson's ratio.
Full-Bridge Type III
The full-bridge type III configuration only measures the axial configuration.
The following figure shows how to position strain gage resistors in an axial
configuration for the full-bridge type III.
Full-bridge type III strain gage configurations have the following characteristics:
■ Four active strain gage elements. Two are mounted in the direction of axial
strain with one on the top side of the strain specimen and the other on the
bottom side. The other two act together as a Poisson gage and are mounted
transverse, or perpendicular, to the principal axis of strain with one on the top
side of the strain specimen and the other on the bottom side.
■ Compensation for temperature.
■ Rejection of bending strain.
■ Compensation for the aggregate effect on the principle strain measurement
due to the Poisson's ratio of the material.
■ Compensation for lead resistance.
■ Sensitivity at 1000 µε is ~ 1.3 mVout / VEX input.
190 ni.com
LabVIEW Wireless Sensor Network Module
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, and v is the Poisson's ratio.
Half-Bridge Ratiometric
Half-bridge Ratiometric sensors have the following characteristics:
The following figure shows how to position strain gage resistors in a bending
configuration for the half-bridge type I.
192 ni.com
LabVIEW Wireless Sensor Network Module
■ Two active strain gage elements, one mounted in the direction of axial strain
and the other acting as a Poisson gage and mounted transverse, or
perpendicular, to the principal axis of strain.
■ Completion resistors which provide half-bridge completion.
■ Sensitivity to both axial and bending strain.
■ Compensation for temperature.
■ Compensation for the aggregate effect on the principle strain measurement
due to the Poisson's ratio of the material.
■ Sensitivity at 1000 µε is ~ 0.65 mVout/ VEX input.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, v is the Poisson's ratio, RL is the lead
resistance, and Rg is the nominal gage resistance.
Half-Bridge Type II
The half-bridge type II configuration only measures bending strain.
The following figure shows how to position strain gage resistors in a bending
configuration for the half-bridge type II.
194 ni.com
LabVIEW Wireless Sensor Network Module
■ Two active strain gage elements, one mounted in the direction of axial strain
on the top side of the strain specimen and the other mounted in the direction
of axial strain on the bottom side.
■ Completion resistors which provide half-bridge completion.
■ Sensitivity to bending strain.
■ Rejection of axial strain.
■ Compensation for temperature.
■ Sensitivity at 1000 µε is ~ 1 mVout / VEX input.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, RL is the lead resistance, and Rg is the
nominal gage resistance.
Quarter-Bridge Ratiometric
Quarter-bridge Ratiometric sensors have the following characteristics:
196 ni.com
LabVIEW Wireless Sensor Network Module
The following figure shows how to position a strain gage resistor in a bending
configuration for the quarter-bridge type I.
where Vr is the voltage ratio that virtual channels use in the voltage-to-strain
conversion equation, GF is the gage factor, RL is the lead resistance, and Rg is the
nominal gage resistance.
Node Channels
The NI WSN-3226 has the following channels.
198 ni.com
LabVIEW Wireless Sensor Network Module
NI WSN-3226 Settings
Right-click the node in the Project Explorer window and select Properties. Select
the Channels or Node tab.
To upload the serial number of a connected node to the Project Explorer window,
right-click the gateway and select Refresh node serial numbers.
■ Channel Attributes:
Attribute Value
Measurement Type Voltage, Resistance, or RTD
RTD Temperature Scale* Celsius, Fahrenheit, or Kelvin
RTD Coefficient* (per degree Celsius) ■ 3750—Measures the temperature of an
RTD with a=.003750.
■ 3851—Measures the temperature of an
RTD with a=.003851.
■ 3911—Measures the temperature of an
RTD with a=.003911.
■ 3916—Measures the temperature of an
RTD with a=.003916.
■ 3920—Measures the temperature of an
RTD with a=.003920.
■ 3928—Measures the temperature of an
RTD with a=.003928.
200 ni.com
LabVIEW Wireless Sensor Network Module
■ Device Name—Specifies the name of the WSN node, which appears in the
Project Explorer window. LabVIEW assigns a default name to the node
based on the Hardware Configuration ID. You can use this field to give the
node a descriptive name.
■ Device Type—Specifies the type of WSN node. You cannot change this
value.
■ Hardware Configuration—Specifies the hardware configuration ID and
the sample interval (seconds).
202 ni.com
LabVIEW Wireless Sensor Network Module
Node Channels
The NI WSN-3230/3231 has the following channels.
204 ni.com
LabVIEW Wireless Sensor Network Module
NI WSN-3230/3231 Settings
Right-click the node in the Project Explorer window and select Properties. Select
the Channels or Node tab.
To upload the serial number of a connected node to the Project Explorer window,
right-click the gateway and select Refresh Node Serial Numbers.
Range—Specifies the data type of the selected channel(s). You cannot change this
setting.
■ Channel Attributes
Select the Attribute and Value.
Attribute Value
DIO Mode Returns or sets the mode for the corresponding
DIO lines. This property can contain the followin
g values:
■ DI - 24V Sinking—Use this mode to co
nnect to industrial 24V sourcing output de
vices. The input has a low impedance to g
round and input thresholds compatible wi
th 24 V signaling.
■ DI - 24V Sinking with Power Manag
ement—This mode is similar to DI-24V Si
nking, but the low impedance path to gro
und is removed when the inputs are not b
eing actively read. This may reduce power
consumption of the output device. This m
ode should only be used with output devi
ces that have valid output states within 10
0 µs of having a low impedance path pres
ented to the output.
■ DI - TTL Logic—High impedance input
s with TTL compatible thresholds; suitabl
e for most 3V or 5V logic signals.
■ DI - Contact Closure —The input has
TTL compatible thresholds and provides a
pull-up resistor to 3V when the input is act
ively being read. This is suitable for conne
ctions to contact switches wired between
the input and ground. If a contact to grou
nd remains closed in this setting while DI
O Notifications are not set to Disabled, the
current into the contact switch increases
206 ni.com
LabVIEW Wireless Sensor Network Module
Node Tab
This dialog box includes the following components:
■ Device Name—Specifies the name of the WSN node, which appears in the
Project Explorer window. LabVIEW assigns a default name to the node
based on the Hardware Configuration ID. You can use this field to give the
node a descriptive name.
■ Device Type—Specifies the type of WSN node. You cannot change this
value.
■ Hardware Configuration—Specifies the hardware configuration ID and
the sample interval (seconds).
■ ID—Allows you to map a node in the property tree to a node of that ID on
the gateway.
■ Sample Interval (Seconds)—Specifies how often the node samples all
inputs, in seconds. For End Nodes, the nodes sleep during this interval.
Configuring Projects
Use the Project Explorer window to create an empty project. You can add Vis, WSN
devices, and other items to the project.
After configuration, the gateway, node, and channels appear in the Project
Explorer window.
208 ni.com
LabVIEW Wireless Sensor Network Module
5. Click the New target or device radio button, select the node to add, and
click OK.
6. Assign an ID to the node, and click OK.
7. Right-click the node in the Project Explorer window and select Properties
to configure node settings. Click the Help button for information about the
node settings.
■ LabVIEW Project
■ Distributed System Manager
210 ni.com
LabVIEW Wireless Sensor Network Module
Timestamping
By default, NI-WSN I/O variables do not return timestamps. Use the following
instructions to enable timestamps:
212 ni.com
LabVIEW Wireless Sensor Network Module
General
■ Name—Specifies the name of the device, which appears in the Project
Explorer window. You can use this field to give the gateway a descriptive
name.
■ IP Address/DNS Name—Specifies the location of the gateway by its IP
address or DNS name.
Conditional Disable Settings
Use these settings to add or remove symbols to use with the Conditional Disable
structure. The symbols you add from the Project Properties dialog box are
available for all targets in the project. The symbols that you add from the
Properties dialog box for a target are available only with the specific target. For
example, if you add symbols from the My Computer dialog box, the symbols are
available only in Vis under My Computer that use the Conditional Disable
structure.
■ New Symbol—Specifies the symbol you want to add.
■ New Value—Specifies the value of the New Symbol you want to add.
■ Add—Adds the New Symbol and New Value to the table.
■ Remove Selected Items—Removes the symbols and values you select
from the table.
Note You can rename a symbol or change a
value in the listbox by clicking on the symbol or
value. When the cursor appears, you can type
the name or value to which you want to change.
VI Server
This page includes the following components:
If you display this page from the Options dialog box, this service name
214 ni.com
LabVIEW Wireless Sensor Network Module
for the application instance through the VI Server. This checkbox contains a
checkmark by default.
■ Control properties and methods—Allows remote applications to read
and set the properties of controls and to call methods for controls through
the VI Server. This checkbox contains a checkmark by default.
■ Machine Access—Use this section to control machine access to Vis
through the VI Server.
■ Machine access list—Lists machines that do and do not have access to
the VI Server. You also can use the Server:TCP/IP Access List property to list
programmatically the TCP/IP addresses of machines that may access the VI
server.
Note If you change the
Machine access list, machines that are
currently connected to the VI server will not
be disconnected even if they are no longer
allowed access to the server.
■ Machine name/address—Enter the name or IP address of the machine
you want to add to the Machine access list.
■ Allow access—Allows access to the machine(s) selected in Machine
access list.
■ Deny access—Denies access to the machine(s) selected in Machine
access list.
■ Add—Adds a new entry to the Machine access list. The new entry
appears below the selected entry in the Machine access list.
■ Remove—Removes the selected entry from the Machine access list.
■ Exported Vis—Use this section to add, edit, and remove Vis from the
Exported Vis list.
■ Exported Vis list—Lists the Vis that can be exported. You also can use
the Server:VI Access List property to list programmatically the Vis on the VI
Server that are accessible by remote clients.
216 ni.com
LabVIEW Wireless Sensor Network Module
You also can use the Web Server:HTTP Port property to set the port to which
the built-in Web Server listens for HTTP requests.
Note If you use a port other than 80, such
as 8000, you must specify the port on
URLs that refer to the server, as shown in
the following example:
http://hostname:8000/index.ht
m
■ Remote front panels—Allows you to view and control front panels
remotely.
■Snapshot—Displays a static image of the front panel of a VI currently in
memory on the Web Server.
■ SSL—Enables SSL support on the Web Server.
■ SSL port—Indicates the TCP/IP port the Web Server uses for SSL-
encrypted communication. You cannot enable SSL on the port specified
by HTTP Port. You must use a unique port for SSL port to allow
encrypted communication.
■ SSL certificate File—Specifies the certificate to use for SSL
encryption on the Web server. You can leave this component blank to
use the default LabVIEW self-signed certificate.
■ Discovered certificates—Lists available certificates on the system
specified in the Server address text box.
■ Server address—Specifies the name or IP address of a system that
contains certificates. For example, you can enter localhost to view
certificates on the local system.
■ Query—Queries the system specified in the Server address text
box for available certificates. Discovered certificates appear in the
Discovered certificates listbox.
■ Log File—Use this section to enable the log file.
218 ni.com
LabVIEW Wireless Sensor Network Module
■ Use log file—Enables the log file. This checkbox does not contain a
checkmark by default. You also can use the Web Server:Logging Enabled
property to enable the log file programmatically.
■ Log file path—Indicates the path of the file where LabVIEW saves
Web connection information. The default path is labview\resourc
e\webserver\logs\access.log. You also can use the Web
Server:Logging File Path property to determine programmatically
where the built-in Web Server places the log file.
■ Visible Vis—Use this section to configure and edit the list of Vis that are
visible on the Web.
You also can use the Web Server:VI Access List property to allow and deny
access to Vis programmatically.
■ Visible Vis—Lists the Vis that are visible through the Web Server. A green
checkmark appears to the left of the item when you allow access, and a red
X appears when you deny access. If an entry does not have a green
checkmark or a red X by its name, the syntax for the entry is incorrect.
■ Add—Adds a new entry to the Visible Vis list. The new entry appears
below the selected entry in the Visible Vis list.
■ Remove—Removes the selected entry from the Visible Vis list.
■ Visible VI—Allows you to enter a VI to list in Visible Vis. You can use
wildcards in the VI name or directory path you enter. To specify a VI that is
part of a LabVIEW project, you must include the project name, the project
library name, and the target in the path of the VI, when applicable. For
example, if MyVI.vi resides in a project called MyProject.lvproj
under target My Computer, enter the VI name as MyProject.lvproj/
My Computer/MyVI.vi. If the VI is owned by a project library called My
Library, also include the project library in the path, as in MyProject.l
vproj/My Computer/MyLibrary.lvlib:MyVI.vi. If the VI is not
in a project or project library, you can enter the VI name without any
additional information.
■ Allow access—Allows access to the VI selected in the Visible Vis list.
This option is selected by default.
■
Use default—Sets Control time limit (seconds) to its default
value of 300 seconds. This checkbox contains a checkmark by default.
To edit Control time limit (seconds), remove the checkmark from
the checkbox.
■ Browser Access—This section lists the browser addresses that have access
to the Web Server. Use this dialog box to add entries to the Browser Access
List, remove entries from the list, and set access permissions for items in the
list. The Browser Access List entries must use correct syntax.
You also can use the Web Server:TCP/IP Access List property to allow and deny
access to browser addresses programmatically.
220 ni.com
LabVIEW Wireless Sensor Network Module
Host Environment
Use this page to enable polling the status of the front panel connection with RT
targets and to set the polling options.
This page includes the following components:
When you deploy a VI from the Project Explorer window, you deploy the VI
to memory but you do not save the VI to disk on the RT target. However, when
you create a stand-alone application or source distribution, you save the
executable files to disk on the RT target.
Use the Downloaded VI Path as a path alias while you debug a VI, before
you build the VI into a stand-alone application or source distribution. For
222 ni.com
LabVIEW Wireless Sensor Network Module
example, when you use the Open VI Reference function to open a reference to
a deployed VI that you plan to build into a stand-alone application or source
distribution, use the Downloaded VI Path to ensure that the VI appears to
load from the same location where you plan to save the stand-alone
application or source distribution to disk on the RT target.
When you change the Downloaded VI Path, you must right-click the RT
target in the Project Explorer window and select Deploy from the shortcut
menu before the change takes effect.
Scan Engine
Use this page to configure NI Scan Engine settings.
Engine thread always runs at a higher priority than Timed Loops and Timed
Sequence structures.
■ Fault Configuration—Contains NI Scan Engine fault configuration
options. Advanced fault configuration options are available only if you select
Custom from the pull-down menu in the Level column of the Configurable
Faults table.
Note To restore the default configuration of
a fault, select Unconfigured from the pull-
down menu in the Level column of the
Configurable Faults table.
Use the pull-down menu in the Level column to configure the level of a
fault. Select Custom from the pull-down menu to enable advanced
configuration options for a fault. Select Unconfigured to restore the
default configuration of a fault.
■Description—Displays a description of the fault you select from the
Configurable Faults list.
■ Occurrence Threshold—Specifies the number of times the selected
fault can occur before the level of the fault changes.
■ Use Time Window—Specifies whether to use the Time Window to
bound the amount of time required to meet the occurrence threshold.
■ Time Window—Specifies a time limit for the occurrence threshold. When
the time window expires, LabVIEW resets the internal occurrence counter for
the specified fault and restarts the time window. This control is available
only if you place a checkmark in the Use Time Window checkbox.
■ Level Before Threshold—Specifies the level of the specified fault before
the occurrence threshold is met.
224 ni.com
LabVIEW Wireless Sensor Network Module
■ Level After Threshold—Specifies the level of the specified fault after the
occurrence threshold is met.
5. Right-click the channel output terminal of the I/O variable and select
Create»Indicator.
6. Right-click the error out terminal of the I/O variable and select
Create»Indicator.
7. Run the VI.
appears under My Systems. Expand the item in the configuration tree to display
the channel data.
4. Right-click the channel input terminal of the I/O variable and select
Create»Control.
5. Right-click the error out terminal of the I/O variable and select
Create»Indicator.
6. Run the VI.
Code Description
−306028 Node type not supported by this version of the g
ateway firmware or NI-WSN driver for LabVIEW
RT.
−306027 Cannot deploy because the WSN node is not incl
uded in the gateway configuration.
−306026 Unknown node name.
226 ni.com
LabVIEW Wireless Sensor Network Module