Control Internal Electronic Shutter from IMAQ-Vision in VB6

Hello,
I've been trying to create a custom image acquisition application which
uses the following setup:
Hamamatsu C4742-95 Digital CCD Camera
NI PCI-1422 Image acquisition Board
Microsoft Visual Basic 6.0 SP6
IMAQ Vision for Measurement Studio 6.0, VB6 controls (cwimaq.ocx)
One of my requirements is to be able to manual control the shutter speed
of the camera during a continuous capture sequence. Through the Measurement
and Automation Explorer program, I can manually set the electronic shutter
time in the camera properties advanced tab. This electronic shutter is an
internal trigger to the camera.
Looking though the documentation and VB6 reference manuals for NI-IMAQ Vision,
I am still unable to determine how to control this property.
Any help would be appreciated. Thank you.
---Kien Tran

Hello Kien,
You should be able to programmatically control any of the attributes that show up in MAX by using the CWIMAQ CameraAttribute property. This property takes in a string that must exactly match the name of the attribute in MAX. You can then use the property to get or set the attribute.
Best Regards,
Jesse D.
Applications Engineering
National Instruments

Similar Messages

  • Can't find image display in the IMAQ Vision control palette

    Hi
    I am trying to display an image on the front panel. But i cannot find the image display vi .. according to the manual, it is available from the IMAQ Vision control palette. I have the academic version of LabVIEW 7 express. Does my version have the vi? Thank you
    rsa..

    Hello,
    The IMAQ Display control is a part of the NI-IMAQ driver. This driver is free of charge and can be downloaded from our website by going to www.ni.com/download. Here is a URL directly to the current version of IMAQ: "http://digital.ni.com/softlib.nsf/websearch/CD7EAFE90E9E47398625703000754A12?opendocument&node=132060_US". If you plan on using that control, I would recommend just installing the driver for it on whatever computer you want to use it on.
    Regards,
    Aaron B.
    National Instruments

  • Problems with IMAQ Vision after upgrading from Labview 6i to Labview 6.1

    Hi,
    We just upgraded from Labview 6i to 6.1.To do this,we uninstalled the 6i version as was suggested by NI and then installed the 6.1 version.Later when we tried to run the old vi's written using Imaq vision, we ran into different problems.Has anyone experienced any similar problems with IMaq vision after upgrading?If so please help me solve this issue.
    Thanx
    deepak

    What kind of problems?
    I would strongly suggest that you uninstall IMAQ (all elements) and reinstall them. They register with Windows, probably docked to 6i, and also must be recompiled, which I believe is done in installation.
    This is your best bet.
    If you still have problems, contact NI and ni.com/ask and start a support inquiry.

  • I don't have IMAQ vision, where can I get some super basic easy VI's for IMAQ?

    Hello,
    I don't have IMAQ vision, where can I get some super basic easy VI's to get images from my IMAQ PCI-1424 board, without Vision?? is there some kind of tutorial that will help me get started from the ground up in designing VI's? Also I am trying to run the HL Snap in picture control.vi and I keep getting an error that says:
    -1074397150 occured at IMAQ snap.vi
    Possible reasons,
    NI-IMAQ (Hex 0xBFF6022) wait timed out; aquisition not complete.
    Why am I getting this??? it is driving me nuts, I don't know how to get a image on my computer from the IMAQ board. I can get one in MAX. Also in MAX I try to change the camera driver to Kodak because that is the boar
    d that I have KLI-2113, but when I try to change anything under properties like the window size and then apply it, it says error removing old camera. why does that do that? Some of the other drivers sort of work and let me change the settings. I don't know if they work right though. I can get atleast some response to light from the CCD chip.
    Anyways, thanks,
    Brian

    Brian;
    There is an example on how to display images in LabVIEW without having the full IMAQ application.
    You can always convert the images to bitmaps (flattening) and display them in a picture indicator. If you are going to do some image processing within LabVIEW, this may be the way to go.
    About the error you are getting, hopefully the above example will help you in resolving the issue. If the problem persist, it will be more beneficial if you can post the code. Also, you may get better answers if you post your question in the Vision forum.
    Regards;
    Enrique
    www.vartortech.com

  • How do I identify the current IMAQ vision version, including updates ?

    I would like to identify the installed version of LabVIEW on an old machine, including the IMAQ vision updates. Where do I look ???

    A quick way to find out versions of all National Instruments software/driver installed is to go to MAX (Measurement and Automation Explorer) and click on Help->About MAX->Tech Support then the System Tab.
    If your system is from the pre-MAX days, then you can get the version numbers in Add/Remove Programs in the Control Panel.
    Hope this helps.
    Ken
    Applications Engineering
    National Instruments

  • My camera won't work with IMAQ vision builder

    I have a Hitachi camera , and a PCI 1407 frame grabber
    the camera works well in MAX under devices , but when I open the IMAQ vision builder , it not visible in the devices , and I can't open MAX from the vision builder. It's gets me that error "1074397163" at the end it has bad interface
    it's not the power supply of the camera since it works well at MAX , so its like the camera's name is img0 in MAX , and another thing in IMAQ vision builder, I tried updating my softwares but nothing happened, can anyone help please ??
    thanks

    Dalia, 
    I think I may need some clarification on what exact program and function you are using. Are you getting this error with the Vision Builder for Automated Inspection (VBAI)? Or are you using LabVIEW and are receiving this error from the IMAQ Init.vi?
    If it is in VBAI, and you are trying to acquire an image, the Devices should auto-populate in the Main tab of the Acquire Image setup. Simply select the camera and press Grab or Snap. 
    If it is in LabVIEW, right-click on the interface input of the IMAQ Init.vi to create either a constant or a control. If it does not auto-populate with the correct camera name as it is in MAX, "img0". Or you can change the interface name in MAX by simply right-clicking on the camera and selecting "Rename"
    Can you elaborate on what you are referring to when you say "the MAX explorer won't work in IMAQ"?
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • How do I read the camera model and manufacturer from IMAQ in LabVIEW?

    Hello All,
    I have a machine vision application for automated test. I am required to save the image for each test for quality purposes. Since LabVIEW interfaces the CameraLink camera thru the IMAQ driver, various cameras can be used without changing the LabVIEW application. I need to store the basic configuration information, including camera model and manufacturer, with the image. I am able to read some parameters from IMAQ (like bit allocation and shutter speed) using the Read Attribute VI, but unable to read model and manufacturer.
    Does anyone know how to read camera make/model from IMAQ in LabVIEW?

    With this VI, any camera attribute that you can see and set in MAX, you should be able to see and set in LabVIEW.  These are attributes that are defined in you camera file.  Since Model/Make is not an "attribute" that you necessarily set, it is not included in your attributes tab in MAX.
    If your camera file included a model attribute, then it would show up in MAX under attributes and you would be able to read it using the above-mentioned VI.  The only thing I can suggest is perhaps use some File I/O instead of IMAQ VI's and read your camera file, if the ones you have are consistent in structure.
    Hope this helps!
    Tejinder Gill
    National Instruments
    Applications Engineer
    Visit ni.com/gettingstarted for step-by-step help in setting up your system.

  • Integrate IMAQ Vision picture into frontpanel

    Hallo,
    I hope I'm in the correct newsgroup here. I've just begun to work with
    Labview. I'm working on several little demonstration programs, to show the
    principles of image acquisition. Now I'm searching for a possibility to
    integrate the pictures in the format that is used by the IMAQ vision library
    directly in the front panel.
    Til now I have not found a solution to that problem. Is there someone who
    could give me a tip, how to solve this problem. If theres only a high
    complicated solution, then no need to reveal it, because I'm just a
    beginner, and so not yet able to understand complicated solutions.
    I thank you all
    Felix Leo

    Hello Felix:
    First, is that you have to remember that ordinarily LabVIEW does not come with IMAQ or Vision tools as a single package and so you have to learn them separately but ultimately integrate them together in application. There is a set of toolset called "picture control" (early version in LV4.1 to LV5.1?) you can begin from. Assuming you have good grasp of image file types then start downloading NI examples that enables you to read an image, convert them to a matrix form (spreadsheet) and back or into different format. If you have a scanner that can save in TIFF,PNG,BMP or JPEG you could use those files to read them into your routines.
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

  • Image processing with imaq vision with 2 webcams on the same computer

    Hi,
    I'm currently trying to set up 2 usb webcams (logitech quickcam for notebooks pro). I want to be able to have them both run simultaneously and do some image processing with the images that I get from both cameras with labview and imaq vision.
    As of right now, I'm having trouble getting both cameras to run at the same time. Any help would be gladly appreciated. Thanks.

    The USB IMAQ driver will not support running 2 USB cameras at a time (I believe it is a limitation of the DirectShow interface). You could open one camera, acuqire an image, close the reference to that camera and then do the same for the second camera.
    If you need simultaneous acquisition, look at possibly moving to 1394 cameras or analog cameras.

  • How do I convert an IMAQ image buffer into an IMAQ Vision 'Image'?

    Using NI IMAQ and IMAQ Vision with LabWindows/CVI 6.0...
    I have some acquisition code that uses IMAQ img functions to set up a
    triggered image acquisition and stores the image into an 1D unsigned char
    array buffer.
    I would now like to add code that uses the IMAQ Vision functions. The IMAQ
    Vision function use an Image data type, which from what I can glean from the
    ..h files, is a structure.
    Is it possible to convert the 1D unsigned char array image buffer to an
    Image? How would I do this?
    An inefficiant brute-force way would be to write the image to a BMP file
    from IMAQ using imgSessionSaveBufferEx, then read the same file back in
    using IMAQ Vision imaqReadVisionFile. I am hoping there is a more elegant
    way to perform the conversion in memory without needing to write disk files.
    Thank you,
    Robert Rafuse
    Etec, Inc.
    tel: (978)531-5025
    e-mail: [email protected]
    web: http://www.etec-inc.com

    Bob Rafuse wrote:
    > Is it possible to convert the 1D unsigned char array image buffer to
    > an Image? How would I do this?
    Never mind. I found:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F11556A4E034080020E74861&p_node=DZ52490&p_submitted=N&p_rank=&p_answer=&p_source=External
    which indicates that the img functions actually return a 2D array, so I can
    use imaqArraytoImage after all.
    My bad.
    Bob

  • How can I in IMAQ Vision know to which blob a pixel belongs to?

    Hi,
    How can I in IMAQ Vision know to which blob (particle) a pixel belongs to?
    I use IMAQ Complexmeasure and Complexparticle to get data about every particle in the image and then use this data (position, length and direction) to see if two particles "belong to each other". I want to start from one particle and from the data (position, length and direction) find a search area and in that area look for pixels (binary image), if I find one I want to know to which blob that pixel belongs to. (Programmatically) How can I do that?
    Deeper explanation: The image I send is just a small part of a bigger image. As you can see there are a lot of streaks on the image, they are generated by small particle
    s moving in the air. I use a long exposure time and have a chopper in front of the camera that will generate a short streak, a middle long streak and a long streak. By doing this I can see how the air is moving around in a room. As you can see I must know which streaks are generated by the same particle. As I said earlier I use IMAQ Complexmeasure and Complexparticle to get data about every blob (streak in this case) in the image and then use this data (position, length and direction) to see if two streaks "belong to each other". I start from one streak and from that streaks data (position, length and direction) I can find a search area and in that area look for pixels ( hopefully belonging to a streak generated by the same particle ), if I find a pixel I want to know to which streak (blob) that pixel belongs to so I can look at this new streaks data (length, direction) to verify if these two streaks are generated by the same particle. So my questions are:
    How can I see to which strea
    k (blob) an individual pixel belongs to? (programmatically)
    What is the best way to create a search area, ROI? (programmatically)
    What is the best way to look for a pixel in the search area, IMAQ GetPixelValue? (programmatically)
    Thanks
    Pelle
    Attachments:
    streak.jpg ‏6 KB
    scan0001.PNG ‏66 KB

    Pelle,
    This is an interesting project. It will be difficult to use blob processing, because there are a large number of intersecting paths.
    A few ideas to start with:
    For each particle, the path is essentially the same brightness. I would start with white and gradually decrease the threshold level to locate the different blobs.
    Also, for each particle, the alignment is roughly the same. I would only consider blobs that have about the same orientation of the long axis. They don't seem to make sudden right angle turns.
    I would search by doing a particle analysis, select a particle and search for related particles by comparing the centroid of nearby particles to see if they fall in the area +/- 15 degrees from the long axis orientation of the
    particle. You should be able to locate a best choice at each end of the particle.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Why I can't subtract two images in imaq vision builder?

    Hi,
    I have many times tried but failed to get the objects in a image by subtraction with another image which is background, in imaq vision builder(ver. 6.0). I totally can't use the "operators" command under "greyscale" to subtract the two images becauee all commands under the "greyscale" are always unactivated after two images have been stored in 2 idfferent buffers. I really don't know why and this vision builder is so difficult to use, unbelievable! I followed the instructions in its Help and it's quite simple but I totally failed to make this operation!
    Two samples of images have been attached and maybe it's very ease for you to filter out objects(fibers) by subtraction each other. Show me your scrip
    t if you can. It's urgent to me.
    Or the idea of the way I thought for filtering the objects is wrong? Point out please if you know.
    Thanks and Merry Christmas and Happy New year!!
    Swedlin
    Attachments:
    10Img0.jpg ‏27 KB
    123Img0.jpg ‏25 KB

    Okay, this is not quite as straightforward as it could be, but you can do image subtraction in Vision Builder. The basic idea is as follows:
    - select first object image and copy it to buffer 1
    - select "image >> get new image" and load your background image from a file.
    - put this in buffer 2
    - retrieve object image from buffer 1
    - perform subtraction. Even though these images appear to be greyscale, they are actually saved as 24-bit RGB images, so you need to use the color operators instead. Vision Builder will only allow you to select steps that are valid for the image you have loaded. You could extract the luminance plane from all of your images to work with 8-bit images if you like.
    I have attached below a background image, several object i
    mages, my script, and the results of batch processing. You will need to edit the "get new image" step with the correct path to the background image on your machine.
    Bruce is right though. This is a bit easier in LabVIEW.
    Regards,
    Brent R.
    Applications Engineer
    National Instruments

  • IMAQ Vision Unable to read data.

    This project is to match multiple templates, then i copied the method from the example "Match Multiple Geometric Pattens", but the error says:
    Error -1074395989 occurred at IMAQ ReadImageAndVisionInfo
    Possible reason(s):
    IMAQ Vision: Unable to read data.
    The problem is that the programming works if I use the labview example's templates. However,when i use the templates which generated by myself, the error appears. I have checked the format and pixels of my generated template, which looks indentical to the example's template.
    Could anybody help me to figure this out? I have attached my docs below.
    Thanks.
    Dylan
    Attachments:
    Multiple-Match-Pattern.zip ‏331 KB

    Hello,
    Labview Geometric matching uses a set of features/descriptors to describe the meaningful information contained in an image. You need to extract these descriptors to permorm the matching.
    Here is an example on how to create the pattern matching templates in Labview (you can alternatively use the Template Editor utility):
    http://forums.ni.com/t5/Machine-Vision/In-Pattern-matching-angle-remains-Zero-even-if-the-rotated/m-...
    (see the attachment in the solution post). You can easily adapt this to learn geometric template (just modify/replace the relevant vi.'s).
    Don't use screen shots to create the templates. Create a template directly from the image.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Error -1074396077 (IMAQ Vision: Incompatible image type) after running IMAQ Mask

    I am attempting to process color picture of pellet. I want to exclude any particle that touches the edges of the color images. I created mask from original image and used this mask on the original color image to retain only the color particles that don't touch the boundary. The error occured  when I ran the IMAQ Mask. The error message is “Error -1074396077 (IMAQ Vision:  Incompatible image type)”. How can I fix it ?
    I have picture and program as attached.
    Attachments:
    color sorter 01f.vi ‏87 KB
    Red01a1.jpg ‏30 KB

    Hi XuanThuy,
    The IMAQ Cast function is part of the Vision Development Module (VDM), under the Image Management Palette, as indicated by this document: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_cast_image/. If you can't locate it and you indeed have the VDM, there may be an issue with the installation of this module. A similar issue has been encountered and resolved in this forum post: http://forums.ni.com/t5/Machine-Vision/can-t-find-IMAQ-cast-image-vi/td-p/340157. What version of the vision software are you using?

  • IMAQ Vision: (Hex 0xBFF60488) Minimum coverage value should be greater than zero.

    Having some trouble with extended acquisition of a Mightex USB camera using LabVIEW 8.5.  LabVIEW is able to acquire images from this camera using IMAQ USB, a snap every ~30 seconds.  After about 1100 snaps LabVIEW errors out: IMAQ Vision:  (Hex 0xBFF60488) Minimum coverage value should be greater than zero.
    Any help would be greatly appreciated!

    Check this discussion

Maybe you are looking for