You are here

Hello Graphical World

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3

The first program is to display the text "Hello graphical interactive parallel multicore world" in the Front Panel window.

Right click on the Block Diagram window and select String Constant from the Functions » Programming » String menu.

Drag and drop the String Constant onto the Block Diagram window as show in the following Figure 1.3.

media/image3.png
Figure 1.3 String Constant 

Type in "Hello graphical interactive parallel multicore world." in the String Constant.

media/image4.png
Figure 1.4 "Hello...world" String Constant 

Right click in the Front Panel window and select a String Indicator from the Controls »Modern » String & Path menu.

media/image5.png
Figure 1.5 Select String Indicator 

Drop it into the Front Panel window.

media/image6.png
Figure 1.6 String Indicator 

Return to the programming window. Notice the string terminal corresponding to thestring indicator in the Front Panel window. As you approach the string constant from the right, the wiring terminal is highlighted and the pointer turns to wire spooler.

media/image7.png
Figure 1.7 Wiring the G Diagram 

Click the "Hello graphical interactive parallel multicore world" terminal and then click on the String Indicator triangular terminal to wire the terminals.

media/image8.png
Figure 1.8 Wired G Block Diagram  

Save your program as Hello, World.vi. Return to the Front Panel window. Click the run button ([U+27AF]). You have successfully completed and executed your first G program.

media/image9.png
Figure 1.9 Hello, World G Program Executed