LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bug on "get type and creator.vi" OSX intel

There is a bug on LV 8.2 "get type and creator" vi
i tried it on a G5 : perfect
on an intel machine the file type is reversed : JPEG becomes GEPJ, AIFF becomes FFIA

a bit annoying ...
0 Kudos
Message 1 of 7
(3,251 Views)
Hello,
 
When I specify a jpg file, I see ???? as apparently expected based on the description of the VI:
 
"Reads the type and creator of the file specified by path. type and creator are four-character strings. If the specified file has a name ending with characters that LabVIEW recognizes, such as .vi for the LVIN file type and .llb for the LVAR file type, this function returns that type in type and LBVW in creator. If the specified file is not a known LabVIEW file type, this function returns ???? in type and creator. "
 
Can you post the VI you're using, so I can take a look at exactly what you have programmed?
 
Thank you,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 7
(3,223 Views)
you see ???? as there is no file type in your file !

you have to choose a file which doesn't have an extension
you can do "command - I" and remove the extension of your file.
if, for example for a jpeg file, you can see the icon writen JPEG, it will mean that you have a filetype JPEG and that the finder recognised it

Now you can test the VI

if you see a blank icon, it means that there is no filetype in this file.
this can happen as the extensions are now prefered instead of the old fashion os9 like filetype (which had the advantage of being more subtle
0 Kudos
Message 3 of 7
(3,219 Views)
Hello,
 
Please excuse me for not fully understanding the distinction you are drawing here.  I think you are saying that INDEPENDENTLY FILES HAVE:
 
a). a type
b). an extension
 
These are somehow correlated in Windows.  When I remove the .jpg extension from a file name indeed I see the "blank icon" and right clicking the icon to expose the properties shows that it has file type "File" where it used to be "JPEG image."   When I use the Get Type and Creator.vi I still see ????.
 
I would like to understand exactly the distinction you are drawing, and exactly how to see the problem you are reporting.  Please be so kind as to dictate a very specific list of instructions with which this can be reproduced.  If it requires using commands in the command line, please specify exact syntax so that isn't a hurdle in and of itself.
 
I appreciate your patience and very much look forward to your next post!
 
Best Regards,
 
JLS
 
PS - Another idea just hit me - is it possible that you have the folder options item "hide known file extensions" checked?  I think this is default in XP, and perhaps you are simply not seeing the extension of your jpg files since windows is hiding them.  If that's the case, but you DO see extension, your file names may actually be something like myFile.jpg.jpg, where the trailing .jpg are just being hidden from you.  It sounds like you're familiar with how windows distinguishes file types and extensions, but I thought I would at least throw that out there, since it is a bit subtle.

Message Edited by JLS on 10-25-2006 01:50 PM

Best,
JLS
Sixclear
0 Kudos
Message 4 of 7
(3,202 Views)
we are speaking of mac files

mac files have a file type AND an can have an extension

Apple now suggest (since OSX) to use extensions for improving copatibility with the rest of the world
but usually this extension is not necessary as there is still a file type (hidden for the common user) on every file
but this could change in the future.

so you have to be on OSX to test this function
0 Kudos
Message 5 of 7
(3,201 Views)
Ahaaaa... now that I'm reading the title more carefully, it's clear 🙂  Sorry for the confusion - I'll try this out and get back to you!  I'm not sure if this will be considered a bug, though, based on the description of the function in the LabVIEW Help.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 6 of 7
(3,184 Views)
Hello,
 
I have reported this issue - we'll have see if it's deemed a bug.  If so, I'll post any additional information I obtain.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 7 of 7
(3,180 Views)