Point grey chameleon camera

Hi,
I'm trying to talk to a point grey chameleon USB camera with Labview using ActiveX.
I was able to register the DLL and display the live image and change the settings (shutter, gain, etc.). When I tried to get the image data using the "GetImageData" method, Labview crashed with the error message "Exception: Access violation" (See the attached figure). I also tried to using the "SaveImage" method. It sometimes crashed, too. But it can only save 8-bit pgm files and we need to have 16-bit (12-bit actual resolution).
I'm using Labview 2011 SP1 (32-bit) on windows 7 (64-bit). The camera model is CMLN-13S2M with the Flycapture 2.3.1.8.
Does anyone get the camera to work properly to be able to get the image data in 16-bit?
Thanks,
Joseph
Attachments:
point grey error.png ‏29 KB

Hi,
I have two suggestions for you. First I would like to recommend you follow these steps to verify that there is no problem with your dll and project configuration:
Make sure you are using the same calling conventions as the DLL.   When using C calling conventions, the caller is responsible for cleaning up the stack.  When using Standard calling conventions, the called function is responsible for cleaning up the stack.  If the caller (LabVIEW) and the called function (your DLL) don't have the same calling conventions, then they will either both take things off the stack or neither of them will.  Either situation will certainly cause LabVIEW to crash when your DLL function returns.
Make sure that all inputs on both sides of your Call Library Function Node are wired. If the left side is not wired then the DLL will write over unallocated memory.  If the right side is not wired up,  LabVIEW will assume that your DLL does not need or use that allocated memory and will use it for something else.  Your DLL will then overwrite reserved LabVIEW memory space, causing LabVIEW to crash.
Make sure your DLL is not overwriting LabVIEW memory.Frequently DLL functions will take allocated memory as input, write to this memory, and return it.  If not enough memory is allocated or the DLL writes more than has been allocated, the DLL will overwrite reserved LabVIEW memory space and cause LabVIEW to crash.  For example, consider the following function: double *Waveform (double *waveform, uInt32 size); The proper way to allocate the memory in this case is to initialize the array with the appropriate size prior to calling the DLL.  The image below demonstrates the proper method.   
Make sure that LabVIEW is passing parameters to your DLL in the format that your DLL is expecting. If LabVIEW and your DLL do not agree on how a parameter is being passed (by value, reference, handle, etc.), then it is possible for your DLL to unintentionally point to some random place in memory.  This can cause faulty data at best and LabVIEW or Windows crashing at worst.
If you built the DLL in LabVIEW and you are showing the front panel of the DLL, then there are two strict requirements to make it work.
The Call Library Function must be set so that the DLL call is Reentrant. This is set by changing the execution category (under the Browse button) from Run in UI Thread to Reentrant.
The calling VI (the VI from the LabVIEW development environment that is calling the LabVIEW built DLL) must not be running in the User Interface execution system. This can be checked by selecting File»VI Properties»Execution and making sure that the execution system is standard, instrument i/o, data acquisition, other 1, or other 2 (same as caller may run in the user interface system if the parent VI calling this VI is running in the user interface system).
My second advice is to use the National Instruments Vision and Acquisition software to interface LabVIEW with you camera.
Warm Regards,
Miguel Fonseca
National Instruments - Applications Engineering

