05-19-2017 04:13 AM
Hello,
I connected my Basler Ace camera 340kc to my PCI-e 1473r, and ran an FPGA example on a 2 Tap-8 bit Bayer example. However, when I try to capture the image with my camera, the quality is bad and the colour is not correct.
The image I tested is the image on my computer (See attached "computer"), and expecting to get similar image. However, the image I got is not good (See attached "camera").
Just wonder if I missed to setup anything? Any thoughts?
Best,
Matthew
05-23-2017 06:47 AM
Hello,
Did you already have a look at the frequently asked questions about the use of your Basler Camera?
Regards and Greetings,
James.
05-30-2017 04:45 PM
Hi Matthew,
It's kind of hard to tell what is going on in the screenshots you posted. Did you modify one of the existing examples to use a 2 tap configuration? Can you post your code so that we can get a better idea of what you are doing?
05-31-2017 08:43 AM
Hello elcalverado,
I used the example "1-Tap 8-Bit Camera with Bayer" provided in the labview example. I changed the 1-Tap into 2-Tap in the FPGA vi. I have attached the project here! Please kindly check this!
06-01-2017 09:31 AM
Matthew,
I could open the project you attached, but you didn't include the altered VIs. Please upload those as well.
06-01-2017 09:45 AM
Hello,
Sorry my bad. Please see all the VIs.
06-01-2017 10:51 AM
Matthew,
What version of LabVIEW is this example from? Your original screenshots look like you are using LabVIEW 2016, but several of the subVIs are different than the ones in the example from my example finder (LabVIEW 2016).
06-01-2017 05:15 PM
Matthew,
It looks like there is some scrambling of the data coming in. It would help to use one of the camera's saved test images rather than an actual image so that we can better see what is going on. You can enable test images in the camera's properties using the Basler Pylon software. To access the camera properties, you will need to configure the FPGA code for the 1473R card as described in this KB:
How to Make a Basler Camera Link Device Work with an NI-1473R Framegrabber
http://digital.ni.com/public.nsf/allkb/4B3A1D9D33408B49862579820072775C
It doesn't matter which of the 1473R examples you use since the FPGA code is just going to be used so that you can access the camera properties. Once you have access to the properties, enable the test image. There should be some kind of color gradient test image. Once that is enabled, go back to your 2-tap code and acquire an image. Rather than display the actual image, you should see the test image.
06-03-2017 05:39 AM
I have tried the test images, 1-6, as kindly suggested by you.
However, the images I got has two problems:
(1) The whole view of view consists of many test images, but not one big test image that fill up the whole field of view.
(2) The test images are moving, just like aliasing, but not moving gradients of one image.
Please check p253 of the manual for a quick glance of the test image:
https://graftek.biz/system/files/2615/original/Basler_Ace_Camera_Link_Manual.pdf?1479319464
Any suggestions?
Best,
Matthew
06-07-2017 09:34 AM
Hi Matthew,
First of all, it seems odd that the test images are only returning that purple color. I could be reading the manual wrong, but it seems that test images 1-5 should be greyscale, and test image 6 is a full color spectrum gradient like this:
This could be a problem with your Bayer pattern decoding? Also, the way your test images keep shifting every so often seems like there is something off with how the pixels are being packed/unpacked. I haven't been able to try running your code since it seems you are using an older version of VAS. To troubleshoot this more in depth, it may be worth creating a service request with NI support so that you can work directly with an NI engineer on this problem. You can do that at ni.com/support.
-Jordan