LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ReadBarcode (Invalid image type) Capture images with a prosilica camra

Hello everyone,
I'm a new user of Labview and making an application that reads barcodes via Prosilica camera, I made a VI, but it gives me the same error again and again.
I searched the site and found something about ROIToMask, but couldn't use it.
Can you please give me tips on how to do it.
 
I'm uploading the VI file.
 
I know that this might be an easy question, but I spend alot of time and at last I deceided to ask you guys.
 
Thank you
0 Kudos
Message 1 of 5
(3,215 Views)
Hello Mike_Delau:
 
I checked your VI but unfortunately, I see no problem with the block diagram.
I would like to ask you a question though.
What error do you see?  Could you please provide the error code and description shown on the dialog box.
0 Kudos
Message 2 of 5
(3,184 Views)

Thanks for your reply, I think that you are right, what I did was I changed the camera settings, so now it reads not as 16 bit, but as 8 bit.

But now I'm facing another problem with it, when the camera records it gives a message that says :

Not a linear barcode

unfortunately I'm not at the lab at this moment so I can't give you the number of the message, but it says as I mentioned. If I use the barcode example of the LabView it works ofcourse, but I justed changed the barcode example of Labview so that it shouldn't read from a file, but it should read via camera, but the Not a linear barcode comes!!!!!!

The VI file that I uploaded doesn't have any problems you are right but could you please give me some advice on how should I make this VI.

Thanks again

Mike

0 Kudos
Message 3 of 5
(3,179 Views)
Hello Mike:
 
I think there's something wrong with your ROI.  LabVIEW might not able to acquire the correct barcode image.
Could you please send me an image that you acquire through your camera?
0 Kudos
Message 4 of 5
(3,171 Views)
Hi Dehonair,
  Thanks for reply, I'm not at the lab right now that is why I can't send you the images, but I know where they are in Labview directory.
I used those images form C:\Programme\National Instruments\Labview7.1\examples\images\ I hope that I give you the right path, but if not it is just some where in examples of Labview.
I printed the images and then tried to read them via my camera.
 
Thanks again,
 
Mike 
0 Kudos
Message 5 of 5
(3,163 Views)