LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read JPEG File.vi creates temporary files?

Forum,

 

I am using LV 8.5 and I have discovered that the "Read JPEG File.vi" creates temporary files when reading a JPEG file.  With a built EXE, the files are created in the root of the C: drive.  While running the same code in the LabVIEW IDE the files are created on my H: drive which is for my personal network storage.  The filename is formatted as "tXXX.X" where X is a random set of ASCII characters.  For example, the file is currently named "t53s.b" and the next time I call "Read JPEG File.vi" it will be "t53s.c".

 

I discovered this fact using Process Monitor v 1.37 from www.sysinternals.com  and filtering for the creation of these files.

 

The problem is not the creation of the files, rather in the location they are created.  A customer running our app does not allow files to be created off of the root of C: when the user is not an Admin.  If I could find a way to tell "Read JPEG File.vi" to create these temporary files somewhere else, that would be sufficient to resolve the issue.

 

Thanks,

Chris Roth

Message 1 of 4
(2,984 Views)
Fascinating. I never noticed that before. On my system the files are created directly in C:\ while running from the development environment. Doesn't seem to follow any of the paths that can be set in the LabVIEW options. Wonder if the path is determined in the function or whether it uses some other (unknown) key in the LabVIEW.ini file.
0 Kudos
Message 2 of 4
(2,979 Views)

Hi Chris,

 

Certainly is an interesting one.   I'll look into this and see what we can come up with.  This same question has also come up in our email support, so we've definately got something we need to check out!  I'll let you know what we find.

 

Regards, 

Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 4
(2,937 Views)

Sorry for neglecting this thread a bit.  Chris has been working directly with another Applications Engineer on this issue, but I suppose I should try to keep this thread updated as well!

 

So here's a quick update:  It seems these temp files are only created when a boolean True is wired in to the "use 8 bit color table" input of the Read JPEG File VI.  Also, the temp files do not appear to be created in LabVIEW 8.6.  

Brian A.
National Instruments
Applications Engineer
Message 4 of 4
(2,846 Views)