LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GetTypedefPath.vi

Hello,

 

I found this vi in hidden gens, it would be quite usefulin my application. When testing I always get an error... Any ideas why?

 

Bez tytułu.png

 

0 Kudos
Message 1 of 8
(4,067 Views)

right-click the type def.. choose open type def.. save the type def.

 

Try the code again?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 8
(4,065 Views)

Tried but no succes. I am using LV2014. Ctl was saved on disk before so what is the point in doing that again?

0 Kudos
Message 3 of 8
(4,063 Views)

To rule the possiblity that the type def had never been saved.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 8
(4,059 Views)

I don't think that is the case. I have checked that name is inside variant:2016-08-10 22_04_23-Untitled 9 Front Panel _.png

 

 

0 Kudos
Message 5 of 8
(4,048 Views)

Well, this seemed like a No-Brainer -- this just has to work, doesn't it?  Well, I can tell you that in LabVIEW 2014 (which the Poster was using), I could not get it to work.  However, I noticed in LabVIEW 2016, it is not listed in "Hidden Gems", so I thought, "Aha, it doesn't work, so they took it out!".  But most of the Variant utilities are missing -- turns out they've mostly been moved to the Variant Palette.

 

So while I have no idea why the same code fails in LabVIEW 2014, I can tell you that it works just fine in LabVIEW 2016.

Get TypeDef Path.png

When I ran this, it gave me no error, and the Path it returned indeed pointed to the path of this TypeDef.  Caveat -- I did have the Project open at the time.  Just a sec, let me close the Project and try again ...  Yep, it still works, even with the Project closed.

 

Bob Schor

0 Kudos
Message 6 of 8
(4,035 Views)

It is a real possibility that the 2014 version was buggy.  I mean it wasn't on the palette for a reason right?  I've used this function sucessfully in 2015, but don't have 2014 to test with.

0 Kudos
Message 7 of 8
(4,029 Views)

Thanks, will have to install new LV version sooner or later ... 🙂

0 Kudos
Message 8 of 8
(4,023 Views)