LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a GUID

Hi

 

Does anybody know how to generate a GUID in LabVIEW?

Or from a command shell or dll.

 

regards

Richard

0 Kudos
Message 1 of 5
(5,058 Views)

Hi Richard,

 

Do you want LabVIEW to generate a GUID for you? I thought that a GUID is a pseudo-random 128-bit number that is computed by Windows and Windows applications in order to identify any component in the computer that requires a unique number. Why do you need a command shell or dll? A better explanation of what exactly you want to do over here would be helpful.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 5
(5,043 Views)

Hi,

 

I'm executing a series of stored procedure (MS SQL).

A lot of these store proc's have relations (the prim key use GUID).

 

I know it is possible to get the GUID from the MS SQL Server, but it is time-consuming.

I have tried the GUIDGen (from Microsoft), but that was a Windows app. I need to get the GUID at run-time. That is why I asked for a dll or shell

 

regards

Richard

0 Kudos
Message 3 of 5
(5,036 Views)

Yes, you can make a call to ole32.dll. This is what you are looking for: GUID generation. They have provided an example for LabVIEW and C.

 

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 4 of 5
(5,033 Views)

Hi Adnan,

 

Thanks!

 

Regards

Richard

0 Kudos
Message 5 of 5
(5,007 Views)