Skip to content

ThomasPRZilliox/labview-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

LabVIEW and SVG integration

The idea behind this project is to demonstrate how to improve User Interfaces by using SVG and Javascript thanks to the WebView2 control and the WebSocket API.

This project will display the map of France where the User can click on any region to get the name of it. The click of User will be sent back to the server and logged in the console.

Table of content

Acknowledgements

This project would not have been possible without the following tools, libraries and tutorials:

Built with

LabVIEW JS

How to use it

Prerequisite

  • LabVIEW 2020 or greater
  • The package WebView2 installed from the VIPM
  • The package Websockets API installed from the VIPM

Run the application

Open the LabVIEW project labview-svg.lvproj then open the main.vi and run it. You should have the following window:

main vi

By clicking on any region you should see the name of the region in the "received data" output and a message in the console log of the web browser. To display it, click on it and press ctrl+shift+i . The following image is an example:

clicked

To stop the program click om the red cross or press ctrl+w .

Reflections on Preferences: Exploring Likes and Dislikes.

Pros

  • The debug from the web browser is great and always available (even with a build)
  • Shallow learning curve for basic HTML, CSS and JS with the Websocket API
  • The amount of resources for web related scripts and all of the free AI tools available
  • The easiness of having clean interface and not need "to reinvent the wheel"

Cons

  • The first time you set a build can be tricky (unfortunately I don't have the required license to give an example)
  • The HTML, CSS and JS scripts are not compiled, therefor not hidden

When should you use it?

License

Distributed under the MIT License. See LICENSE.txt for more information.

About

Example of use case of the webview2 control to improve the User Experience with better controls.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages