Ni-fbus dialog examples, Example 1. get a device list – National Instruments NI-FBUS User Manual
Page 132

Appendix D
NI-FBUS Dialog Utility
NI-FBUS Configurator User Manual
D-2
ni.com
NI-FBUS Dialog Examples
These examples describe the typical steps you go through when using
the NI-FBUS Dialog utility. Before you begin the examples, open the
NI-FBUS Dialog utility by selecting Start»Programs»National
Instruments»NI-FBUS»NI-FBUS Dialog. To exit the NI-FBUS Dialog
utility, select File»Exit.
Example 1. Get a Device List
To practice using the NI-FBUS Dialog utility to get a device list, complete
the following steps.
1.
Open the NI-FBUS Dialog utility.
2.
Right-click the Open Descriptors icon and select Open Session.
3.
In the Open Session dialog box that appears, click the Open Session
button. The NI-FBUS Dialog utility makes an
nifOpenSession
call
to the NIFB process. This call opens a session descriptor, which
represents your connection to the NIFB process.
If the call succeeds, the NIFB process is running and responding to
requests, and a new session descriptor is created under the Open
Descriptors icon. If the call fails, make sure that your NI-FBUS
Communications Manager process is running, and that it has not
displayed any error message boxes during startup. You can check this
by and looking at the
nifb.exe
console window. To open the window,
select Start»Programs»National Instruments»NI-FBUS»
NI-FBUS Communication Manager.
4.
Right-click the session descriptor icon to see its pop-up menu.
The list that appears represents the NI-FBUS Communications
Manager API calls you can make with a session descriptor.
5.
Choose the GetInterfaceList function from the list of choices.
This choice displays the logical name of all known interfaces.
6.
Highlight the interface name of your choice and click the OpenLink
button. In the dialog box that appears, click Open Link, then click
Cancel to close any open dialog boxes.
7.
Right-click the Link icon and choose GetDeviceList. The NI-FBUS
Dialog utility displays a list of active devices on your Fieldbus link.
Your Fieldbus interface board is also included in this list.