LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

READ JPEG FILE.VI

Hi,

 

I am using Read JPEG File.vi to read the image file. The VI behaves differently when I login into my system (windows XP) as user and differently when I login as Administrator. When I login as user and provide the path of the jpeg file (70kb) it trough’s an error code 1.where as same thing works fine when I login as Administrator. For small Jpeg files (3-20kb) it works fine in both the login as. I am attaching the VI and the some jpeg files for your reference. Any suggestions would be greatly appreciated!

 

 

Regards,

Sathyendra N

 

0 Kudos
Message 1 of 4
(3,473 Views)
Hello Sathyendra,

I ran your VI and could read your images without any error... the images seem not to be locked for any kind of account (user, admin, etc...) so I don't know what's wrong.
Have you tried to use the "file info" function instead of "read jpg" ?

Try to run this VI and see what happens, maybe resetting access right would help...



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(3,464 Views)

hi there

i can reproduce this error code when i deny read access to the file (no matter which of them). so i bet this is a file security issue. check the access rights of the non-admin user to the file and the directory.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 3 of 4
(3,458 Views)
Hi TiTou,
Thanks for your response.I tried using the file.vi it is working fine with all the jpeg files and all have the same kind of permission.
Regards,
sathyendra N 
0 Kudos
Message 4 of 4
(3,449 Views)