Imaq vision function reference

Hello All,
I am new to Lab Windows/CVI and am using the imaq vision library.
Could anyone tell me where I can find the IMAQ Vision function reference? I have found a function reference manual at Start--> National Instruments --> Vision--> Documentation. But, all the functions described in this document are starting with img******(). I was looking for functions beginning with imaq****().
I am sorry as it might be a stupid question but any help would be appreciated.
Cheers, 
Solved!
Go to Solution.

Hello Harmonium,
i think what you search is under Start --> National Instruments --> Vision --> Documentation --> NI-IMAQ IO
In this directory you found the documentation for the imaq**** functions.
C:\Programme\National Instruments\NI-IMAQ IO\Docs 
There are three librarys the NI-IMAQ I/O, NI-IMAQ Librarys and the NI-IMAQdx. If you can please use the NI-IMAQdx library,
because its the newest for doing aquisition. The documentation can be found here
C:\Programme\National Instruments\NI-IMAQdx\Docs
best regards
Alexander Glasner
AE NIE

Similar Messages

  • IMAQ vision bug in several IMAQ vision functions

    Some IMAQ Vision functions malfunction if you use the source image as the mask. I keep running into this bug in IMAQ Vision, some Vision functions exhibit this behavior, and some don't. It is not documented in the function descriptions. Even if it were, it would still be a bug. Example:
    1. Create a U8 source image that contains some zeros and some nonzero values.
    2. Wire the image into the source input and mask input of IMAQ Quantify and return the % value of the global report to see what percentage of pixels are nonzero.
    The answer is wrong. If you copy the image into a separate image first, and wire the separate image into the mask input, you get the correct answer. See attached VI for edification
    Cheers,
    -root
    Message Edited by Root Canal on 04-20-2009 06:06 PM
    Message Edited by Root Canal on 04-20-2009 06:08 PM
    global variables make robots angry
    Attachments:
    mayor of bug town.vi ‏43 KB
    mayor of bug town.PNG ‏18 KB

    Identical thread in Machine Vision discussion forum: mask bug in several IMAQ vision functions
    Hope this helps.
    -Ben
    WaterlooLabs

  • The problem of IMAQ/Vision function?

    I use ImageToArray function to extract a pixel array from an image. And I want to copy this array to the portion of the other image. I wrote a program as follow, but it dosen't work? Did anybody can help me.
    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)
    Private Sub Test_Click()
    Dim pixelArray1 As Variant
    Dim testarray() As Variant
    Dim filename As String
    Dim image1 As New CWIMAQImage
    Dim h As Integer,w As Integer
    ChDrive App.Path
    ChDir App.Path
    filename = CurDir & "\\test.png"
    CWIMAQViewer1.Palette = cwimaqPaletteBinary
    CWIMAQVision1.ReadImage image1, filename
    ReDim testarray(5000, 5000)
    h=
    image1.Height
    w=image1.Width
    pixelArray1 = image1.ImageToArray
    CopyMemory testarray(1000,1000),pixelArray1,h*w*16
    End Sub

    Any time you use things like CopyMemory you need to be careful, and make sure you understand how things are really being stored in RAM. There are several things I would look at in your code.
    First, the first argument of CopyMemory should be an address. It looks to me like you are giving the value stored in the 1000th row, and the 1000th column of testarray. If that element of the array actually contains an address then your in business, but more than likely it is undefined.
    Second, arrays are stored in ram as one long continuous block of memory. The illusion of a 2D array is a higher level abstraction, done by the programming environment. The two arrays are stored as '1-D' continous blocks of memory. So, if your pixel array is 1000x1000, 5 rows of your so
    urce will be stored in one row of your target. (5000/1000). The resulting image would definitely not be what you were expecting.

  • The IMAQ-Vision image display function seems to use two processors automatically

    Because the IMAQ-Vision function to display an image was slow for large images I wrote my own routine using the Windows SDK and it was much faster.
    However, now that the application has been moved to a dual processor PC the opposite is true, i.e. the application runs much faster if I use the IMAQ-Vision function. Inspection reveals that this is due to equal loading on the two processors, whereas if I use my SDK routine all the load is on the first processor.
    Is there some explanation for this? Do the IMAQ-Vision routines have built in multi-threading?

    Sir,
    Naturally, the IMAQ Vision display function does use multi-threading. Whether it uses the second CPU for this thread is operating system dependant.

  • 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

  • Multi-camera acq w/IMAQ-Vision processing; how to translate buffers?

    I have a multi-camera system using genlocked cameras and a PCI-1408. I'm developing my application using LabWindows/CVI. I can acquire from each camera in turn using NI-IMAQ low-level functions (ref.: scan 1408 channels.c), but I want to process the images using high-level IMAQ-Vision functions. How do I translate an image captured into a low-level buffer (imgCreateBuffer) into an Image buffer (imaqCreateImage)? Are the buffer structures from imgCreateBuffer the same as imaqCreateImage, so that I can simply cast the void* returned from imgCreateBuffer to an Image* parameter in an imaq_xxx function? If not, how do I move an image from one buffer type to the other?
    Thanks!
    Jesse

    Well, I'm answering my own question!
    Turns out that the image buffer from imgCreateBuffer is an integer array. To get this into an Image structure from imaqCreateImage, use imaqArrayToImage.
    Hope this helps the next person.
    Jesse

  • Functions in IMAQ Vision for Labview same as those in Vision Builder?

    Hi all...
    i just have a simple question..Does IMAQ Vision for Labview has the same functions of Vision Builder?
    I know that with Vision Builder you can develop an application interactively...but does it has more functions than IMAQ Vision?
    So if i buy IMAQ Vision can i develop the same kind of applications that i would make with Vision Builder?
    I´m specially interested in color matching and color analisys functions.
    Thanks

    IMAQ Vision has much more than Vision Builder. Basically, VB was created using Vision and they implemented a good number of the functions in a menu driven format. However, there are many more functions available that were not integrated into VB.
    Vision does have some good color matching and analysis tools.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Where can I get ComponentW​orks IMAQ Vision reference?

    I have setup LabVIEW2012 on my pC. The cwimaq.ocx and cwimagview.ocx were also registered. Now I want to building componentWorks IMAQ Vision Applications with Visual C++6.0.
    I use the Visual C++ MFC AppWizard created a skeleton project and program. After insert the Activex Control in the program, the corresponded wrapper classes were created. But I don't know how to use these classes. For example ,how to display two dimensional array as image.The manual of "Getting Results with ComponentWorks™ IMAQ Vision" says that ComponentWorks online reference (If you have ComponentWorks installed on your computer, you can access the online reference by selecting Start»Programs»NationalInstruments>>ComponentWorks​»ComponentWorks Reference).
    But I only registered the Activex control. How can I get the ComponentWorks setup program and the detailed reference? Many thanks.

    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

  • 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 5.0 - where are overlay vi's

    Using IMAQ Vision 5.0 for LabVIEW, I find in the online reference overlay vi's such as IMAQ overlay rectangle, etc. I want to overlay a rectangle on an RGB image to show a region of interest in the application front panel. However I can't find any of these vi's in any of the IMAQ palettes. Where are they?

    The overlay functions are new functions introduced in IMAQ Vision 6. In version 5, your options are to use IMAQ Draw or IMAQ Draw Text. These functions will allow you to type text and draw shapes on the image. The only drawback is that both are destructive overlays.
    Ken Sun
    Applications Engineering
    National Instruments

  • Using IMAQ ConstructROI in IMAQ Vision

    When I using IMAQ ConstructROI.vi,there will be two bottons,'OK'&'CANCEL',in the following image.How can I delete these two bottons?

    The IMAQ ConstructROI VI is a high level function that allows you to easily obtain a region of interest from the user - as such you will not be able to remove the OK/Cancel buttons as they are "hard-coded" into the VI.
    An alternative method would be to replicate the process found in this VI in your application as this would allow you to simply display the image window and from that extract the ROI once the user has drawn on the window. The process would be as follows:
    1. Display image
    2. Select ROI tool (either show tools palette or force user to use a particular tool e.g. rectangle using IMAQ WindToolsSelect
    3. Wait for the user to draw on the image - there is a function that will wait until a user event (such as draw) is generated - IMAQ WindLastEvent
    4. Get ROI from image window using IMAQ WindGetROI
    5. Use the ROI as part of your image processing algorithm.
    The IMAQ Vision Reference manual has more detailed help regarding the use of these VIs - some of the "older" examples i.e. prior to IMAQ Vision 6.0 show this approach being used. Some of these examples may still exist so I would suggest browsing through the examples for some sample code.
    Jeremy

  • Can IMAQ Vision decode 128c barcode

    Looked through the examples for barcodes, and it appears that there is a barcode "decoder" vi for EAN13 (upc), are there others?
    I need to decode a 128c barcode, I don't have the vision stuff yet, but the IMAQ Vision Moudle for CVI is on order.
    Will this work or do I need to create my own?

    Jeff,
    As Bruce Ammons mentioned, your IMAQ Vision for Measurement Studio package when used on CVI will have a function on the library called "imaqReadBarcode", the parameter BarcodeType sets which Barcode are you trying to recognize. Your options are:
    * CodaBar
    * Code 39
    * Code 93
    * Code 128 (the one you are looking for)
    * EAN 8
    * EAN 13
    * Code 25
    * MSI Code
    * UPC A
    I hope you find this information useful. Also, you can find the previous edition manual in the web, I'm referring to the IMAQ Vision for LabWindows/CVI Reference Manual which is available for download, Chapter 18 talks about the Barcode Functions.
    Good luck!
    Nestor Sanc
    hez
    IMAQ/Motion Support
    National Instruments
    Nestor
    National Instruments

  • 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.

  • IMAQ Copy function does not always copy Calibratio​n Informatio​n

    This only seems to happen on one PC in compiled form- works fine elsewhere. I wrote a trap to check for the existance of calibration information before the copy, and again after the copy to a newly created image. If the two disagree, the program breaks. The program breaks consistantly on one of my machines, but never on other PCs. Does anyone know what conditions can cause this to happen?

    Hello,
    Thank you for contacting National Instruments.
    I don't know of anything in particular that would cause the IMAQ Copy function to not copy the pattern matching information on one particular machine. For troubleshooting purposes, I recommend checking for any and all differences between the working machines and the non-working machine. For instance, check the versions of all software that may be used by the application (especially NI-IMAQ and IMAQ Vision). How do the systems differ in hardware? Are they all the same make/model of PC? Are they all using the same IMAQ board?
    Any differences you uncover may help us figure out what is causing this behavior. Let me know your findings so I can continue to assist you.
    Regards,
    Jesse D.
    Applications En
    gineer
    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***

Maybe you are looking for

  • How to embed an image in swf at run time?

    Hi all, I have created an Image component in flash which is having a "imageSource" paramter, where in a user can provide the path of his/her image(both from web or from  harddisk). I want that image to be compiled with the swf. how can i do that?....

  • Problem ejecting dvd

    I tried ejecting it by dragging the icon to the trash. Nothing happens. This is a copy of a dvd someone made for me. I don't know if that makes a difference.

  • Windows 64-bit + OBIEE 11g + Internet Explorer 10

    Not a question this time, just an observation about the interaction between OBIEE 11.1.1.6.0 and IE 10 on 64-bit Windows. After installing OBIEE 11.1.1.6.0 on 64-bit Windows, the Analytics environment worked fine in IE 10. When starting BI Services f

  • Extending VLAN across Data centers

    I hope you can help, I have 2 data centers connected via a L3 10gb (dark fiber) now I have a few more fiber strands available between the 2 data centers; so for Disaster Recovery and server clustering (requiring same subnet) does it make sense to ext

  • Problem with Essbase variable setting in maxl

    Hi, I have a short question about changing variables using maxl. I used the following statement to change the variable value to 'Jan'. alter database Testapp.Plan1 set variable TestVar Jan; The problem is that this does not change the value of the va