Example Code

Java Variables Translator

Code and Documents

Attachment

Overview

Reads a (.java) Document from a compiler ( Eclipse, JavaEditor,etc.), searches for following variables ( int, double, or boolean) and defines them on LabView.   

Description

At the moment, there are just two variables for each tipe: (int, double, or boolean) supported.


Steps to Implement or Execute Code

  1. Click on the file path (use dialog) button, browse and select your (.java) code from your computer.
  2. Run the VI and click the OK button.
  3. The defined variables (int, double or boolean) will appear automatically on your VI.
  4. You can rewrite your variables on your (.java) Program and then run the VI again, but it´s important that to compile the java code.

Requirements

Software


National Instruments Labview

Java Code compiler for example: (Oracle, JavaEditor, Netbeans)

Additional Images or Video

VI.jpg

VI2.jpg

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors