Configure and Set Up an Ad Hoc Network on NI cDAQ-9191

Updated Jun 7, 2018

Reported In

Hardware

  • cDAQ-9191

Issue Details

I want to create a wireless network to allow me to communicate directly between my cDAQ-9191 and my laptop without using a wireless router. How do I do this?

Solution

In order to create a wireless network directly between your cDAQ-9191 and your laptop without using a wireless router, you will need to create an ad hoc network. The following steps will walk you through setting up your cDAQ-9191 and creating an ad hoc network. 
  1. Place the cDAQ module into the cDAQ-9191. Attach the power cord and plug in to power on the cDAQ-9191.
  2. Open Measurement & Automation Explorer (MAX). On the left, navigate to Devices and Interfaces » Network Devices.
  3. Connect the cDAQ-9191 to the laptop using the ethernet cable. Your cDAQ-9191 should appear under Network Devices with a white icon next to it. If the device does not show up, try refreshing MAX by pressing F5. If it still does not show up, try resetting the cDAQ-9191 by pressing the reset button on back of the chassis. Hold the button for five seconds or longer in order to reboot the chassis into factory default modes. (Pressing the reset button for less than five seconds reboots the chassis with the current configuration.)
 
  1. Right click Network Devices and select Find Network NI-DAQmx Devices
 
  1. A window will pop up titled Find Network NI-DAQmx Devices. It may take a moment to search for devices. If the device does not show up, click the button labeled Refresh List in the middle right of the window. If it still does not show up, try resetting the cDAQ-9191 by pressing the reset button on back of the chassis and begin back at step 3. Hold the button for five seconds or longer in order to reboot the chassis into factory default modes
 
  1. Select the device by clicking on the box to the left of the device name and then press Add Selected Devices. The device will now display in MAX with a colored icon on the left to indicate it has been added. The module inside will populate automatically. 
  1. Click on the cDAQ-9191 and then select the Network Settings tab at the bottom of the window. Change the settings:
    • Wireless mode: Create wireless network
    • SSID: Enter in a name for the network, such as NI 9191 Network
  1. Hit Save. The status should change to say that it is broadcasting the network. Wait for it to find the IP address.
  1. If you want the IP to be static, change Configure IPv4 Address to Static and change the IP address. Hit Save. If you are using Windows 10, stop at this step and refer to the section titled "Connecting to an ad hoc Network using Windows 10" at the bottom of this document.
  2. Unplug the ethernet cable from the cDAQ-9191 and the laptop. On the laptop, connect to the wireless network you created.
  3. To verify the connection, copy the IP address into a browser in order to view the NI Web-based Configuration and Monitoring window. You can also use test panels for the device to verify the connection.

Additional Information

Note: After you set up your wireless network, if you have trouble getting your device to connect via a wired connection, please see What Link Does a cDAQ-9191 Prefer when Both Wireless and Wired Are Connected?

Connecting to an ad hoc Network using Windows 10:

Note: If your wireless network adapter in the Windows 10 computer is not IBSS enabled, you will not be able to connect to the NI-9191 ad hoc network. You can check the IBSS capability of your network card in Windows 10 by opening a command prompt and typing the following and pressing Enter:

netsh wlan show wirelesscapabilities

If the IBSS field in the displayed results does not indicate that the wireless network adapter is IBSS enabled, the following steps will not work and you will not be able to connect to the NI-9191 wirelessly with that Windows 10 computer. This is a result of the Windows 10 WLAN Device Driver Interface. See this article to learn more about this Windows 10 driver: Why are Soft AP (Hosted network) and IBSS (Ad-Hoc Network) Not Working on Windows® 10?

Compared to earlier Windows operating systems, Windows 10 can have difficulty connecting to ad hoc networks. A workaround for this is to manually connect to the wireless network and then configure its connection type as ad hoc. To manually connect to a wireless network, follow these steps:
  1. Open the Network and Sharing Center
  2. Click on Set up a new connection or network
  3. Select Manually connect to a wireless network from the list and then click Next
  4. Enter the network name that you picked as the SSID when the ad hoc network was created on the NI-9191
Next, open up a command prompt window and type the following:

netsh wlan set profileparameter name=%name% ConnectionType=IBSS

where %name% is the SSID. For example, %name% could look like “NI 9191 Network”. Make sure to include the quotation marks around the SSID name in your command prompt input. Next, open up Notepad and copy the following:

ECHO OFF
netsh wlan connect name=%name%
ECHO ON


Again, change %name% to the SSID. Save this file with an extension of .bat. Now whenever you want to connect to the ad hoc network, run the .bat file and your wifi will connect to the NI-9191.

WAS THIS ARTICLE HELPFUL?

Not Helpful