Creating a Web Application
- Updated2023-02-17
- 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.
- Web Server target—The item in SystemDesigner that represents the web server that hosts the web application.
- 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.Note Unlike desktop VIs, WebVIs do not currently support debugging tools, such as execution highlighting, probes, and breakpoints.
- 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
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
Unlike desktop VIs, WebVIs do not currently support debugging tools, such as execution highlighting, probes, and breakpoints. However, you can still debug a WebVI using the following strategies.