Similar Messages

  • Point Grey Chameleon Exposure Parameter

    I am completely new to labview and want to control the basic parameter Exposure of my point grey Chameleon camera, but I have had no luck. I looked at this thread and the VI they presented, but I dont see any property for exposure control.
    https://forums.ni.com/t5/LabVIEW/capturing-chameleon-raw-data/td-p/2270666
    Then I read in another thread that we use the FlyCapture software to set the exposure through there and set the camera default, but this seems so roundabout for a simple parameter.
    http://ni.i.lithium.com/t5/Machine-Vision/PointGrey-Chameleon-USB-camera-not-working-in-Vision-Assis...
    Has anyone had any luck of interfacing with Chameleon so I can access the exposure? 
    Thank you!
    Attachments:
    Low-Level Grab Raw Data To Image & file.vi ‏61 KB

    Hi Richelle,
    The errors that you mentioned usually occur after the host PC's USB controller reports a USB transaction error. According to Intel's specification, a transaction error is any error that caused the host controller to think that the transfer did not complete successfully. 
    Since you've already tried the device on another computer, we know that it's not a problem with the USB controller in the computer. Do you have another USB cable you could try to see if that's what's causing the disconnection issues?
    David S.

  • Best settings for Point Grey Flea camera

    Hi
    Can anyone using Point Grey Camera(Flea) find out the best settings(Hue, White Balance U, White balance V, Saturation....) for best image quality.
    Regards
    Abhishek Verma

    chucknoris501
    What version of Premiere Elements are you using on Mac?
    Export your Timeline content to a .mp4 file, using export settings which have been customized under the Advanced Button/Video Tab of the export's preset.
    See Publish+Share/Computer/AVCHD and .mp4 category. The exported file is then uploaded to YouTube at the YouTube web site.
    If you post the properties of your source video and project settings, I will suggest the settings for the Timeline content export to file saved to the computer
    hard drive for upload to YouTube at the YouTube web site.
    ATR

  • How to get Point Grey Dragonfly firewire cameras to work with LabVIEW 2010

    We recently got a new computer.  The O.S. is Windows 7, 64-bit.  It has LabVIEW 2010 (also 64-bit) and the Vision Development Module, as well as the Vision Acquisition Driver.  We also have Point Grey Dragonfly Express cameras.  The first trial of using LabVIEW to get images from one of the cameras yielded greyscale images (they are color cameras).  We then installed the Point Grey drivers (flycapture2.1.3.4_x64).  After installing the drivers, the camera was is no longer recognized in MAX.  Does anyone have pointers or advice?  Thanks.

    It's been a bit since I've messed with camera settings. But I think LabVIEW requires the NI-IMAQdx driver and the greyscale was from not setting the bayer filter. I can't poke around my camera settings right now, so I can't double check.

  • How to interface with Chameleon camera

    Hi everyone,
    I am trying to use Labview to control Chameleon camera, which is from Point Grey Research. I am using the ActiveX control interface and I have encounter a problem of using "Call Library Function" node. I am using that node to get the image array from a pointer and trying to display. However, the "Call Library Function" node doen't work.
    I am wondering how can I get the  image array from a pointer that is used by the FlyCapture?
    Was there anyone experience the same thing?
    Thanks.
    Carson

    CarsonZ,
    Please check to see if your camera is supported by the Industrial Camera Advisor. Also, when you say that the Call Library Function node does not work, does it return a specific error message or just not return any data?
    Lastly, is the FlyCapture application an ActiveX enabled application? If so you should be able to register for events and also pull the information from the application by running through this help document.
    Logan H
    National Instruments
    Applications Engineer

  • Point Grey Gazelle Cameralink with NI-1429 Integration Question

    Has anyone used a Gazelle GZL-CL-41C6M camera with an NI-1429 grabber?  I find that some camera serial commands work and some don't.  I need to change the integration time using the eraw command and it just does not work.  I also tried to update the firmware, but the updater utility can't find the cameralink serial port.  I can grab images in free-running mode, but I really need to increase the integration time programmatically.  I hate to change to a Matrox frame-grabber since our image processing software is geared towards NI hardware.  Help!

    Testing in IMAQ:  I am able to see the camera in Automation Explorer, attach the camera file, create an iid file and acquire images.  In IMAQ I can free run the camera or go into bulb trigger mode.  If I enable "Additional Commands", then everything stops working.  So free-running works and bulb-mode works, but I can't change the integration time in free running mode or gain.
    Using our own software:  My main problem is that when I use our own software to acquire images and talk to the camera lots of commands work, but many do not.  There are many status commands that are not in the camera file that work (temperature, voltage, firmware version etc.).  Commands that change the integration time or clock frequency read back that they are changed, but the images stay the same.  I don't understand why a command has to be in the camera file when we are just sending serial strings to the camera over the cameralink port.
    Point Grey says they do not supply any software with this camera and want me to contact NI.  They have never used an NI grabber with this camera, but we always use NI hardware and there are camera files and a compatibility report for the camera (GZL-CL-41C6M) so I think all the commands in the manual ought to work.  Also I cannot update the firmware because the Point Grey updater program cannot find the cameralink serial port.
    I tried using the Camera File Generator to add extra commands, but they don't work.  Either the acquisition fails with "FIFO overflow caused acquisition to halt" or I get a message like: "serial termination string not found" etc.
    Sorry this is so convoluted and any advice is appreciated.

  • I have an Air running Mountain Lion. I also have a digital point-and-shoot camera, but have never downloaded any images from the camera to this Air. If I connect the camera to the Air, what might I expect? Will connecting the camera to the Air by a cable

    I have an 11" Air with lots of remaining capacity running Mountain Lion. I also have a digital point-and-shoot camera. I have never downloaded images from the camera to this Air. However, if I just connect the camera to the Air's USB port, with the camera's available cable, and the Air is open, will a program like ImageCapture or iPhoto, auomatically come up, and I can begin to download wanted images? Or, will this sort of connection delete or fry everything on the Air? Do I need any other software on board? Will current Apple onboard programs allow me to download images from my camera and not destroy everything else?

    Answered. Thanks.

  • Is there a way to transfer photos from a point and shoot camera to a flash drive via the iPad?

    Is there a way to transfer photos from a point and shoot camera to a flash drive via the iPad?

    No.

  • Having trouble deciding on a point and shoot camera.

    I have been searching for a point and shoot camera and I have narrowed it down to two cameras.  The cameras that I'm looking at are the Cannon Powershot SX510 HS 12.1mp with a 30x optical zoom and the other one is the Fujifilm FinePix S8200 16.2mp with a 40x optical zoom. They are both on sale for the same price.  Which one should I get?? 

    I  have found with the power zooms that once you get above 14x optical you really start to lose quality.  In large part because the more you zoom the more of an issue camera shake comes into play.
    Keep in mind these are little bitty lenses trying to do the job of a higher quality piece of glass in a SLR lens.
    The actual distance between the front and back of the P&S lens is shorter than on SLR Lens (typically)
    Think of it this way.  Take a 12" ruler.  Put it on wegde at the 1/2" mark.  every little movement of the short end of the stick makes a more dramatic movement on the other end.
    With a 30x optical zoom or more you really are going to accentuat that a lot more.  So a 1mm movment at the base of the camera will result in a larger movement at the other end.  At that level you will need to have a tripod to get as clear of an image as possible.
    Go into a store that has the high optical zoom cameras.  Find something that is very far away and zoom in on it as far as you can.  Try to hold that camera still enought that the image does not move. 
    Also, the more you zoom the higer your f/Stop is going to be.  Which means less light, which means a longer shutter release which equates to a more shaky photo.
    If you really want power zoom I would strongly suggest investing in a Canon, Nikon, or Sony DSLR

  • Point and Shoot Camera with Remote Capabiliti​es

    I am looking to get a point and shoot camera, prefer to stay within Canon, but I need to be able to use a remote with it. Is this possible? I have a Canon 60D which I have a remote for, but looking to add a point and shoot to my collection. Thank you.

    Hey kmsundby,
    I'm not aware of any Point-and-Shoot camera that can utilize a wireless remote, but Canon's flagship Point-and-Shoot cameras the G1X and G15 do accept the wireless remote model RS60-E3.
    Hope this helps!
    Allan|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • HT1338 6 point grey on grey type in Software update

    Do any other non-teengers have any trouble seeing the 6 point grey on grey type in Software update?? Come on Apple, make it readable please

    Always clone your startup drive before doing any updates or upgrades. I clone my startup drive to a second internal drive using carbon copy cloner so I'm able to get back to work immediately if any problems occur.

  • Best point and shoot camera for concerts

    Hi, I am in need of a point and shoot camera that takes awesome photos and videos at concerts.  Here are the things I am looking for:
    1.  Takes good video and photos in low light settings.
    2.  Compact.
    3.  Good video mode with continuous shooting (at least 10 minutes in duration.)
    4.  Good optical zoom.
    5.  Looking for one around $250-375.
    6.  Can take good action photos. 
    Any information would be greatly appreicated as I am looking to buy within a month! 
    Thanks!!

    linsle wrote:
    Thanks for all of your advise, I really appreciate it!  I know I'm not going to get everything I want in a camera unless I buy a SLR camera, but that wouldn't meet my needs since you can't get into concerts with those types since they consider them "professional."  I was actually leaning toward the ZS7 because I have head a lot of good reviews on it from people at concerts and have watched amazing videos shot with that camera at concerts.  The zoom is incredibly as well as the sound.  Also to clarify my first post about low light, concerts aren't usually that low lighted so I wouldn't need a camera that excelled in low lighting.  Do you own a ZS7?  If so, what do you like about it and what don't you like about it?
    Concerts are actually usually quite dark, especially by photography standards.  Perhaps this will help to clarify things a bit:
    Direct Sunlight: 32,000–130,000 lux
    Full Daylight (indirect sun): 10,000–25,000 lux
    Typical Family Living Room: 50 lux
    This means that even the lowest amount of full daylight provides 200 times as much light as the typical family's living room.  So you can imagine the scenario for a dimly lit concert.
    However, I do own a ZS7 and have used one successfully at concerts.  Using spot metering, shutter priority and going up to ISO 800 is the best advice I can give you.  ISO 400 is better if you can get proper exposure with it.  Keep in mind that you are NOT going to be able to hold the camera still enough at full zoom to get blur free pictures in this lighting, so make sure you get decent seats.
    I love my ZS7 but the tiny sensor found in the ZS7 and all other P&S pocket cams (except for the Canon S90/S95, Samsung EX1, Panasonic LX3/LX5 and any others with equivalently sized sensors and faster lenses) doesn't do well in low light.  Don't fall for that BSI (backlit) CMOS sensor crap that Sony pushes.  There are marginal improvements over the other tiny sensor cams but performance is still poor and the daylight performance is much worse than their CCD counterparts at this point.  Remember that low light essentially includes all indoor phtography as well as very overcast days, dusk, sundown, etc.
    The ZS7 has great contrast and color and a slew of features.  It's well made and very versatile.  Really the old thing I don't like is the low light performance.  I also find the video to contain a lot of artifacting, though it's in line with any other 720p pocket cam.  I would defintiely recommend it but if low light is a major concern, check out the other cameras I mentioned as they offer a 40% larger sensor and a faster lens.
    Here's a good concert pic with the ZS7.  Metric was on during the day and even though it was overcast, it was fairly bright out.
    ... and here is a bad concert pic with the ZS7.  It was very difficult to take pics once SSPU came on as it was after 9pm and dark out.

  • Best Point and Shoot camera for concerts and all around photos

    What point and shoot camera would be best for good concert pictures and videos yet also having good pictures for basic use.? I would like a good zoom lense also....I've tried the Nikon S9300, P510, and canon Powershot Sx260 yet the nikons made pictures bluring at a recent conert and wasnt always getting in focus..
    Ive been looking at the Sony DSC-HX20v, Panasonic Lumix DMC-ZS19 as well as the previous ones too
    want good zoom, HD video and not too bulky

    I could not tell you the best because I have not tried all cameras.
    However, i researched for a long time and purhcased a Canon SX270 and I am exceptionally happy with it.
    It works very good i low light
    Canon - PowerShot SX230HS 12.1-Megapixel Digital Camera - Black
    Model: PowerShot SX230HS Black | SKU: 2030078
    This digital camera features 14x optical and 4x digital zoom to bring you close to the action and image stabilization to help capture clear, crisp images. Smile and face detection help ensure you get a great shot every time.
     4.3 Read reviews (156)
    Sale: $299.99

  • Compatible Point and Shoot Cameras

    What are the best point and shoot cameras to use with the MAC?

    Any point and shoot that takes jpegs to a Card of some kind. In other words: about 99.95% of point and shoot cameras. As a rule: avoid anything branded "Barbie" or the like. Stick to the major brands - Nikon, Canon, Olympus, Panasonic etc - and you'll have no problems.
    Regards
    TD

  • Imaqdx registers returning errors on point grey cameras

    I am trying to control Pt Grey Flea3 USB3 cameras.  Mostly these have been excellent, but I have come unstuck trying to access certain trigger modes.  THe trigger modes that Pt Grey claims are accessible, do not appear to be available as attributes, so I tried accessing registers directly.  Turns out I can read registers (in steps of 4) at offsets up to 20Ch, but after that I consistently get the same (rather unhelpful) error message "Unknown USB3 Vision error" (-1074360261 xBFF6903B).  This maximum offset is well shy of anything interesting in the registers.  I can revert the drivers back so I can use the native FlyCap software and this does allow me to access the registers at the offsets I expect (e.g. 803h).  I have seen similar posts to this problem, but don't see anything directly related.  Anyone got any ideas?

    Hi bostonscot,
    What version of LabVIEW and NI-IMAQdx do you have on your machine? Would it be possible for me to receive a screenshot of the error message you are receiving? 
    How are you configuring the IMAQdx Read Register VIs? Would it be possible to receive a screenshot or VI snippet of the code where the reading from the register is taking place?
    Regards,
    Jordan G
    Applications Engineer
    National Instruments

