You are here

Hello Graphical World

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at

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.

Figure 1.3 String Constant 

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

Figure 1.4 "" String Constant 

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

Figure 1.5 Select String Indicator 

Drop it into the Front Panel window.

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.

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.

Figure 1.8 Wired G Block Diagram  

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

Figure 1.9 Hello, World G Program Executed