Ton Plomp Posted July 19, 2007 Report Share Posted July 19, 2007 Does anyone have a GUID creator in LabVIEW? I know this is a bit lazy, but hey? Ton Quote Link to comment
LAVA 1.0 Content Posted July 19, 2007 Report Share Posted July 19, 2007 QUOTE(tcplomp @ Jul 18 2007, 05:34 AM) Does anyone have a GUID creator in LabVIEW? 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 Here's a simple .NET version (Windows only of course) I wrote a while back... http://forums.lavag.org/index.php?act=attach&type=post&id=6392''>http://forums.lavag.org/index.php?act=attach&type=post&id=6392'>http://forums.lavag.org/index.php?act=attach&type=post&id=6392 Quote Link to comment
Ton Plomp Posted July 19, 2007 Author Report Share Posted July 19, 2007 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 Quote Link to comment
Rolf Kalbermatter Posted July 20, 2007 Report Share Posted July 20, 2007 QUOTE(tcplomp @ Jul 18 2007, 04:34 AM) Does anyone have a GUID creator in LabVIEW?I know this is a bit lazy, but hey? Ton 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 Quote Link to comment
mje Posted January 14, 2011 Report Share Posted January 14, 2011 I hereby resurrect thee... Was looking for this today myself. This is what I came up with: 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). 2 Quote Link to comment
ShaunR Posted January 14, 2011 Report Share Posted January 14, 2011 Yeah I know. you can't build it.....but couldn't resist Quote Link to comment
Phillip Brooks Posted January 14, 2011 Report Share Posted January 14, 2011 .NET? I used to be known as LV_Punk dotNET GUID.vi 1 Quote Link to comment
Tim_S Posted January 17, 2011 Report Share Posted January 17, 2011 (edited) Was looking for this today myself. This is what I came up with: Found this a while back, though I think I like the .NET implementation better. Tim EDIT: Helps to attach the file before posting... wguid.zip Edited January 17, 2011 by Tim_S Quote Link to comment
Petru_Tarabuta Posted August 31 Report Share Posted August 31 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. 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. This comment was cross-posted at: https://forums.ni.com/t5/LabVIEW/Any-GUID-generating-VI-available/m-p/1246596 1 Quote Link to comment
LogMAN Posted August 31 Report Share Posted August 31 Good stuff! LabVIEW also has a private built-in method "CreateGUID", which is available from at least LV2009. It was probably also available in earlier versions. Create GUID.vi 1 Quote Link to comment
dadreamer Posted August 31 Report Share Posted August 31 The Create NI GUID.vi is using App.CreateGUID. On Windows App.CreateGUID private method calls CoCreateGuid function, which could be easily called directly from BD, as shown in that cross-posted link. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.