LabVIEW 2021 SP1 or later
Note: Starting with LabVIEW 2021 SP1, Silverlight is no longer required to access and manage deployed LabVIEW Web Services.
- Make sure LabVIEW (2021 SP1 or later) is installed.
- Open a web browser and navigate to http://localhost:3582/web-config/web-services.
- This will launch the Web Services configuration page of the NI Web-Based Configuration and Monitoring Utility.
- Click the Login button in the top-right corner and enter the appropriate username and password. Click OK to submit.
- By default, the username is admin and the password is left blank.

- Select the Users tab underneath Security Configuration.

- Click the '+' button above the list of users to add a new user.

- Enter a username for the new user. In this example, the username will be testuser2.
- Enter a password for the new user by clicking on the Change password... button. The password will be testpassword2 for this example.
- Click the Save button to save changes.

- Select the Permissions tab at the top of the window.

- Click the '+' button above the list of permissions to add a new permission.
- Enter a name for this new permission and remove the group called everyone in the These groups have this permission section. In this example, the permission will be named testpermission2.

- Click the Save button to save the permission.
- Note: if a Warning dialog appears, notifying you that you will be logged out, click Continue.
- Create or open an existing project with VIs that you wish to use as part of your Web Service. In this example, we'll be using a simple project with one VI that adds two numbers called add.vi.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
- In the Project Explorer window, right-click My Computer and select New » Web Service.
- Drag add.vi into the Web Resources folder in the Project Explorer. Configure your Web Service as desired (i.e. Service name, Source files, etc.).
- Right-click the Web Service and select Properties.

- Select the HTTP Method VI Settings category from the left pane of the Web Service Properties window and highlight add.vi.

- Select the Application Web Server tab listed under Web Service VI Properties section.

- Click the '+' button to the right of the Required Permissions field.
- Type in the permission's name. This was specified as testpermission2 in step 11.

- Click OK to save changes.
- Finish configuring the properties of your Web Service as you desire and right-click the Web Service in the Project Explorer. From there, choose Application Web Server » Publish.

- To access this Web Service from a web browser, navigate to the appropriate URL mapping for the web service you configured. The URL can be found by right-clicking the add.vi in the Project Explorer and choosing Show Method URL.
- This will take you to a login screen where you must enter in the username and password you created earlier.

- To access this Web Service from LabVIEW, you need to specify the username and password when you execute the Open Handle VI.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
LabVIEW 2011 to 2021
- Make sure LabVIEW (2011 or later) is installed.
- Open a web browser and navigate to http://localhost:3582. This will launch the NI Web Monitoring and Configuration utility.
- Click the Login button at the top right corner and enter in the appropriate username and password. The default user name is admin and the default password is left blank. Click OK.

- Click the Security Configurations button on the left pane.

- Click the '+' button at the bottom of the window in the Users tab.

- Enter a username for the new user. In this example, the username will be testuser2.
- Enter a password for the new user by clicking on the Change Password button. The password will be testpassword2 for this example.
- Click the Save button at the bottom of the tab.
- Select the Permissions tab at the top of the window.

- Click the '+' button at the bottom of the window in the Permissions tab.
- Enter a name for this new permission and remove the group called everyone in the These groups have this permission section. In this example, the permission will be named testpermission2.
- Click the Save button at the bottom of the window to save the permission.
- Create or open an existing project with VIs that you wish to use as part of your Web Service. In this example, we'll be using a simple project with one VI that adds two numbers called add.vi.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
- In the Project Explorer window, right-click My Computer and select New » Web Service.
- Drag add.vi into the Web Resources folder in the Project Explorer. Configure your Web Service as desired (i.e. Service name, Source files, etc.).
- Select the HTTP Method VI Settings category from the left pane of the Web Service Properties window and highlight add.vi.
- At the bottom of the Web Service Properties window, select the Security tab listed under Web Service VI Properties.

- Click the blue '+' button to the right of the Required Permissions field underneath the Security tab.
- Type in the permission's name. This was specified as testpermission2 in step 11.
- Finish configuring the properties of your Web Service as you desire and right-click the Web Service in the Project Explorer. From there, choose Application Web Server » Publish.
- To access this Web Service from a web browser, navigate to the appropriate URL mapping for the web service you configured. The URL can be found by right-clicking the add.vi in the Project Explorer and choosing Show Method URL. For this example, the URL would be http://localhost:8080/testwebservice/add/<x>/<y> where <x> and <y> are the two numbers you wish to add.
For example: http://localhost:8080/testwebservice/add/3/4 - This will take you to a login screen where you must enter in the username and password you created earlier.

- To access this Web Service from LabVIEW, you need to specify the username and password when you execute the Open Handle VI.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
LabVIEW 2010 or earlier
- Make sur LabVIEW (2010 or earlier) is installed.
- Open a web browser and navigate to http://localhost:3582. This will launch the NI Web Monitoring and Configuration utility.
- Click the Login button at the top right corner and enter in the appropriate username and password. The default username is admin and the default password is blank. Click OK.

- Click on the Security Configurations button on the left pane.

- Click on the New User button at the top.

- Enter a username and password for this new user.
- Click the Save button at the top of the tab.
- Click the New Permission button.

- Enter a name for this new permission.
- Assign the permission to the user you created in steps 4-6.

- Click the Save button at the top of the window to save the permission.
- Click the Upload Changes button.

- Create or open an existing project with VIs that you wish to use as part of your web service. We'll be using the same simple project with add.vi for this example.
- In the Project Explorer window, right-click Build Specifications and select New » Web Service (RESTful). This will launch a properties dialog box to configure a web service.
- Configure your web service as desired (i.e. Service name, Source files, etc.). In this example, we will name the web service testwebservice and use add.vi as our Service VI.
- Select the URL Mappings category from the left pane and select the URL mapping you wish to assign an NI Auth permission to. in this example, we will use the default URL mapping for the add.vi service VI.
- At the bottom right corner of the window, click the blue plus sign (+) and enter in the name of the permission you created earlier.
- Finish configuring the properties of your web service as you desire and click the Build button at the bottom of the window. Once the build is complete, click Done.
- Deploy the web service by right-clicking the web service name under Build Specifications and selecting Deploy.
- To access this web service from a web browser, navigate to the appropriate URL mapping for the web service you configured. For this example, the URL would be: http://localhost:8080/testwebservice/add/<y>/<x>, where <y> and <x> are the two numbers you wish to add.
For example: http://localhost:8080/testwebservice/add/3/4 - This will take you to a login screen where you must enter in the username and password you created earlier.
- To access this web service from LabVIEW, you need to specify the username and password when you execute the OpenHandle VI.
