Any/all GUIDs created inside Antidoc should be created using Create NI GUID.vi

The latest version of Antidoc (version 2.0.5.355) contains at least one VI that generates a GUID (AntiDoc.lvlib:Utilities.lvlib:Copy File To Include.vi).

Currently the GUID is generated by constructing the System.Guid .NET Framework object, as seen in the screenshot below.

image.png

The GUID could be generated using the Create NI GUID.vi, as seen in the screenshot below.

image.png

This would have the following advantages:

  • Create NI GUID.vi has been a native (vi.lib VI) since LabVIEW 2020.
  • It occupies less space on the block diagram
  • Has an excellent, self-explanatory name.
  • Removes dependency on .NET Framework, which itself works on Windows only (Note: Later .NET versions, for example the current .NET 8.0, are cross-platform and work equally well on Linux and MacOS).

Please note that, for LabVIEW versions before 2020, the following version of the VI can be used: https://forums.ni.com/t5/Example-Code/GUID-Generation-for-LabVIEW-Versions-Older-than-2020/ta-p/4203820 . This version was saved with LabVIEW 8.0.

The following NI KB article is another useful resource: "How to Generate a MessageID/GUID/UUID With LabVIEW?" https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019R1DSAU&l=en-GB

Kind regards,

Petru