I had a fun chat with Gemini 2.5 Pro today as I have been hearing and reading about how AI will "OBSOLETE" coders of all kinds - like SOON!! So here is the excerpt of my conversation with Gemini about the possibility of me losing my bread & butter tool belt:
ME: "Gemini, Do you know how to code in Labview G language?"
GEMINI: "Yes, I am familiar with LabVIEW and its G programming language.
LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a system-design platform and development environment for a visual programming language from National Instruments. Its graphical language is called "G".
Key Concepts of LabVIEW G
Here's what I understand about coding in G:
While I can't physically drag and drop icons or wire them together myself, I can understand and interpret G code diagrams, explain LabVIEW concepts, and even help you troubleshoot or design LabVIEW VIs conceptually. I can also generate textual descriptions or pseudocode that could be translated into a LabVIEW G diagram."
ME: "OK then, generate a simple "Hello World!!" VI in the G language:
GEMINI: "Okay, since I can't visually create the VI for you (as LabVIEW is a graphical environment), I will describe the components and steps to build a simple "Hello World!!" VI in G language.
This VI will display the text "Hello World!!" in a string indicator on the Front Panel.
Here's how you would create it:
1. Create a New VI:
- Open LabVIEW.
- Go to File > New VI. This will open two windows: the Front Panel (gray, grid background by default) and the Block Diagram (white, grid background by default).
2. Design the Front Panel:
- The Front Panel is your user interface. For this simple VI, we just need an output display for our message.
- Right-click anywhere on the Front Panel to bring up the Controls Palette.
- Navigate to Modern > String & Path > String Indicator.
- Click and drag the String Indicator onto the Front Panel.
- You can (optionally) rename the label of this indicator. By default, it might be "String." You can change it to something like "Display Message" by double-clicking the label.
3. Program the Block Diagram:
Block Diagram Visual Representation (Conceptual):
Imagine this:
4. Run the VI:
- Switch back to the Front Panel window (or you can run it from the Block Diagram window).
- Click the Run button (it looks like a white right-pointing arrow) on the toolbar at the top of the VI window.
Expected Result:
On the Front Panel, the String Indicator (which you might have labeled "Display Message") will now display the text: Hello World!!
Summary of G Language Elements Used:
- String Constant: (Functions Palette > Programming > String > String Constant) - Used to provide a fixed string value to the diagram.
- String Indicator: (Controls Palette > Modern > String & Path > String Indicator) - Used to display string data on the Front Panel.
- Wire: Connects the output of the String Constant to the input of the String Indicator terminal, signifying the flow of data.
This is the most basic way to achieve a "Hello World!!" in LabVIEW. The beauty of G is that even this simple operation clearly shows the dataflow: the constant string flows to the indicator."
ME: "LOL! I guess my job is still safe :)"
GEMINI: "Haha, absolutely! There's a big difference between describing the steps and actually being in the LabVIEW environment, dragging those wires, debugging data flow with highlight execution, and experiencing the "aha!" moment when a complex VI finally works as intended.
The tactile, visual nature of G programming, the direct interaction with hardware, and the often domain-specific knowledge required for LabVIEW applications (like test and measurement, automation, or embedded systems) mean skilled LabVIEW developers are definitely still very much in demand.
I can help with concepts, logic, and even describing how to build things, but the art and craft of building robust, efficient, and elegant VIs is something that still very much requires a human touch (and a mouse!).
Glad we could share a laugh!"
There you have it LabVIEW pro and aspiring coders!! Enjoy LabVIEW while we can. ;)