Maybe you are looking for

  • File sent but no rows created in RFC

    File - RFC I can see no errors in the MM, no errors in receiver adapter receiver side CC is showing Green the file is sent succesfully but I dont see any rows created in my RFC help !!!!! regards, Nikhil.

  • Can TimeMachine also backup data from my external harddisk?

    I have an harddisk of 500gb (usb external), I use the hd for putting my raw capture material on it (video files). Is it possible that timemachine also backups my external hd with video on it AND still my macbook pro data? (timemachine backups are goi

  • Copy process Chain with Meta chain

    Hi experts, how to copy the process chain with Meta chain, since the process chain which I planing to copy it hold meta chain and also local chain, I coping for change the technical name for the PC, is it possible to copy meta chain and local chain a

  • Can't restore my iPhone 4 5.1.1?!

    Right, so basically I have an iPhone 4 5.1.1 I had finished my year at college and went to America for 4 months to stay with my Aunty in cincinati, I couldn't take my iPhone with me because it wouldn't work so I let my brother use it whilst I'm away.

  • Update lässt sich nicht installieren

    Das Update der Firmawre für Flash-Storage 1.0 lässt sich nicht installieren. Ich sag Update JA > Neustart > Jetzt neu starten  JA Nach dem Reboot sagt mir der AppStore das ein Update verfügbar ist. Und das ganze hab ich jetzt schon 10 mal gemacht. Wa