キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/11
7,191件の閲覧回数
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 件の賞賛
メッセージ2/11
7,184件の閲覧回数
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 件の賞賛
メッセージ3/11
7,178件の閲覧回数
Hey Mike,
 
Nevermind that...problem was in the image type, I figured out the issue.
 
Thanks
0 件の賞賛
メッセージ4/11
7,170件の閲覧回数

Hey Steve,

 

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

 

Regards,

 

Mel

mdes017@ec.auckland.ac.nz

0 件の賞賛
メッセージ5/11
7,120件の閲覧回数
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
メッセージ6/11
7,084件の閲覧回数

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 件の賞賛
メッセージ7/11
7,078件の閲覧回数
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 件の賞賛
メッセージ8/11
7,066件の閲覧回数
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 件の賞賛
メッセージ9/11
6,954件の閲覧回数
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 件の賞賛
メッセージ10/11
6,916件の閲覧回数