Using IMAQ Image controls in LabVIEW steps

Hi guys
So far, I was using TestStand 4.0 together with LabVIEW 8.5 and Vision Development Module 8.5 with no problems. Recently, I've updated to LV 8.6 and VDM 8.6. I've started to experience weird problems when using LabVIEW steps with inputs/outputs containing IMAQ Image controls. When I try to click on such a step in seq editor, or try to insert a new step into the sequence, the step initialization takes a very long time (tens of seconds) or freezes completely. I've also tried to upgrade TS to version 4.1, but no difference. Also, my colleague experiences very similar symptoms on the same software setup. The only difference is that on his machine, it takes only a few seconds when you click on the vision step. However, the steps not containing an IMAQ Image control behave normally, i.e. you can't experience any "initialization time" when clicking on them in the sequence.
To illustrate, I'm attaching a simple VI containing nothing more that a single IMAQ Image control. If you don't link it to the connector pane, the VI works fine when inserted as a TS step. If the IMAQ Image control is linked to the connector pane, TS freezes when inserting such a step.
Vladimir
Solved!
Go to Solution.
Attachments:
ft5.vi ‏5 KB

Hello Vladimir,
Thank you for posting on the NI Discussion Forums. This was reported to R&D (#123249) for further investigation. The only workaround I can offer for now is to work with the VIs from version 8.5 of LabVIEW if they have vision controls linked to the connector pane. Thanks for the feedback!
Chris_G
Sr Test Engineer
Medtronic, Inc.

Similar Messages

  • Using IMAQ Image Display control vs IMAQ WindDraw for large image files

    Hello All;
    I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger).  My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds.  My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
    I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference.  For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
    Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods?  How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
    I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?).  Thanks.
    DJH

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Imaq image control (Delete default Value)

    I have a problem with the vision imaq image control.
    I have defined for a "imaq image control" a default image for the development.
    Now the default image is no longer need and i want to remove the default value an reset the Control to an empty image.
    How can i reset the default Value from the "imaq image control" to an empty image?
    Solved!
    Go to Solution.
    Attachments:
    imaq_image.vi ‏2726 KB

    Cardinal1664 wrote:
    I have about 20 Vi's with imaq image controls with default images!
    I don't want to too that progmaticaly!?
    Another possible way is to automate this task, something like this:
    Just obtain list of VIs where Vision Control should be resetted to default, then run snippet above in the cycle.
    Andrey.
    Attachments:
    Empty Images.vi ‏17 KB

  • Problem of imaq image control events

    Hi,
    I use CVI 2010 and NI Vision 2010 to develop a motion and machine vision system.
    I got a problem of using the imagecontrol, I can not capture the EVENT_KEYUP,EVENT_KEYPRESS and EVENT_LEFT_CLICK, EVENT_LEFT_CLICK_UP in the image control's callback.
    I also tried to use the function of InstallWinMsgCallback (g_hMainPnlHdl,WM_KEYUP,KeyupCallback,VAL_MODE_INT​ERCEPT,NULL,&hKeyupCbHdl) to install the WM_KEYUP event, the message is captured when the mouse pointer is outside of the image control,but when the mouse pointer entering the image control, the WM_KEYUP  event is missing. I think the image control has intercepted and blocked these messages.
    Anyone can help me? Thank you very much!
    Awen

    It seems to work for me.  I just tested EVENT_LEFT_CLICK and had the event increment a numeric each time it fired.  I just configured a callback function called "ImageCallback" in the Image control properties, then created a callback function.  I have attached the whole project below.
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Image Control Callback.zip ‏553 KB

  • Delay Using IMAQ Image

    Hi
    I am using ProGres Speed XT Core 5 camera and its library. I would like to make some image processing with labview therefore I visualize the images by IMQ Image instrument. Unfortunately I have small delay of image transfer. Could you please see my code here.
    Best regards
    Attachments:
    CameraControlIMAQImage.vi ‏129 KB

    Hi,
    You can use the information from this community page that explains how to benchmark a simple code
    https://decibel.ni.com/content/docs/DOC-12892
    Basically you have to isolate your image processing which are two VIs inside the sequence structure and measure how long it takes.
    Also, where can I find the driver you are using it? It will help me understanding what exactly you are trying to do and I can come with suggestions for improving it.
    Regards,
    IR

  • When using classic dialog controls in labview 7.1 why does the text color that I have selected always stays black?

    I have an older program created in LV 6.0.2 that uses dialog buttons. The text color is red or blue. When I load it into LV 7.1 the color stays black. When I edit text I can see that the color is correct but it will not display the color when I leave edit mode on the control. Even if I select a new button from the classic tools pallete "dialog controls" I am unable to change the text color.
    What is happening? Why does LV 7.1 prevent this text color change?
    Roger

    The dialog control colors are set by the operating system so they match other controls that the OS generates. So in LabVIEW 6, they were actually not behaving correctly.
    The following text is from the LabVIEW help on Dialog controls.
    "You cannot customize the appearance of the dialog spin control, slide controls, or progress bars because the controls and indicators use platform-specific drawing functions that do not support customization. You also cannot use Property Nodes and Invoke Nodes to customize the appearance of these controls and indicators."
    If you need different text color, you'll have to use the non dialog controls.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Vision Builder 7.0(IMAQ) : Using fxs in subVIs with references to image control

    When using IMAQ fxs (such as 'Write File') in subVIs, if one wanted to use references to an image control, what property or method would be used to feed into the image terminal in the imaq fx on the subVI? Is this possible?
    What did work: I was able to directly use the image control on the main feeding an image control on the subvi panel (which is then fed directly to imaq fx)
    What did not work: From a refnum control for the image on the main, I used (within the subVI) the value property fed to a 'Variant to Data' with type as image control, then feeding the output of this into imaq fx.

    Typically you would update an Image Display control from a subVI using the Value property nodes. However, this method does not currently work with LabVIEW 7 and Vision 7, but the issue will be resolved in the next release of LabVIEW and Vision.
    In the meantime, in addition to the solution you found you could also use a global variable to pass images from one VI to another. Using a global variable works, but not in the same way as a reference or property node would. With a reference or property node, you can pass a reference of the control to a subVI and have the subVI update the control's image. Using global variables, the subVI will update the global variable with the new images, but you need a loop monitoring the global variable in your top level VI.
    I hope this
    helps! Best wishes.
    Regards,
    Dawna P.
    Applications Engineer
    National Instruments

  • How can I use or convert a imaq image to plot images back on waveform graph

    Hi
    I am currently opening and manipulating (rotate and resize) a PNG image using IMAQ Vision in LabView 8.2.1 This works well and I can display the Image on the front panel using a IMAQ Image Control.
    In addition to this I would now like to display the image as a background on waveformgraph. I can do this with the original PNG file by reading it and then flatten it to a pixmap ie make it a Picture but this is of little use as I need to use the manipulated IMAQ image.
    Therefor I would like to know how to convert the manipulted IMAQ Image to right Picture Format (without resaving) in order to use it on the PlotImages.Back property node of a wavefrom graph.
    I very much welcome your suggestions as I feel it should be easy yet can not seem to solve it. Thank you for your time!!!

    Hi Randall
    Apologies for replying somewhat late but I have been out of the office for a few days.
    Your suggestions and code helped me greatly and led to solving my query so thank you for that.
    There is one more thing (well many many more but I will place new posts for those  however that you might be able to answer for me.
    Following your suggestion to use the image to array function I searched through more examples and found the code that did exactly what I wanted to do. Please see attached.
    In this code a For loop is used to add 65793 to the color table. It works very well but I do not know why it is used exactly. Can you exlplain? I also realize I never made it clear that I use grayscale PNG files rather then color images.
    Thanks again for your excellent help, it is much appreciated.
    Attachments:
    IMAQ_8-bit_to_picture v1.vi ‏15 KB
    Test Image.png ‏42 KB

  • Don't understand IMAQ image behavior

    Hi there,
         I have several image controls in my application.  When I assign image A to image B (in my wiring diagram), and then close image B, image A is no longer valid!  When I try to crop image A after closing image B, I get a "not an image" error.  If I do not assign image A to image B, I don't get the error.  If I do not close image B after assigning image A, I don't get the error.
         I am new to IMAQ and don't understand this behavior at all.  It looks like when I try to give the value of image A to image B, it somehow links the two rather than just copying the information over.  Is this a pointer and reference vs. value assignment issue? 
         Regardless, these IMAQ image controls behave differently than any other control in the labview palette.  I hope someone can explain what I am seeing to me so that I that I can learn when I can assign one image to another, and when I can close, and how I can avoid extremely confusing and difficult to debug results.
    Thanks,
    Eric

    Hi,
    You must create each of Image A and Image B separately using IMAQ Create and then copy content of image A to image B using IMAQ Copy.
    Image Display control in Labview does not create an image and does not reserve memory for it. It just displays content of the image it is wired to. I suspect that when you "assign" image A to image B in your program,  you just wire the same image to 2 Image Display controls. No wonder they show identical image. When you "close image B", you actually closing the only image you have, memory space allocated fot that image is released and reference is no longer valid. After that any attempt to modify/change that image will return "not an image" error.
    I recommend you to look into Vision examples shipped with Labview - see for example "Extract Example.vi" in "C:\Program Files\National Instruments\LabVIEW 7.1\examples\Vision\2. Functions\Image Management". In the path above you should change LabVIEW 7.1 to your version of LabVIEW.

  • "IMAQ image to string" difference in 8.2 and 8.5

    My basic aim is to capture image from one computer and then send to another in LAN using TCP/IP. I have LabVIEW 8.5 and LabVIEW vision 8.5 in one and LabVIEW 8.2 and LabVIEW vision 8.2 in another. I capture an image in the computer whear I have installed 8.2 version of both and then flattened using " IMAQ image to string" and then sent it to computer using TCP/IP to computer with 8.5 version but the image is not displayed whearas when i do send that from 8.5 to 8.2 ( Capture the image in the computer with 8.2 and then flatten it to string and send it to the computer with 8.5 and display) , it works. Is it beacuse of different version of LabVIEW vision?

    Hi aman_bajra,
    You should be able to pass the image from one computer to another using TCP/IP, even if the computers have different versions of the Vision Development Module installed.  I tested this here and I had no difficulty sending the image from a computer running Vision 8.5 in LabVIEW 8.5 to a computer running Vision 8.2 in LabVIEW 8.2, or vice versa.  FYI, I used the normal Flatten to String node, not the IMAQ Image to String VI.  I have included the VIs I used to do this below.  Please give these a try and reply back if you are still unable to send your image properly.  Thanks.
    Rishee B.
    Applications Engineer
    National Instruments
    Message Edited by risheeb on 03-12-2008 12:24 PM
    Attachments:
    TCPIP Receive Image3.vi ‏45 KB
    TCPIP Send Image1.vi ‏74 KB

  • Image control synchronizing scroll bars

    Hello, I have a LabVIEW program using Vision that I want to use multiple Image controls in a VI.  I would like to be able to synchronize the movements of the scroll bars.  If a user scrolls left in one window, I want the other window(s) to also scroll left the same amount.  Is this possible?  I know it can be done with 2D picture controls but I would like to do this with a Image control (not external).  It would also be helpful to zoom synchronously.
    Thank you.
    Solved!
    Go to Solution.

    -I think we can enable/disable the scrollbars through property nodes. Let's see if anyone else has idea on programmatically moving scrollbars for image control.
    -For zoom you can use zoom property node of selected image control and write the same to other image controls.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • IMAQ image to array vi not working with images extracted from avi file

    Hi,
      I downloaded some avi's and uncompressed them so that I can analyze them within labview. I am trying to convert images I am reading from the avi file to an array. When I use "IMAQ image to array" I get the following error " IMAQ Image To Array  Invalid image type" -1074396080.
       I am able to display each read image and save them to the hard drive, but I am unable to convert the vision image to array. I verified that the image extracted from avi is the same as the image type I created in memory to hold the image.
      Please see the attached vi I created.
    thank you
    Ruz
    Attachments:
    example2.vi ‏62 KB

    Hi all, this thread was useful for me...but i have another doubt... when I try to extract a single plane (Luminance, Saturation, R,G,B...anyone) and try to save it in jpg as gray image, it saves an image with blue tones. I have examinated it using Matlab and checked that Red plane has low values (but not zero), the same for G plane and high values for B plane. An image of the VI is attached.
    Thanks in advance
    Attachments:
    planes.png ‏28 KB

  • Image Control in ADF

    Hi,
    I am using the Jdev 11g.
    is there any component which will take array of images path and rotate it.
    my problem is -- I have n number of images and i want to show it in rotating fashion.
    please tell how will i do it using the ADF component.
    Thnaks
    Kiran

    Hi shay,
    Thanks for the reply.
    I have tried out the carousel component but it dose not meet some my application requirement.
    Can you please tell some different way to implement the requirement using only image control?
    Thanks,
    Kiran.

  • Using Color Box controls in Touch Panel Module

    Hello,
    I am attempting to change the background color of my touchscreen panel (tpc-2006) when a certain value increases past 5.  I have successfullly done this using color box controls, but Labview will not allow me to deploy it to the touch panel. I am guessing color box controls simply do not work with the touch panel module.  Am I wrong about this, or is there another way to change the color of the screen?
    Attached are the VI and the lvproj files.  The color changing works fine if the VI is open only.  Errors result if the lvproj file is used, because it specifies that the VI gets deployed to a touch panel.
    I am using Labview 8.5, with the Touch Panel Module 8.5, on Win XP.
    Thanks!
    Attachments:
    Touch Panel HMI VI1.vi ‏21 KB
    Touchpanel HMI1.lvproj ‏4 KB

    Thank you, tst.
    I tried your solution using the select control and writing directly to the color box.  This works great on my desktop, and it even deploys to the TPC.
    However, it does not work at all on the touch-panel.  The screen remains black and does not change.
    Any other ideas?
    Attachments:
    Touch Panel HMI VI1.vi ‏20 KB
    Touchpanel HMI1.lvproj ‏7 KB

  • How to use IMAQ extract color panel in a LabView file?

    I want to change a color image into a greyscale image. Therefore I want to use the function IMAQ extract color panels but I don't know how to insert it in my LabView application.
    Please, can anyone give me some advice ?!!!
    Thx, Birgit

    Birgit,
    If you want all of the color planes, you can use IMAQ ExtractColorPlanes. Allocate an 8-bit image for each of the color planes. Wire the original color image and each of the 8-bit images for the color planes on the left and bottom of the vi. The outputs on the right side will be the same images, and they will each contain the desired color plane. The input at the top of the vi controls which color planes are extracted (RGB, HSI, etc.) Grayscale will probably be the I plane in HSI.
    If you just want a grayscale image, use IMAQ ExtractSingleColorPlane instead. Wire the color image to Image Src, and wire an 8-bit image to Image Dest. Select the color plane using the top input, and it will come out on the right side.
    Bruce
    Bruce Ammons
    Ammons Engineering

Maybe you are looking for

  • JPGs are "noisy" on Mac, but not PC

    Hi all! I got a new hybrid camera that I've been playing with. When I load the pictures on my Intel iMac, anywhere there is a dark or black area, it looks very noisy. Best I can describe it is speckled, colored pixels. This happens in Preview and iPh

  • Getting started with Ajax - how do I query the db without 'submitting' the page?

    Hi guys, I'm building a simple 'power point presentation' - basically a cf page which will display a large jpg [a slide]) every n seconds I want the page to query the db to ask if it needs to change the jpg and if so which jpg should it now show. In

  • Legend for 3d graph

    I want to know how to make a legend for 3d graph. I actually posted my question on the following thread but since there havent been any replies, I thought I could just post it here. http://forums.ni.com/ni/board/message?board.id=170​&message.id=16071

  • Photoshop CC 2014; MSCVP80.dll fehlt

    Seit dem Update auf Photoshop CC 2014 erscheint immer wieder die Fehlermeldung MSCVP80.dll fehlt. Was ist zu tun? Photoshop neu installieren? Windows neu installieren? ... Since I updatet to Photoshop CC 2014 CC I often see a problem record MSCVP80.d

  • Scripting error appears again and again in Console - the cause?

    The CONSOLE reports scripting errors around Xmail.osax, again and again. How do I figure out what's wrong? 8/30/10 Aug 30 2:46:02 PM [0x0-0x78078].com.apple.Console[1918] Console: OpenScripting.framework - scripting addition "/Library/ScriptingAdditi