Jump to content

GUID creator


Recommended Posts

QUOTE(LV Punk @ Jul 18 2007, 12:55 PM)

I do't know if this is available on platforms other than Windows; look for:

LabVIEW 8.2\resource\Framework\Providers\Builds\Installer\CDK_Utility_GenerateGUID.vi

Thanks, the Builds VI calls this VI:

\resource\Framework\Providers\API\mxLvGenerateGuid.vi

which I suspect to be available on other platforms as well.

Ton

Link to comment

QUOTE(tcplomp @ Jul 18 2007, 04:34 AM)

The http://www.vartortech.com/visecurity/cryptg.html' target="_blank">CryptoG Toolkit contains amongst many encryption and hash algorithmes a Random Number Generator and based on that a VI to create GUIDs.

All these functions are fully native G code and tehrefore completely plattform independant. It's cost is nothing that should prevent you using it and I can really recommend it.

Rolf Kalbermatter

Link to comment
  • 3 years later...

I hereby resurrect thee...

Was looking for this today myself. This is what I came up with:

post-11742-0-05981800-1295030537_thumb.p

Added benefit is if you supply a variant, the VI will make sure that the returned GUID has not already been defined as an attribute key. It of course generates an entirely random number which doesn't conform to any specification that places significance on certain bits etc...but it suits my needs just fine (creating positively unique keys).

  • Like 2
Link to comment
  • 13 years later...

This is an old thread, but if anyone else comes across this:

  • If using LabVIEW 2020 or later, the best way to generate a GUID is to use the native Create NI GUID.vi which is found in the String >> Additional String Functions palette.

Petru_Tarabuta_0-1725093233334.png

  • If using LabVIEW 8.0 to LabVIEW 2019, the best way is to download the Create NI GUID.vi that is found at: GUID Generation for LabVIEW Versions Older than 2020 . This is the same VI as the one that exists natively since LabVIEW 2020, but "Saved for previous..." to LabVIEW 8.0.
  • If using a LabVIEW version older than 8.0 on Windows, it's probably best to use the .NET Framework System.Guid object, as document in the following article: How to Generate a MessageID/GUID/UUID With LabVIEW?  and as seen in the screenshot below.

Petru_Tarabuta_2-1725093549150.png

This comment was cross-posted at: https://forums.ni.com/t5/LabVIEW/Any-GUID-generating-VI-available/m-p/1246596 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.