Frame divided. Basler camera with FPGA

Hi there!
I am using a Basler acA2000 340kc camera controlled through a PCIe-1473R FPGA.
After some trouble, I finally modified it and changed the TAP configuration by using this post.
http://digital.ni.com/public.nsf/allkb/EA1727D8D620B81F8625797B0072257C
With just the modification in the FPGA, the camera works and takes succesful images, nevertheless the frame appears divided into four images (all identical but for light intensity).
When I modify also the host code, then just one image appears in the frame, but definitely not a good image, as previously.
Anyone knows why can be this problem happening?
Thanks for your help.

I think that I figured out what is going on. I believe that the knowledgebase article that you were reading is incorrect. Let's troubleshoot the problem together and I will correct the article if necessary.
Let's talk for a little bit about what is going on. The two taps are 10 bits each, but they are stored in 16 bit data type. The two pixels need to be transfered from the FGPA to the host with a DMA FIFO. For convenience, the code uses only one DMA FIFO even though there are two taps. The article suggests that you should combine the 2 16-bit numbers into 1 32 bit number and then send it into the DMA FIFO. There are a few problems with this: first, the DMA FIFO has been configured for 16 bits, so half of the data is being deleted. Also, the code on the host is splitting the 16 bit data into 8 bits, which is not correct.
I think that it would be better to change the DMA FIFO to support 32 bit data. You can do this by opening the LabVIEW project and right-clicking on the Host DMA 16, select Properties, and then change the data type to U32. After that, you need to program the code on the host to split the number. You would then get two arrays (one for each tap). I think that it will reconstruct the image correctly if you just interleave these two arrays.
I attached some images. Try it out and tell me if it works. If so, I will update the documentation.
Jeremy P.

