09-13-2010 04:06 PM
Does anyone have a LV VI that generates a new GUID at runtime? I can not find one in LV or on the Internet.
GUID generation at Run Tim has many uses.
I would appreciate any info.
09-13-2010 04:32 PM
Here is a recent thread where someone was doing just that.
In this thread, they were complaining that the randomly generated numbers were duplicating. Yet I never saw that behavior, and they even had problems explaining it.
But the concept of building the string from the random numbers is there.
09-14-2010 06:01 PM
There's also a VI in <LabVIEW>\resource\somewhere that generates a GUID using the normal Windows rules. I dont have a copy of LV on Windows to find it right now, but try searching the resource folder for VIs with GUID in their name and see what you can find (unless someone get give you a more exact location).
Shaun
06-04-2012 08:53 AM - edited 06-04-2012 08:53 AM
Using .NET
06-05-2012 09:18 AM
I cannot find this constructor when I select constructor. Is there a way to search for it, and other, useful constructors?
06-05-2012 09:27 AM - edited 06-05-2012 09:28 AM
It is in "mscorlib" under system
06-05-2012 09:29 AM
It's in the mscorelib assembly. To find where a particular constructor is lurking, a good place to start is to search MSDN. Here is the page for System.Guid:
http://msdn.microsoft.com/en-us/library/system.guid.aspx
On the this page is normally a line like "Assembly: mscorlib (in mscorlib.dll)" - This tells you where to find the constructor.
Alternatively, if you dont want to use the .net stuff, you could always use the VI that LabVIEW uses to for generating it's own GUIDs (installer creation, etc): <LabVIEW>\resource\Framework\Providers\API\mxLvGenerateGuid.vi
06-05-2012 09:32 AM
Thanks. A useful utility.
06-05-2012 09:39 AM - edited 06-05-2012 09:40 AM
Here is a Windows only way to create a GUID. This calls the COCreateGuid function in the OLE32.dll library using a call library function node and gives you the enjoyment of seeing the source code.
08-31-2024 03:41 AM
This is an old thread, but if anyone else comes across this: