Jump to content

Get object type from GUID?


Stobber

Recommended Posts

I'm walking through a LVRT Project using the VI Server API, trying to find a particular build spec on my FPGA target. I can get the target ("FPGA Target") by name and use that ref to find the build spec by its name, but the reference returned can't be cast to type ProjectItem:BuildSpecification. If I probe the reference wire, the only interesting thing I see is the type GUID...

{F4C5E96F-7410-48A5-BB87-3559BC9B167F}

Does anybody know of a way to deduce the VI Server object type from this GUID so I can perform a downcast on it?

Edited by Stobber
Link to comment
  • 2 weeks later...

I'm walking through a LVRT Project using the VI Server API, trying to find a particular build spec on my FPGA target. I can get the target ("FPGA Target") by name and use that ref to find the build spec by its name, but the reference returned can't be cast to type ProjectItem:BuildSpecification. If I probe the reference wire, the only interesting thing I see is the type GUID...

{F4C5E96F-7410-48A5-BB87-3559BC9B167F}

Does anybody know of a way to deduce the VI Server object type from this GUID so I can perform a downcast on it?

 

I might misunderstand what you are trying to do, but do you really need the GUID conversion?

 

Once you get to the BuildSpecs and its OwnedItems you can query each OwnedItem for the TypeString.

This typestring is different depending on if you have a build script that is EXE, Source Distribution, Zip etc., but you can cast any of them to BuildSpecification.

 

/J

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
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.