Similar Messages

  • Interact Basler Camera with Labiview and convert image colours in temperature

    Hello,
    as the title suggests I need to combine a Basler camera with labview ( version 8.6 or higher) and convert the colours of the image in temperature signals. I have some thermocouples which measure temperatures of a black paper which change colour with the temperature, so I would like either to:
    1) define a calbiration curve so that for each colour corresponds a temperature
    2) dinamically calibrate, so that labview reads the temperature from the tempscan and at the same time knows the colour and derive a curve of calibration (of course we are speaking about a high number of measurements of temperature: 24).
    I guess the first method should be straightforwards, since I'm new to LV as well as to this camera I would like to know if you might give me any suggestion how to implement the curve of calibration and pick up the photo. The second method, I think is nice but quite difficult.
    Thank you very much
    Cheers,
    Antonio

    Hi Antonio,
    We have already spoken on the phone but I thought it would be a good idea to attach the very basic example code on here so that the community can see it.
    The code converts a colour into a decimal number. This number can then be used with a look-up table or calibration curve to get the respective temperature signal.
    Kind Regards
    Michael
    NIUK Application Engineer
    Attachments:
    Colour-to-Number.vi ‏12 KB

  • Control exposure time and gain with FPGA as frame grabber

    Hi,
    I'm using a Basler acA2000 340kc camera with a PCIe1473R FPGA as frame grabber.
    I managed to obtain images succesfully by modifying some of the sample codes. I can also control some of the camera settings thorugh the Pylon software.
    Nevertheless, I'd like to control the exposure time and gain in   LabView.
    Any idea on how to do this?
    Thanks

    Ultimate the serial port on the board is controlled by the code on the FPGA. There are shipping examples that provide the FPGA-side implementation of interfacing the serial port to a host-side interface, which then bridges it to a TCP port, which is bridged to a DLL called "clsernif.dll", which interfaces through the common "clallserial.dll" that Pylon can use to access the camera.
    Depending on your needs, you could interface at any of these layers.
    -If you need to do this with the ultimate in determinism, you could have the FPGA issue these serial commands directly as needed
    -If can do it from the host CPU, you could modify the host-side code and send/receive serial traffic to the FPGA code directly
    -You could examine the example code that bridges to a TCP port and simple write some host VIs that talk directly to it by opening a TCP session to the socket it uses.
    Eric

  • 1-Tap 10-Bit Camera with Frame Trigger

    How can I change "1-Tap 10-Bit Camera with Frame Trigger" to 12 bit output in Labview? 
    I tried to change from 10 to 12 bit but whenever the intensity reach 1024,it will decrease to 0.
    I'm using PCIe-1473 board with Basler Camera

    Please suggest me any document or tutorial for programming & configuration of other paramters of NI PCIe-1473R

  • How can i make trigger with basler camera GIGE 659x494 - 70 FPS and I/O terminal block

    Hi all,
    How can i make trigger with basler camera GIGE 659x494 - 70 FPS and I/O terminal block

    Frank,
    If you are wiring an isolated power output to the EVS you will need to apply a power supply to the terminal block.  This is mentioned in the "wiring isolated power output" section of the EVS getting started guide located here.  The guide references the EVS user manual which provides a pinout of the d-ub connector in table 2-11 of the manual located here.  For more information on the camera settings you need to set on the Basler camera please see the user manual of the camera you refrenced here.
    To provide power to the camera you can purchase a power cable for the camera.  Rather than a power cable, since you want to also do triggering, you will want a Trigger and I/O Cable instead which is part number 779985-01 as seen on this product page.  The I/O cable would allow you to wire the trigger lines to the terminal block as well as the power lines.
    David A
    National Instruments
    FlexRIO Product Support Engineer

  • HT3905 Do I still need to install the HD writer AE 4.0 software that came with my Panasonic HC-V500 video camera or can I just upload video directly to my MAC using i-frame and the i-photo program?

    I purchased the Panasonic HC-V500 video camera and it came with the HD AE 4.0 software. Do I still need to install this disc on my MAC or can I upload video directly to my computer by using i-frame and the i-movie program?

    Hi glhiker,
    Your video clips will import directly into iMovie.  It's a great video editing program.  I'll include some quick video tutorials to get you started below:
    Apple - Support - Videos
    When you open the iMovie application, click HELP > iMOVIE HELP on the menu bar to access the manual for the program.  One of the first topics is Importing Video.
    Down the road, you may be interested in our professional video editing application, called Final Cut Pro X.
    A quick overview of the application can be found here:
    Final Cut Pro X: Frequently Asked Questions
    Have fun!
    - Judy

  • Issues when using a Pixelink camera with LabView 9.0

    In my lab, we have a program for video acquisition using LabView and the low level camera functions for Pixelink cameras.  We run into some problems trying to run this program and other demo gui programs that came with the Pixelink SDK.  In our data acquisition program, we have problems with our image coming out all scrambled.  We use the low level functions to obtain a frame from the camera in the from of a vector.  We then reshape the vector into an array and then send the array to a vi that turns it into an image.  When we try to view this image using the standard Labview image viewer, the image comes out all scrambled if the zoom factor is not set to .5 on the image viewer.  The full resolution of the image is supposed to be a 1024x1280 image which when we use the Capture OEM software for the camera provided by Pixelink we can see.  The image that we can see through LabView when we have the correct zoom factor seems to be only the top left quarter of what the entire image is supposed to be.  We also encounter strange problems when we attempt to use the demo programs for labview 8.6 that are provided with the SDK.  When trying to run the simpleGUI.vi, for example, the program connects to the camera just fine.  After you hit play to view an image, the problems start.  The program will play the video for a few seconds until it just freezes up and quits responding.  Labview must be exited and restarted in order for the camera to connect again.  I am not sure if it makes a difference that we are running labview 9.0 on our computers or not.  Any help you have on these issues would be of great help.  Attached are pictures of the scrambled/unscrambled image and of the part of our block diagram for camera control.
    Attachments:
    Incorrectimage.jpg ‏126 KB
    Errorexplanation.jpg ‏543 KB
    correct image.jpg ‏22 KB

    IMAQdx is the driver that National Instruments provides to interface Firewire, GigE and USB cameras (Directshow compliant USB).  This is a licensed driver, so if you don't currently have it, then testing in MAX is not an option. 
    So if I understand correctly, you have the Pixelink software which works fine, but you have Pixelink VI's that are used in LabVIEW, but those do not work correctly?  That to me seems like a driver issue, which I'm not sure how much I can help with since it is not our driver. 
    Do you know what dll's the Pixel link VIs are calling into?  Are they Pixelink dlls?  If so, I would suggest speaking with the manufacturer or perhaps on of our other users has worked with Pixelink before.
    Sorry I can't be much more helpful.
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Using a Flip video camera with Final Cut Express

    I've just recently bought one of those flip video cameras (http://www.theflip.com) which is great, but I can't seem to get the footage imported into Final Cut Express without it then needing to be rendered when I place it on the timeline.
    Does anyone have experience using this camera with FCE, and if so, which settings did you use please? I've tried tweaking most of them with little success.
    Thanks!

    Hi Simon,
    in addition to Martin's instructions I suggest you to make sure, in MPEG Streamclip:
    - you actually select Export to QuickTime (not Export to DV)
    - you set the right frame rate (frequency), that is 29,97 for NTSC.
    Personally I usually set Interlaced Scaling checked, and Deinterlace Video unchecked, but I'm not sure these are the right settings in your case.
    With the above settings you should be able to import the resulting video into FCE without requiring any initial rendering, if the FCE Easy Setup is DV-NTSC.
    Warning: I use MPEG Streamclip 1.8 (the latest as fa as I know) where the Frequency parameter is in the Export main window.
    Piero
    Message was edited by: PieroF

  • Ethernet sniffer with FPGA

    Does anyone have code to receive Ethernet trames with FPGA decoder?  (like the code on DevZone which includes code for reading and writing RS-232 data.) I would like to build a fast Ethernet sniffer and data decoder Any FPGA code or idea would be appreciated.
    Thank  
    Luc Desruelle | Voir mon profil | LabVIEW Code & blog
    Co-auteur livre LabVIEW : Programmation et applications
    CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
    CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

    L.D.MESU73 wrote:
    Does anyone have code to receive Ethernet trames with FPGA decoder?  (like the code on DevZone which includes code for reading and writing RS-232 data.) I would like to build a fast Ethernet sniffer and data decoder Any FPGA code or idea would be appreciated.
    Thank  
    Excellent learning project! * 
    Please clarify.
    Sniff the traffic of the ethernet port or use I/O lines to monitor packets?
    Ethernet port will only be possible if you can access the driver level of the ethernet port and use Promicuous mode to capture the recieved frames. You will really need NI cooperation if you want this.
    Port I/O will actually be easier I would think... if FPGA was fast enough... maybe for 10-based-T ... what is the top end sample time on FPGA ... today?
    Ben
    * Back in about 1988, Robert J Schmalstieg (formally with DEC, acquired by Compaq and now with HP Network Support) wrote in VAX-Macro an application that ran on a VAX and would do what an LAN-Analyzer would do. He really wanted this functionality since there were only about (3) LAN-Analyzers available for the East Coast (Networks were so new that analyzers were very pricey!) So he found a hook into the driver for the network adapter that would put the adapter in promiscuous mode. Promiscuous mode would bypass the address and protocol checks normally performed by the hardware to toss or re-direct recieved frames.
    We teamed up and started meeting on Thursday nights (we had to meet in person since there was no net avaiable for hob-knobbing) and worked as team to develop a multi-threaded application along with a Kernal mode routine that would service the interupt, apply simple filter before queing the packet to the disk routine. The file writting routine monitored the packet queue (we had to write our own que of course) and wrote it to disk. "Many a case of beer and lage pizza were deveoted to the good of programming those nights I'll tel you".
    After about 4-5 months of developing in our spare time gave us the oppertunity to test the acquisition and filtering functions on a real network. We started by filtering on LAT (Local Area Transport, used to serve remote serial ports to a mainframe) and started seeing the text being typed by one of our managers. Our jaws dropped and we looked at each other when I beleive it was him (Robert Schmalstieg) that said "we could get real sneaky with this!". At that time we decided the program should be called "Sniffer.exe" and the data file would be named Olfactory.dat". THe post processing utility that would format "Olfactory.dat into "Olfactory.txt" was latter named Snicode.exe (Sniffer Decode).
    In the course of developing Sniffer I learned a lot of things, some of which I use every day (inter-thread comm using queues ) and others that are useful only for answer "out-there" questions like this one. If you use the approach of hooking into the existing ethernet post, you will learn alot about what it takes to cooperate with NI and how to use their hooks and back-doors. None of this knowledge will transport very well to other environments.
    Taking the I/O approach you are going to learn ethernet and the protocols that ride on it to a greater extent. What you will learn will apply as long as you are dealing with an ethernet device. The protocols that ride on ethernet are also implemented over other networks topologies as well.
    Another plus for the I/O approach. There is no limit of what you can do with it! The "Promiscuous Mode" approach will not let you capture corrupted packets. Packet framing is handled by the hardware and an ill formed packet is concidered a collision or coruption and is tossed (when last I looked).
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Crosspost: Has anyone used a Redlake camera with LabView/Imaq?

    "I can't seem to find any drivers or utilities for the Redlake camera i'm using in my project.
    Only this: http://www.imagemill-tech.com/Redlake/ Fr_Redlake.htm
    But there's no info on how to get that VI (I've e-mailed them, of course).
    Any additional information on using the camera with LabView/Imaq would be much appereciated"

    "Kasper B. Dall" wrote in message news:<[email protected]>...
    > "I can't seem to find any drivers or utilities for the Redlake camera
    > i'm using in my project.
    >
    > Only this: http://www.imagemill-tech.com/Redlake/ Fr_Redlake.htm
    >
    >
    > But there's no info on how to get that VI (I've e-mailed them, of
    > course).
    >
    >
    > Any additional information on using the camera with LabView/Imaq would
    > be much appereciated"
    I just find the section out for you about remote control of your
    camera:
    1.7.1 Remote Control.
    Redlake Imaging also supplies the Serial1 program that enables a
    computer to control the
    MotionScope system from a remote location through the serial port.
    Refer to Manual Addendum
    9400-0014 for detai
    ls of the Serial1 program and how to control the
    MotionScope system from a
    remote computer using a standard communications program.
    So you need to find the serial command (for RS232) in manual addendum
    9400-0014. I couldn't find it in website maybe I did not search
    throughly, but you may have it if you own the camera. And these
    commands are just for controlling the camera system, not grabbing the
    image, so you may need a frame grabber to get the image into your
    computer and do the further processing.
    Irene
    [email protected]
    > http://www.geocities.com/irene_he/IVision.html

  • Basler camera connection problems

    Hi there,
    I'm just wondering if anyone might be able to help. I've been talking to tech support in UK as well about this problem but they are struggling a bit with a solution, so I said I'd try here in case anyone has had a similar experience. Basically I recently bought a Basler IP BIP2 camera and I am trying to connect it to the Link 2 of my 9024 cRIO. 
    I have set the (static) IP address of my camera to 169.254.82.108 and the cRIO link 2 as 169.254.82.103 (this is on a different subnet to the Link 1 IP). When I turn on the system first or reset the IP addresses, I can see the camera in MAX for a few seconds before it disappears. Then if I restart the cRIO a VISA error comes up (see attached). Last week I could not even update the IMAQ software on my cRIO because of conflicts so I did a total uninstall and reinstall of NI softwrae on my system, installing all the updated software from the Spring 2014 release. I was then able to install all the new software on my cRIO ok. NI has suggested I do repairs to software, disable firewall, Uninstall and reinstall the VISA software but nothing has worked or changed it at all unfortunately. I have also tried different settings with my Basler camera, using Static IP addresses and manually setting host and server names and following any of the instructions I could find online for setting the camera up with cRIO.
    I have tried everything again and again and I am just wondering if anyone has been in the same place before and tried something else?
    Any help would be greatly appreciated.
    Kindest Regards,
    Kelly
    Attachments:
    VISAERROR.JPG ‏115 KB

    Hi,
    First, you need to make sure the USB camera is DirectShow compatible.  If it isn't it will not work with our vision software. You need to use the IMAQdx drivers (which requires a license) to acquire from a USB web cam.  Once you have the IMAQdx drivers (Vision Acquisition Software) installed and the drivers that come with the camera installed you should be able to see it in Measurement & Automation Explorer (MAX).  Once you can see it in MAX you can use it just like any other camera in LabVIEW.
    Regards,
    Greg H.
    Applications Engineer
    National Instruments

  • Axis 205 IP Camera with NI-IMAQdx

    I try to grab pictures from my Axis 205 IP Camera.
    On http://digital.ni.com/public.nsf/allkb/D69E915887A2391086256B9700564D7C its stated that Axis IP Cameras are supported.
    NI-IMAQdx 3.5 (part of Vision Acquisition Software November 2009) added the following new features/fixes:
    Support for Basler and Axis IP cameras
    My Axis 205 IP Camera is on version 4.05
    Im using LabView 2011 with RealTime 11 and NI-IMAQdx 3.8.1
    The target of my Work is to get the Axis 205 to Work with the Robotics Starter Kit 2.0
    but now im only trying to get pictures from the camera to my computer.
    I can access the video stream and the camera configuration with the Webbrowser and with the Axis camera Tool. But I cant find the Camera with MAX nor can I add it to a project.
    What can I do?

    Hmm MAX does not show any NI-IMAQdx Devices. And I can't even add one. But I definitely have NI-IMAQdx installed.
    Do you have an idea what the problem could be?
    Thanks for the tutorial but I think the Axis 205 is not a GigE camera. It's just a common ip camera. I can access it with my browser.
    Attachments:
    noniimaqdx.JPG ‏17 KB
    noniimaqdx2.JPG ‏52 KB
    noniimaqdx3.JPG ‏8 KB

  • Using two scan progressiv​e cameras with 1409?

    I need to use two scan progressive cameras with the 1409. The two cameras are two sony XC-55 (30Hz). I have configured one as a Master and the other as Slave. I have connected the HD and VD of each camera between them.
    I acquire a sequence of frames (normally I take five)of each camera every time that a triggeg ocurrs. Time to time I get some frames in the slave camera that the first line of the frame is not at the top. Not always in the same position. Sometimes I don't received the last or the two last frames.
    In the past I used the same configuration with the 1408 and 1408 always tooks correctly all the frames from the two cameras.
    Please, help me?
    Thanks, in advance

    I think the board isn't reading correctly the frames. I have some systems installed with the 1408 and they work correctly. I will send you some frames which show the problem and the vi that I use to capture them. The .icd file that I use with the 1409 is 30 Hz progressive and the .icd file that I use with the 1408 is scan area.
    It is possible that I can solve the problem changing the parameters of the icd file? Do you have information about them?
    Attachments:
    frames.zip ‏167 KB
    vi.zip ‏25 KB

  • Why does only the USB cable that came with my phon...

    I recently acquired a Nokia Lumia Icon from Verizon.  I have a Lenovo Yoga Pro 2 computer running Windows 8.1 with the Windows Phone App for Desktop (WPA4D) installed.  I had a very difficult time getting my Icon to be seen by my computer when connecting it with one of the half dozen micro USB cables I have laying around.  WPA4D would not recognize it.  Then, I connected it using the USB cable that came with the phone, and WPA4D immediately recognized it.  Then I unplugged it and went back to a different cable - it was again not recognized.
    What is different about the USB cable that ships with the Nokia Lumia Icon?  If I want to order more, like from Monoprice, what do I order to get the same thing?  Why is Nokia (apparently) using some sort of proprietary cable??
    Thanks,
    Eric

    It is not proprietary.The charging/data cable for my GPS works.
    A lot of the cables are just for charging and that is all they are wired for and they don't even have the data pin. Full size USB cables are the same way.
    If I needed an extra I would get it from Nokia.

  • How to install Windows 8.1 Enterprise on Ultrabook which came with basic Windows 8.1

    Hi,
    I guess I'm not the first one with this question but anyway...
    I've got 2000EUR expensive Ultrabook recently, and what's interesting it came with Windows 8.1. Just standard basic Windows 8.1, not Pro or Enterprise.
    Obviously I needed to upgrade it with larger SSD 1Tb and install Windows 8.1 Enterprise as I need Hyper-V and other Enterprise version functionality on day to day bases.
    I was surprised that I can't do so as SLIC is reverting Windows 8.1 back to basics!!!
    .. so my question is - How can I can Windows 8.1 Enterprise 64Bit on to very expensive Ultrabook which came with Windows 8.1?!?!
    Kind Regards,
    Kon

    Hi,
    Enterprise edition of Windows Client OS, is not available via OEM and not via Retail - it's only available via Volume Licensing agreement.
    you can purchase an upgrade to Pro, via the Microsoft Store:
    http://windows.microsoft.com/en-au/windows-8/feature-packs
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

Maybe you are looking for

  • Help me how to set charset UTF-8 in SQL Server 2000

    Hello guys, Pls anyone help me out from "how to set the charset UTF-8" in SQL Server 2000. How do i find the default charset in that?

  • Using XSLT 2.0 in JDK 1.5.0

    How do I set the Java Runtime to use XSLT 2.0? The XSLT functions format-date and format-time are not being accepted. My transformation works fine without these 2 functions. Thanks.

  • HT4482 how to back up my phone

    how to back up a second phone?  I cant back up my phone since I had already backed up my first one.

  • 10.4.8 followed by wireless might mouse = no keyboard?

    For everyones info, I installed 10.4.8 minutes before I installed my new wireless Mighty Mouse (sw v1.3) and then by the next reboot the (PC) keyboard that I have running though a usb hub stopped working. As with many problems I've read about before,

  • Printing on small sheets

    using p;hotosmart 8200 I want to print on paper that is 8.5 x 3.5 feeding the 3.5 edge first