07-20-2010 04:14 PM
Hi... We have a code that was developed in LabVIEW 8.6... We have a need to attempt to save this code all the way back to version 7.1... I saved it back from 8.6 --> 8.5 --> 8.2.1 --> 8.0 with no issues... But when I then try to save it back from 8.0 to 7.1 I encounter one LabVIEW 8 vi that has no equivalent functionality in 7.1... And that one vi is
C:\Program Files\National Instruments\LabVIEW 8.x\vi.lib\Utility\lvfile.llb\Get File Type.vi
When I look at that vi in 8.x, to endeavor to see if I can replace its functionality by writing some code in 7.1, I find that the Get File Type.vi is password protected... More out of curiousity than anything, why is that code password protected??? I wasn't aware that any of the standard purchased LabVIEW code came password protected... Can anyone tell me why that is??? thanks... bob..
Solved! Go to Solution.
07-20-2010 04:32 PM
07-20-2010 04:40 PM
got it... much appreciated... But a big bummer for trying to figure out the functionality if you can't see it... Oh well.. thanks for the answer...
07-20-2010 05:34 PM
That VI is using an internal callback into LabVIEW (i.e. non G-based code) to determine the type of the file. I'm guessing the callback doesn't exist in 7.1, so you would need to write your own G-based implementation for getting the type of a file in the 7.1 case. The simplest solution would be to work with the extensions of the files...not perfect, but probably close enough assuming your files are well-named. Also, the following VI can give you a bit more information about LabVIEW-specific files (independent of extension):
LabVIEW 7.1\vi.lib\Utility\libraryn.llb\Librarian Get Info.vi
04-12-2024 07:41 AM - edited 04-12-2024 07:41 AM
Out of interest, I used this function recently to test the type of a bunch of files to find PPLs and it failed to recognise them when the file suffix was not exactly lvlibp. So the routine inside isn't actually checking the file content, it's possibly just checking the file suffix? If so, it's not particularly clever.
04-12-2024 08:04 AM - edited 04-12-2024 08:04 AM