Jump to content
Stobber

Get object type from GUID?

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

Share this post


Link to post
Share on other sites

Good luck with that.

 

A lot of these things are simply not supported in LabVIEW.  I don't think you'll be able to get far on this.  But if you do, I'd also be very interested in that.

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.