This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

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

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Operating System

  • Windows

Issue Details

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". How can I create these in LabVIEW?

Solution

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

They can be created in LabVIEW using .NET's Guid functions:

Additional Information

Another way to create them is using one of the VIs made for this purpose that are pre-shipped several of National Instruments' software packages.

One is mxLvGenerateGuid.vi which comes with NI-DAQmx and is typically located here: C:\Program Files (x86)\National Instruments\LabVIEW 2017\resource\Framework\Providers\API\mxLvGenerateGuid.vi. This example path refers to an installation of LabVIEW 2017 32bit, change it accordingly to your installation of LabVIEW.

WAS THIS ARTICLE HELPFUL?

Not Helpful