Error when opening NI Example Finder: The NI HelpServer could not be found

Updated Jan 20, 2023

Reported In

Software

  • LabVIEW

Issue Details

I am trying to access the examples for LabVIEW by going to Help » Find Examples, but I get an error:
Could not find LabVIEW service port from ServiceLocator. You will not be able to browse by Directory Structure

When trying to open an example, I am getting: 
An error occurred - The NI HelpServer could not be found

​How do I fix either of these errors?
 

Solution

When LabVIEW starts up it launches a service called Help Server. This opens TCP/IP ports to communicate with other NI applications, namely the NI Example Finder. Sometimes, the ports that these applications access are used by other applications and hence you get the errors shown below:


This error is received when you click on Help » Find Examples.


This error is received when you try to open an example from Example Finder.

To fix this problem, you will have to restart the HelpServer. Here are the steps to do this:
  1. Navigate to C:\Program Files\National Instruments\LabVIEW x.x\resource\system.
  2. Double click on HelpServer.llb
  3. Launch Set HelpServer Config Settings__NATIONAL INSTRUMENTS.vi.
  4. Click the Enable Help Server? boolean button so that it in its TRUE state.
  5. Run the VI once.
  6. Close the VI.
  7. Now the Example Finder should work fine.
You can also restart the HelpServer using the following steps:
  1. Navigate to C:\WINDOWS\system32.
  2. Double click on nisvcloc.exe.
  3. This starts the NI Service Locator service.

    To ensure that this Service Locator automatically runs every time Windows starts:
  4. Navigate to Start » Program Files » Startup.
  5. Right click in the menu and select Create Shortcut.
  6. Follow the steps to create a shortcut to C:\WINDOWS\system32\nisvcloc.exe.
Note: For LabVIEW 2010-2012 NI Service Locator was renamed to System Web Server, but changed back to NI Service Locator starting in LabVIEW 2013

If the above steps did not solve the issue then follow these steps to change the port used by the Help Server:
  1. Navigate to C:\Program Files\National Instruments\LabVIEW x.x\resource\system.
  2. Double click on HelpServer.llb.
  3. Launch the HelpServer__NATIONAL INSTRUMENTS.vi.
  4. Now you can see the port that HelpServer is using. Change the port by stopping and running this VI several times.
  5. Hit the Stop button to see the 'Registered?' light go off. Now Run the VI and you will see it come on. 
  6. On your last run, close the VI WITHOUT stopping it. 
  7. Now the Example Finder should work fine.
Another possible cause of the problem is if a firewall is blocking the TCP/IP ports the HelpServer is trying to use. Change the settings of the firewall to unblock the correct port, and this should resolve the problem.