Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with IMAQ write file.vi

Solved!
Go to solution

Hi, I am new in the community and I have some issues with a Labview program I got from a colleague. The program is written with in Labview 8.6 and controls a camera (Guppy 160 b/w) and a translation stage. The camera is supposed to take 2 grayscale pictures when the stage is in a certain position. The bmp images are safed using the IMAQ writeFile.vi. For my colleagues setup it worked but I receive the following error message:

 

 "Error -1074396080 occurred at IMAQ Write File.

Possible Reason(s):

IMAQ Vision: (Hex 0xBFF60450) Invalid Image Type."

 

and the files that are written are empty.

 

Furthermore there is no information in the extended Labview help concerning the IMAQ writeFile.vi. I only found IMAQ writeFile 2.vi, but using it I get the same error message as before. I don't know what to do. Can anybody help me? Thank you in advance!

 

Lizzy

 

PS: You find a snapshot of the program (with the IMAQ writeFile 2.vi) in the attachement.

0 Kudos
Message 1 of 8
(4,787 Views)
Solution
Accepted by topic author Lizzy
0 Kudos
Message 2 of 8
(4,785 Views)
I seriously cannot understand the code. Why are you using so many local variables. Though i am one who is not against it but the flow is definetly missing here. What is pos 1, pos 2,pos 3. If the above link is not the case i will suggest you attach the vi instead for us to get  a better idea.
0 Kudos
Message 3 of 8
(4,784 Views)

It wasn't me who made the code.:-) But thank you for the link! I figured out the problem. Although me and my colleague were using the same camera minemakes 16bit images and his just 8bit (probably due to a different driver). That's why the VI couldn't safe bmp-files in my application.

 

Thanks again!

Lizzy

0 Kudos
Message 4 of 8
(4,775 Views)
Lizzy in that case you can mark my post as the solution.................... Right?:smileyindifferent:
0 Kudos
Message 5 of 8
(4,772 Views)
That was my intention! I am not experienced in this... Sorry! Can I change it to your post?
0 Kudos
Message 6 of 8
(4,761 Views)
sol.JPG
0 Kudos
Message 7 of 8
(4,736 Views)
And thanks......:smileywink:
0 Kudos
Message 8 of 8
(4,717 Views)