Creating a Web Application
- Updated2024-05-31
- 1 minute(s) read
Creating a Web Application
Use the web application project template to create an application that can run in a web browser.
-
In the
Projects tab, click
Web Application Project, name your project, and click
Create.
A web application project includes the following parts:
- Web application document (.gcomp) - The container for all the files in your application.
- WebVI (.gviweb) - A specialized VI that generates HTML, JavaScript, and CSS files after you build a web application. Each WebVI marked as top-level in your application generates one HTML file, which corresponds to one web page after you build your web application.
- Other files (Optional) - Any other files you want to include in your web application, such as CSS, JavaScript, and image files.
- Open or create a WebVI within the application document and customize the WebVI for your unique programming goals.
- Optional: If you want to customize the appearance of your WebVI or add interactive functionality, create CSS and JavaScript files and include them in your application.
-
Test and debug your code.
Select to test your WebVI in a browser.
- Repeat steps 2–4 to create additional WebVIs.
Once you finish creating and testing your application, build it into a web application that can run in a web browser.
Related Information
- Building a Web Application as a Web Page
To view your completed web application in a web browser, build your application to generate HTML, CSS, JavaScript, and other files that are included in your application.
- Debugging a WebVI
WebVIs support a subset of the debugging techniques available in an editor like LabVIEW. You can debug WebVIs using the following strategies.
- NI Package Manager User Manual
- Testing and Debugging
When the results of your application are not what you expect, use a set of tools to determine where errors occur within your code.
- LabVIEW Application Builder Module
- TestStand Licensing Information