LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write BMP File Error

Hey all,
 
Upon trying to use "IMAQ Write BMP File" vi I receive Error -1074395992 which occurred at IMAQ WriteBMPFile, File Access denied.  Possible reasons: IMAQ Vision (Hex 0xBff604A8 File Access Denied)
 
I have no idea why...I'm very new to Vision.
 
Thanks,
 
 
***Accidentally posted this in LabVIEW forum unintentionally...sorry for that***

Message Edited by Steve.Briggs on 07-31-2007 02:49 PM

0 Kudos
Message 1 of 11
(7,022 Views)
What OS are you working with?
Are you sure you have write permissions on the directory you are trying to write the file to?
Do you have the appropriate version of IMAQ for LV8.2?
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 11
(7,015 Views)
Hey Mike,
 
I'm working on Windows 2000
I do have write permissions on the directory, I'm simply writing to a folder on my desktop.
I'm working with NI-IMAQ 3.7.1....theres also a NI-IMAQdx 3.0.1 and a NI-IMAQ IO 2.0.2
0 Kudos
Message 3 of 11
(7,009 Views)
Hey Mike,
 
Nevermind that...problem was in the image type, I figured out the issue.
 
Thanks
0 Kudos
Message 4 of 11
(7,001 Views)

Hey Steve,

 

I am having the same problem... would you be able to enlighten me?

 

Regards,

 

Mel

mdes017@ec.auckland.ac.nz

0 Kudos
Message 5 of 11
(6,951 Views)
Hi Mel,

Are you still having this problem?  If so, can you post your code and image?  I wasn't able to reproduce that error code under various circumstances, but maybe if I saw your code I could help.
Regards,
Brandon M.
Applications Engineer
National Instruments
Message 6 of 11
(6,915 Views)

Hey Brandon,

I figured it out - file permissions!

The thing is however I am using the icon to write to bitmap as I said but the files that are written are not .bmp extension they are just not being recognized.

Do you have any ideas on that?

I haven't got my code on me at the moment but its pretty straight forward. Just the write to file icon and it is actually writing to file.

 

Regards,

 

Mel

0 Kudos
Message 7 of 11
(6,909 Views)
One thing to check would be to make sure that they are valid bitmap files.  I created a simple VI that would simply open a BMP image, and store it to another directory, and it seemed to copy the VI fine.  What is the image you are trying to save? 
 
Also, are you using the IMAQ VIs or are you using the "Write BMP File" VI under the Graphics and Sound >> Graphics Formats palette?
 

Message Edited by Coal Man on 08-17-2007 02:10 PM

Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 8 of 11
(6,897 Views)
Hey Brian,

I´m having the same problem..
I just capture an image (snap) and then I'm trying to save it on the CVS memory.
The code creates a file, an error occurs (1074395992) and the picture file is empty.
What Can I do?
Thanks
F Elias
0 Kudos
Message 9 of 11
(6,785 Views)
Hi F Elias,
 
I tried to run your VI on my CVS and it gave me the same error. I had to make a few modfications but it seems to work now (I am attaching the modified VI).
 
It seems that the "Open/Create/Replace file" Vi was causing the error. I removed it and wired a simple file dialog to the IMAQ write file instead.
Here are a couple of things to remember:
 
1. Make sure your path is a valid CVS path. You can see the CVS directory structure using the FTP server. For example C:\temp\img0 is a valid path.
 
2. The "Properties>>Browse options" menu for the file dialog gives you the different file selection options like "New or existing" or "new". Hopefully, you can use one of these to get the same functionality as the "Open/Create/Replace" VI.
 
Please let me know if the modified VI works for you.
 
Thank You,
Jaidev Amrite
Applications Engineer
National Instruments
0 Kudos
Message 10 of 11
(6,747 Views)