How to Generate a MessageID/GUID/UUID With LabVIEW?

Updated Jun 30, 2022

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Operating System

  • Windows

Issue Details

I need a guaranteed unique identifier to identify a component in my software or I am programming a top level interface to command the hardware of another company. They are proposing Message IDs formatted like "fbdc0d3e-25c8-41e0-ab90-d028123c9f18".

Solution

The Message ID asked about is a "universally unique identifier" (UUID), also called "globally unique identifier" (GUID).

Starting in LabVIEW 2020 there is a VI available on the String -> Additional String Functions palette to generate GUIDS:
Palette location of Create NI GUID VI

Prior to LabVIEW 2020, they can be created in two recommended ways: