Correct Calibrated Image Crashes Labview

I'm trying learn a calibration to find the four corners of an LCD and to remove any perspective or rotation. I'm pretty sure I've got it all set up correctly the only thing I want to fix is Correct Calibrated Image creates some jagged edges when the interpolation is set to Zero Order, but when I set it to Bi-Linear (which is the only other non-grayed out option) and then execute the VI LabView crashes everytime.
Any help would be appreciated.
Thanks,
Kevin
Solved!
Go to Solution.

Here's the project I'm working from. If you execute the test.vi with the File Path = test.jpg, Width = 400, Height = 240, and File Path 2 = test2.jpg. It should work and you should end up with test2.jpg's rotation being removed. Then if you go into Correct Image.vi under the Display class and change the interpolation from Zero Order to Bi-Linear, and run test.vi LabView should crash.
Thanks,
Kevin
Attachments:
vision.zip ‏1424 KB

Similar Messages

  • Using IMAQ Extract on a Calibrated Image

    Hello,
    I'm a student new to Labview working on a project to get a web cam to identify and analyze the state of a checkers game board. My VI calibrates the image of the board to correct for distortion and to fit it to its real world coordinates. At this point I want to extract the game board from its surroundings to make the rest of my analysis easier. However, if I do this I end up voiding my calibration. Is there a way that I can make a new image based on my calibrated image so I can use the extract VI or do I need a new approach? 
    Thanks for your time!

    It sounds like you're not passing the calibrated image to the extract VI correctly.  The extract VI requires a new memory allocation be made and then copies the source image to that location.  It then creates a new image at the new memory location with only the extracted portion of the original image.  If you don't handle your memory locations correctly, you may be overwriting your original image instead of extracting from it.  Make sure you are allocating a new memory location by calling a new IMAQ Create VI (and using a different string input) and feeding that into the Image Dst input of the IMAQ Extract VI.  This should ensure that you save the calibrated image before running the extraction.
    Regards,
    Chris L
    Applications Engineer
    National Instruments
    Certified LabVIEW Associate Developer

  • Passing control reference to subVI crashes labview

    Hi,
    using a image control (as indicator) provided by imaq Vision, I tried to pass the reference of the control to a subVI. On a computer it works and on a other (same labview version, same vision version, same os, same hardware and hardware drivers!), this crashes labview. I tried to close the control refnum at the end of the subVI, but that changed nothing to the issue. Now I use the reference as a global variable and it seems to work...nevertheless, I would like to understand what the issue and if I should remove any passing to subVI of control ref because this can potentially triggers an error. My correlated question is if this global passing is a "fake" workaround or have real chance of improving (this before going through the whole code for changing all passing of reference to subVI)
    thanks a lot

    Hi,
    thank CoastalMaineBird for your answer
    How do you know it's this issue which causes the crash?
    When I remove this parameter from and the only property node in the subVi that write to it, I have no longer any problem. Moreover, to ensure that's really the "passing", and made a global variable containing the reference to this control and use my original SubVi that do access the control through its reference number
    , and it works! In this last exemple, the only change is the way of transmitting the reference
    What LabVIEW version?
    8.0.1
    up to date according Measurement & Automation update tool
    Given that one computer works OK, and another crashes, I would say that
    you are seeing the effect of something else, not the cause. If passing
    a control ref via terminals was fatal, it would be fatal all the time.
    You have some other sort of issue, perhaps timing of the different
    machines triggers the bug, perhaps running out of memory, perhaps
    LabVIEW is corrupted on one machine.... But I don't think changing all
    your code to use globals would solve the real problem. Actually, saying that I wonder about problem of synchronisation. I know from Visual C++ that this kind of error happens if two process try to access the same control at the same time. This is typically an error changing from a computer to an other, and mutex or semaphore are the way to deal nicely with that. But does labview contains already such a securisation? If so, the global variable point on a single object and can "fell" the semaphore/mutex. But passing make a copy that will likely have two different semaphore/mutex but will point to a single control! Do someone know if I'm wrong in this idea or not?
    Thanks

  • Internet Toolkit for G5.0 crashes Labview 8.2 during Mass Compile

    I have just received my Labview 8.2 update and installed it my system along with all my toolkits. When I tried to Mass Compile Labview 8.2 directory I found that it would crash labview consistantly as shown in the attached image.
    I traced this to the vi's supplied with the Internet Toolkit for G5.0.
    The workaround is ...
    1. Re-installed the Internet Toolkit for G5.0 into Labview 8.2
    2. Mass Compiled ...\project\_config\authcfg.llb using Labview 8.0
    3. Mass Compiled ...\project\_config\authcfg.llb using Labview 8.2
    and there wasn't any more Labview 8.2 crashes during mass compile. As Labview 8.0 was able to mass compile the internet toolkit vi's without crashing I am suspicious that Labview 8.2 might not be completely compatible with Labview 5.0.
    I posted this just in case anyone else sees a similiar issue.
    David
    Attachments:
    Labview 8.2 Mass Compile Crash with Internet Toolkit.png ‏34 KB

    David,
    I was able to reproduce the crash mass compiling authcfg.llb or just trying to open the VI named 'Directory Configuration'.  That code is saved in LabVIEW 5.0.1 and must have something that LabVIEW 8.2 chokes on, I'll have to get someone to investigate it.  Your workaround of saving that .llb or even that one VI in 8.0 first (or probably even 7.x) is the only way I see around it with 8.2.
    I do want to mention that in Q1 2004 we released version 6.0 of the Internet Toolkit and it does not exhibit this behavior.  So the official solution for this crash is to upgrade to the latest Internet Toolkit.
    Kennon

  • GetDefaultPrinters (WinAPI call) Crashes Labview

    Hi all,
    For several reasons I need to use the windows API to get the default printer. I know about labview's activex solutions but those are not universal. 
    See attached VI. This winapi call crashes labview rather consistently. It runs fine and returns correctly the default printer. However, some time later, a few seconds or a few operations later it will always crash labview. Why? I've tried changing it to "Run in UI thread" instead of any thread but neither seems to help... 
    To get it to crash immediately, try closing the VI. That seems to do it every time. Access violations... 
    Solved!
    Go to Solution.
    Attachments:
    defaultprinters.vi ‏10 KB

    No.  You actually did NOT allocated memory in your VI.
    Here is how to allocated memory, the old way:
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • Save for previous version 8.5 to 8.2 generates code that crashes Labview (uses classes)

    Hello,
    I'm working on some java style interfaces for labview for hot swapping of instrumentation for design patterns. When I try to port this code, developed on Labview 8.5 back to labview 8.2, the code it generates crashes labview (both 8.5 and 8.2).
    Included is a small snipet of the work that demonstrates this behavior.
    It includes to classes:
    untitledProject1 - the containing project (version 8.5)
    FunctionGeneratorI - Similar to a Java style interface (A class with all Dynamic VI's with no useful functionality)
    FunctionGenerator33220a - An intended implementation of Function generator (only a few functions implemented)
    and a folder "labview8_2Distribution"
    Which contains the port of the 8.5 code to 8.2.
    To recreate the error:
    A.
    1. Open "labview8_2Distribution\Users\Laptop\Desktop\objec​t\Untitled Project 1" (8.2 save)
    2. Verify it crashes labview 8.5 and labview 8.2.
    3. Watch labview crash?
    B.
    1. Open the "Untitled project 1" in the root directory. (Using labview 8.5)
    2. Save the project as a labview 8.2 type.
    3. Try to open the saved version with 8.5 and 8.2.
    4. Watch labview crash?
    Greg Sonnenfeld
    Attachments:
    error.zip ‏885 KB

    Hello Karunya,
    In regards to your questions:
    >Can you post your code? Have you tested this by creating another project?
    Do you have an xcontrols in your projects? Do you have typedefs? Do you
    have a LVOOP constant on your block diagram? Are you also using Classes?
    I cannot post the cost as it is way too big. Not really my code but a spaghetti code from a previous programmer. I think problems saving it to a previous version have to do with a few things:
    1) Memory - I have 1 GB of RAM and I am running XP. I notice the available RAM dropping quickly as it is saving and then it blow up.
    2) Long Filenames - The directory path of the original file is incorporated into the saved "previous version" of the code. While a good design, it does make the file/path a bit longer when saving
    3) One of teh things it saves is the drivers and their menus. This is due to the drivers being in a subdirectory of the original code and not in the c:\program files\national instruments\labview 8.5\instr.lib directory. I saw this when I tried to save the file as an LLB.
    4) If I work with smaller parts of the code without long paths, it saves fine.
    There probably are xcontrols, definitely typedefs, no LVOOP's or Classes. Hope you can do something with all this. It just seems that converting to a later version of the code should be reversable. Thanks.
    Michael

  • How to import a image in labview

    dear sir,
     how can i import a two bmp image into labview and compare it.... by taking one as reference and other as sample ...
    Solved!
    Go to Solution.

    Under the graphics and suond palette you will find two more palettes that handle imagews and the other image files.
    From those you can do a pixel by pixel comapre.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do we compare two images in labview?

    I have created a back end code which is comparing two images using LABVIEW.i have used a comparator and put a tolerance factor which will help me filter out almost same images.the problem i am facing is that on subtraction of the given two images i am getting a completely random output with noise surrounding the parts of the image which are being compared.Also the tolerance percentage i have given has not been working very effectively.Kindly let me know if there is an easier solution to my task or what needs to be done
    Thank you

    Can you post your code?
    Randall Pursley

  • Auto cleanup crashes LabVIEW (and VI isn't even that large)

    Hi,
    I'm trying to cleanup a VI, and whenever I hit auto cleanup LabVIEW crashes and when retsrated it doesn't even say it previously crashed. I narrowed down the problem location to a for loop. The wierd thing is that I went through all the wires and objects within the loop and did auto cleanup on them but it doesn't crash. So why when I do it on all combined does it crash?
    I wrote a comment in the loop that crashes to show which on it is.
    I'm on Windows 7 LabVIEW 2010.0f2 32bit
    I did see this posting http://digital.ni.com/public.nsf/allkb/599FB39777B​DB12486257514005B7293, but even when doing it manually as suggested it still crashes.
    Thanks,
    Matt
    Solved!
    Go to Solution.
    Attachments:
    Score Videos temp.vi ‏126 KB

    This crash corresponds to a known issue in LabVIEW (CAR #298911), which has been fixed in the forthcoming LabVIEW 2011 release. I have attached a copy of your cleaned up VI from 2011, saved for 2010. You might try to copy the block diagram into a new VI and see if that still crashes LabVIEW, but otherwise an upgrade to 2011 when it's available should clear up the problem. Hope that helps.
    John B.
    Embedded Networks R&D
    National Instruments
    Certified LabVIEW Developer
    Attachments:
    Score Videos temp-1.vi ‏104 KB

  • XYGraph Cursor legend bug instantly crashes LabView 2012

    Hi!
    I am just facing a very annoying bug.
    Please find my example VI attached, I would like to know wheather you can confirm the bug? Run the VI if you wish to see some curve (actually the bug appears even if you do not put any data on the graph, if you do, just the same) and after that try to click on the cursor legend vertical scrollbar to scroll up or down to see the cursor names.
    It instantly crashes my LabView 2012 Full version:  12.0.1f2 (32-bit). This XYGraph always crashes LabView... I cannot go on with my project, now I will just try to bypass the error, I will try to delete the cursors, and add them again...
    Anyhow, very strange and annoying behaviour...
    Anyone could repeat the same bug?
    Thanks for support!
    Solved!
    Go to Solution.
    Attachments:
    XYGraph_bug_test1.vi ‏149 KB

    hello,
    please find attached my example VI, where I would like to programmatically set the label position of a cursor. Why my code does create at every run a new cursor with the same name?
    thanks!
    Attachments:
    cursor_offset_label_via_propertynode.vi ‏12 KB

  • How to acquire images on labview 6.0 using matrox meteor card acquisition?

    i've a matrox meteor card acquisition , i want to display images on labview interface.

    Abdel,
    You can use third-party data acquisition boards with LabVIEW; you just cannot configure such boards using MAX. MAX support is just one of the integration advantages that you get when you use NI hardware and software in conjunction.
    LabVIEW can communicate with 3rd party hardware using the Call Library function found in the Advanced palette under the Functions Palette. If your hardware is provided with a driver-level DLL then LabVIEW can communicate with the hardware. However, you will need complete documentation of the DLL in order for you to create your own interface for the 3rd party hardware.
    Another option would be if the manufacturer of the hardware provided LabVIEW VIs that controls their hardware. You will not be able to use the National Inst
    ruments Data Acquisition (DAQ) VIs because those VIs use the NI-DAQ DLL, which is our driver-level software for our DAQ boards. Other companies use their own driver-level software to control their own hardware. Only National Instruments hardware uses the NI-DAQ driver which allows you to use the LabVIEW DAQ VIs.
    Zvezdana S.
    National Instruments

  • Generating signal as shown in the image in labview

    Hello,
    I am using labview 2011 and want to generate the second signal as shown in the attached image in labview as I want to use this as input  for implementing the adaptive filtering, if the first signal in the image represents the output of the adaptive filtering.
    Can I know how to generate second the signal.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    signal_generation.JPG ‏68 KB

    The filtered signal looks like a sawtooth wave with some possible frequency variation. Hard to tell, because it is still quite noisy. Even the clean signal is not very clean, even though it looks better than the original, which has barely any discerning features.
    PatanGova wrote:
    Can I know how to generate the required type of clean signal and also the kind of noise to be added to it to make the required signal.
    We cannot know the "requirements" by looking at the picture. What kind of instrument or data are you trying to simulate? You need to give us more background information.
    LabVIEW Champion . Do more with less code and in less time .

  • Simple Math VI crashes LabVIEW 2009 SP1

    Hi,
    We previously filed a related issue, (ref #: 7302858). The last problem was resolved by 
    Andy Hertzka from NI re-compiled the VI and send it back to us. That re-compilation solved the LabVIEW crashing.
    However, the interesting crash happens again.
    I attached a working VI before the change and a non working VI after the change and save. All the change I applied to the VI is
    1. Add the "Word bits" as a connector on the diagram
    2. Save it Then the VI begin to crash LabVIEW 2009 SP1.
    Before the change, the VI was functioning all right.
    Any idea why this might be happening? Can you try to recompile the non_working version and send it back to me for a try?
    Thanks,
    Tian
    Attachments:
    Non_working_AfterChange_RECOMPILED LRSample_U32in_U32output.vi ‏110 KB
    Working_B4Change_RECOMPILED LRSample_U32in_U32output.vi ‏110 KB

    Tian,
    Like Andy I was unable to see why this code is unstable on your machine. I am able to run the code fine on my computer without any problems. Looking at the code on the block diagram I do not see any major "crash worthy" issues with it. 
    I have resaved the VIs like Andy had in order to fix your issue. By the way what OS are you using, windows 7? It might be helpful to save the log file for the LabVIEW crash. You should get this option when LabVIEW is restarted. 
    <Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 
    Attachments:
    Non_working_AfterChange_RECOMPILED LRSample_U32in_U32output1.vi ‏108 KB
    Working_B4Change_RECOMPILED LRSample_U32in_U32output1.vi ‏108 KB

  • Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag?

    Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag in the browser window?

    After a little investigation, I discovered that PNGs also do not render correctly in IE7 in similar circumstances.
    I ended up using Levels in Photoshop to bring the output blacks up to "5", saved the images as PNGs, modified the HTML from .jpg to .png, and that seems to have covered up the problem well enough.
    By the way, I did confirm that IE8 beta 2 renders the images correctly.
    Brian

Maybe you are looking for