08-10-2016 02:43 PM
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?
08-10-2016 02:47 PM
right-click the type def.. choose open type def.. save the type def.
Try the code again?
Ben
08-10-2016 02:52 PM
Tried but no succes. I am using LV2014. Ctl was saved on disk before so what is the point in doing that again?
08-10-2016 02:54 PM
To rule the possiblity that the type def had never been saved.
Ben
08-10-2016 03:12 PM
I don't think that is the case. I have checked that name is inside variant:
08-10-2016 03:51 PM - edited 08-10-2016 03:54 PM
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.
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
08-10-2016 04:02 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-10-2016 04:17 PM
Thanks, will have to install new LV version sooner or later ... 🙂