Professional Documents
Culture Documents
A wireless ad hoc network is defined as “a temporary close range connection between wireless devices."
An ad hoc Wi-Fi network allows you to communicate between two wireless devices without the need for a
router or access point. For wireless data acquisition applications, this means you can communicate directly
with a WLS-9xxx Wi-Fi DAQ device from your laptop or other wireless host. The following tutorial provides
step-by-step instructions for configuring your computer and wireless DAQ device to use an ad hoc network
configuration.
Table of Contents
1. Materials Required
2. Objective
3. Basic Instructions
4. Detailed Instructions
For easier, more reliable ad-hoc connection at a lower price, NI recommends the NI cDAQ-9191 Wi-
Fi NI CompactDAQ chassis.
Note: Ad hoc networking is no longer commonly used in home or office settings so not all personal
computer hardware will work as anticipated in this mode. As a result, it is suggested that the WLS-9163
be used on an infrastructure-based network (i.e. a network with a wireless router). Also, ad hoc mode can
only be used to communicate with one Wi-Fi DAQ device. So, an infrastructure-based network should
also be used for simultaneous communication with multiple devices.
Materials Required
NI WLS-9163, wireless DAQ sleeve. (NOTE: The name of the wireless sleeve changes to reflect the
module which it contains. For example, an NI WLS-9163 with an NI 9211 C-Series Module in it, is called
an NI WLS-9211.)
A computer with a wired and a wireless network interface.
DAQmx 8.8 or 8.9 installed on your computer
A supported C-Series Module (NI-DAQmx 8.8 includes support for the NI 9211, 9215, 9234, 9237. NI-
DAQmx 8.9 expands the list of supported devices to NI 9421, 9472, 9581.)
Objective
To connect your NI WLS-9163 Wireless DAQ Sleeve to your Windows XP computer via an ad hoc wireless
network.
Basic Instructions
1. Add the WLS-9163 as a wired device in Measurement & Automation Explorer (MAX).
2. Create a wireless ad hoc network on the PC.
3. Configure the computer to use a static IP Address on the new wireless ad hoc network.
4. In MAX, appropriately configure the wireless settings of the WLS-9163.
5. Unplug the Ethernet cable connecting the computer to the WLS-9163.
6. In Windows, connect the PC to the created wireless ad hoc network.
7. Refresh MAX.
8. Test your connection with the MAX Test Panel.
Detailed Instructions
1. Using a regular (non-crossover) Ethernet cable, connect your WLS-9163 to the appropriate port on your
computer.
a. From page 14 of the WLS-9163 user manual (372488A-01, August 2008), “When pressed for 5
seconds or longer, the STATUS LED turns on. When released, the device reboots into Factory Default
Mode, which returns the device user configuration to the factory-set defaults.”
a. Expand the My System tree in the Configuration pane to Devices and Interfaces, NI-DAQmx
Devices.
i. This window will appear with your connected device in the list.
[+]
Enlarge Image
c. Place a checkmark in the white box to the left of the Hostname of the device and click Add Selected
Devices.
i. The Adding Device window will appear while MAX adds a connection to your system.
[+]
Enlarge Image
d. Single left-click on the new device in the Configuration pane of MAX to open its properties in the
main window.
e. Leave MAX as it currently is. We will now begin to configure the Windows networking portion of this
setup. We will return to this window in MAX in a bit.
a. If there is no Wireless Networks tab at the top, verify that you are in the Wireless Network
Connection and that the interface is not disabled. (You cannot change Wireless Networks settings
when the interface is disabled.)
7. Double-click on the Internet Protocol (TCP/IP) entry. You may need to scroll to the bottom of the list to
see this.
8. Make the Internet Protocol (TCP/IP) Properties window look like the one shown below.
a. Note: The IP address does not have to be the one specified, but it will work for this setup.
9. Click OK on the Internet Protocol (TCP/IP) Properties window.
a. Before using this in the field (or any unprotected area), it is recommended to set the network up
with some sort of encryption.
17. Click on the wireless tab on the WLS-9163 properties page in MAX.
[+] Enlarge Image
18. Select your country and place a check in the Radio On box. (Note: The country needs to be chosen
because different countries use different frequencies to implement wireless networking.)
[+] Enlarge Image
19. Once the Radio is turned on, the following options will appear. Fill in the fields marked with Red
arrows.
a. Note: The Link Status should be as indicated in the image below because the wireless is not yet
configured.
b. Note: Like the IP Address that we set on the computer earlier, the IP address does not have to be
the one specified, but it will work for this setup. The important part is that the two IP Addresses are
NOT the same and have the same subnet mask.)
[+]
Enlarge Image
20. Once all of the settings have been entered according to the above image, click Save Settings…
21. MAX will ask if you want to apply these changes. Click OK.
22. Once the properties window refreshes, both the wired and wireless statuses will be up.
[+] Enlarge Image
23. Unplug the Ethernet cable that connects your computer to the WLS-9163 from your computer.
24. As we did earlier, leave MAX as it currently is. We will finish configuring the Windows networking
portion of this setup. We will return to this window in MAX in a bit.
25. Right-click the Wireless Networking Connection in the Windows taskbar and select View Available
Wireless Networks.
26. The network that we created on the computer earlier will be in this list. It may already be Connected,
as is my WIRELESS_DAQ network.
[+] Enlarge Image
27. If your new network is not already connected, single left click the appropriate network and select
Disconnect / Connect in the bottom, right corner of this window.
[+] Enlarge Image
30. The DAQmx Device icon should be green, as in the left-most circle in the below image. The link
status should be up for wireless. The Wired link status may still be listed as up, even though the Ethernet
wire is no longer connected.
[+] Enlarge Image
31. If the above image is NOT what you see on your computer, repeat the above steps until it is.
32. If the above is what you see, your device is configured. We are ready to test the connection and take
some data. Click on Test Panels…
a. Unless you have a signal hooked up to the input you are reading, you will only see noise. This is
the case in the screenshot, below.
Congratulations! You have successfully set up your wireless DAQ system.
Note: If this does not work for your setup, try the steps outlined in the following KnowledgeBase
article: Error 50405: Connection timed out with a WLS/ENET-9163
2 Avaliação | 3,00 de 5
Inglês
Ler em | Imprimir | PDF
Reader Comments | Submit a comment »
Informações legais
Esse tutorial (esse "tutorial") foi desenvolvido pela National Instruments ("NI"). No caso de a National
Instruments fornecer suporte técnico a esse tutorial, isso não implicará que o conteúdo desse tutorial
tenha sido completamente testado e verificado, nem que a NI oferecerá garantias de qualquer natureza
quanto à qualidade desse conteúdo ou que a NI continuará a fornecer suporte a esse conteúdo a cada
nova revisão dos produtos e drivers relacionados. ESSE TUTORIAL É FORNECIDO "COMO ESTÁ", SEM
GARANTIAS DE QUALQUER NATUREZA E SUJEITO A DETERMINADAS RESTRIÇÕES, COMO
ESTABELECIDO DE FORMA MAIS ESPECÍFICA NOS TERMOS DE USO DA NI.COM
(http://ni.com/legal/termsofuse/unitedstates/us/).