Example 4. wait for a trend – National Instruments NI-FBUS User Manual

Page 134

Advertising
background image

Appendix D

NI-FBUS Dialog Utility

NI-FBUS Configurator User Manual

D-4

ni.com

Read by index—Enter the index of the parameter in the

BLOCKTAG.INDEX

format, where

BLOCKTAG

is the tag of the

block containing the parameter, and

INDEX

is the index of the

parameter.

Read by device description item—Enter the device description
item of the parameter in the

BLOCKTAG.ITEM

format, where

BLOCKTAG

is the tag of the block containing the parameter, and

ITEM

is the device description item of the parameter.

Example 4. Wait for a Trend

Note

You will not be able to receive any trends unless you have configured a device to

generate them, and configured an interface to receive them. Use your configuration
software package to do this.

1.

Open the NI-FBUS Dialog utility.

2.

Click the Actions menu and select Open Session.

3.

Click the Open Session button. If the call succeeds, the NIFB process
in running and responding to requests, and a new session descriptor is
created under the Open Descriptors icon.

4.

Right-click the session descriptor icon and select WaitTrend.

5.

A dialog box appears. This dialog box waits until the NI-FBUS
Communications Manager receives a trend from any device on the bus.
The trend data is displayed in the Results box when the trend is
received. The Trend dialog continues to wait for and display trends as
they are received until you close it with the Cancel button.

You can wait on trends from all types of descriptors, not just session
descriptors. For example, if you wait on a trend from a device
descriptor, the dialog box only displays trends coming from the device
that the specified descriptor represents. The same is true of link, virtual
field device, and block descriptors.

To exit the NI-FBUS Dialog utility, select File»Exit.

Advertising