Array to Image at Video Rate

Hello,
I'm using Labview 2010 with SP1 (32-bit) on Windows 7 (64-bit) with NI-RIO 4.0 and a PCIe-7852R FPGA card. I've written a program for the FPGA card that acquires one line of an image (1024 values) from some custom hardware and puts the line into a target to host DMA FIFO. On the host I have a simple VI that reads all 1024 values from the FIFO. This happens continuously until the user presses a stop button. I'm getting one line, 1024 values, from the FIFO, about every millisecond but will eventually go faster. I would like to collect 1024 lines of 1024 elements per line and display it as an image. Using the obvious straight forward method I would concatenate 1024 arrays from the DMA FIFO and then update an Intensity Graph. Or, I would delete one line in an initialized 1024 by 1024 array, replace it with the line I've just acquired, and update the Intensity Graph after every line. Unfortunately employing either of these methods slows every thing down significantly. I've looked around for information about displaying data at video rate and have only found a couple threads that detail using the IMAQ package, which I have, to display from a camera that is supported by the IMAQ package. Unfortunately I am not using an off the shelf camera. How can I display array data as an image really fast? Any advice would be great.
Thanks.

The attached VI (LV2011) does about what you describe (I am using a U16 image as you did not mention what data type you were using).
Writing 1024 lines to the image takes ~65 ms on my dual-core, Windows XP, LV 2011 machine (not top of the line anymore by any stretch of the imagination).
Attachments:
Test Large Image.vi ‏40 KB

Similar Messages

  • How can I display three images in video rate succession (60 Hz)?

    For a structured illumination microscope application, I have developed a VI that creates three images and displays them in rapid succession (as fast as the loop will go) on a second monitor.
    From the naked eye it's pretty apparent that the loop is not displaying the images at video rate.  Is there a way (perhaps with some sort of buffer) to get them to display faster?  Is WinShow simply not going to be fast enough, and if not, what's an alternative method of displaying the images?  If it helps, the images need only be displayed once each (the loop was just for testing).
    Also, what is a way to measure the frame rate output of the images?
    (sorry for the sloppy code, new to LabView)
    Thanks,
    -T
    Attachments:
    illuminationpattern.vi ‏31 KB

    Hello,
    Why don't  you try drawing one window, call IMAQ WindShow once outside of the loop, then redraw that window each iteration within the loop.  Hopefully this stops the flutter of the window.  You can build a 3 element array of the 3 IMAQ images then use an index array to alternate through which image you want to be redrawn into the single window.  The constant calling of IMAQ WindShow seems messy.
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • Display images at video rate

    Hello
    I have NI PCI 1424 board and the NI PCI 1422 board. I a trying to acquire images from my custom imager and display them at a video rate. I am using IMAQ Acquire Grab as shown in one of the examples provided with LabVIEW. I am grabbing one frame at a time and looping infinitely so that I can get a continuous stream of frames. This is doing the job of displaying the images but I know I am not getting the full frame rate out of my sensor and it is tending to be rather slow (about 1-2 frames per second).
    I am sure there would be other ways to do this. I just do not know how.
    Any ideas?
    Thanks

    Hello Rami,
    I have modified the LL Ring example to include frame rate estimation and attached that with this email. You will need LabVIEW 7.1 to open this example. I hope this helps you out. Have a nice day!
    Regards,
    Nipun M
    Applications Engineer
    National Instruments
    Attachments:
    LL Ring with FrameRate.vi ‏123 KB

  • Load image and video dynamically...

    Hello. Can I make a "Browse..." button in a "Settings" slide (at the beginning of the presentation), to point my presentation to a certain photo (one photo) and video (one video) files from a HDD? I want to use those files in one of next slides... Thank You!

    I was able to create a file with 2 buttons that will upload image and video separatly and it works fine.
    But what I want is there is a 3rd button for submitting the selected files, right now the files are uploaded as soon they are selected and the browse window is closed..
    How do I get to upload the selected files only when the SUBMIT button is clicked. Please help.
    var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
    // Assign the document types filter
    var videoTypes:FileFilter = new FileFilter("Flash Movies (*.avi, *.flv, *.mov, *.swf)", "*.swf");
    // Add both filter types to an array
    var imgTypes:Array = new Array(imageTypes);
    var vdoTypes:Array = new Array(videoTypes);
    upload_image.addEventListener(MouseEvent.CLICK, browseImage);
    upload_vdo.addEventListener(MouseEvent.CLICK, browseVdo);
    var fileRefList:FileReferenceList = new FileReferenceList();
    function browseImage(event:MouseEvent):void {
        fileRefList.browse(imgTypes);
        fileRefList.addEventListener(Event.SELECT, selectHandler);
    function browseVdo(event:MouseEvent):void {
        fileRefList.browse(vdoTypes);
        fileRefList.addEventListener(Event.SELECT, selectHandler);
    function selectHandler(event:Event):void
        var request:URLRequest = new URLRequest("fileUploadScript.php");
        var file:FileReference;
        var files:FileReferenceList = FileReferenceList(event.target);
        var selectedFileArray:Array = files.fileList;
        for (var i:uint = 0; i < selectedFileArray.length; i++)
            file = FileReference(selectedFileArray[i]);
            file.addEventListener(Event.COMPLETE, completeHandler);
            try
                file.upload(request);
            catch (error:Error)
                trace("Unable to upload files.");
    function completeHandler(event:Event):void
        trace("uploaded");

  • How do i blend image and video on premier?

    Hello Everyone
    I'm trying to add a video onto an image on Premier. I want the image to be still and the video to play in the background. How do I make an image and video blend together in Premier?
    Any tips/effects to make this look more interesting? for my project I'm trying to add a disturbing footage from the news onto a landscape photograph.
    I'm using pro 5 on an Imac
    Thanks in advance

    Video on track one.  Image on track two.  Use the motion property to locate and size the image.

  • How can I convert an array to image(8bit)

    I can convert an array(acquire from usb camera)to a picture,but not images(8 bit grayscale),how can I do it.many thanks!
    Attachments:
    array to image.vi ‏249 KB

    Sorry, this is the kind of thing that happens when you have been out for too long.
    Message Edité par chilly charly le 10-22-2006 11:09 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    array%20to%20image[1].png ‏3 KB

  • Please help - I can not create large arrays of images (no more than 108 elements)

    Hello,
    I am working in an application where i acquire 300 high resolution images (3Mp) and then i process each of those frames.
    When i try to put alll those frames in one array of images, the system does not let me more than 108 elements. There is no such message like out of memory or memory error. It is just that when i visualize the array of images, there are good frames the first 108 elements, and then white frames the rest of the elements.
    Ideallically i would prefer to process frames as i am acquiring them, but i am concerned about the remaining processing time for the rest of the tasks.
    Then, as an alternative, I have tried to store frames in two shorter arrays, and i ended up observing that when the first array (say 50 elements) is full and the second array starts (another 50 elements for example), labview needs a certain time in the the middle (like three seconds between closing first array and starting acquiring on the second array). If i dont wait that time between arrays, both arrays contain the same information. I know, this is weird, and i know about the fact of passing information by reference on imaq images. 
    The most interesting thing is that when i reduce considerably the resolution of the image (say that now, instead 3Mp they are 2Mp), the maximum number of elements on the arrays are exactly the same: 108, so this makes me wonder if it is a memory constrain. And the code is fairly simple, there is no way that i am cutting the acquisition at the number 108.
    So my question is, How can i put 300 frames in one just one array? or How can eliminate the time i have to wait between arrays?
    I have heard about memory allocation and so, but i am not sure how to proceed. I have windows 7.
    Thanks in advance,
    Roberto

    It's hard to visualize.  Please post the code - or at least a shell representing your code - so we can see what is happening.  Are you sure you are getting 108 contiguous pictures, or are some aquisitions being skipped?  Is the first picture in the array the first aqcuisition?  Is the last picture the last acquisition?
    I really don't think it is about memory allocation.  I think it could be about your method of acquiring and processing said acquisitions.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Tried to reinstall iPhoto library from external hard drive, it shows that the photos and events are there but there are no thumbnails and if you click on an image or video nothing comes up.

    My hard drive crashed recently and we took it to apple to get repaired. The apple employees said that they would have to replace the hard drive but they didn't have the equipment to get the data off my hard drive. So I took it to a computer store who had the right equipment after a month and a half of waiting they finally got all the data off my hard drive and put it on an external hard drive (Seagate Expansion Portable Drive). I then took it back to apple who replaced the hard drive. Now I'm in the process of reinstalling everything. I have never done a Time Machine back up or backed my laptop up to . Which I now will do very often once I've reinstalled everything. I have reinstalled all of my desktop images and folders as well as my iTunes library with no issues. However when i went to reinstall my iPhoto library it came up blank. I then Rebuilt the library several times and this was the result.
    It shows that the photos and events are there but there are no thumbnails and if you click on an image or video nothing comes up.
    Please help i have three years worth of images from holidays on here and would be devastated if i lost them.

    iPhoto cannot find the thumbnails or the original pictures.
    Go to your iPhoto Library in the Pictures Folder.
    Right-click on it and from the resulting menu, choose 'Show Package Contents'.
    This will bring you inside the iPhoto Library package. There you should see a Folder called Masters. Within that, there should be folder containing your actual photos.
    Are they there?

  • I can't open images or videos on my external hard drive

    hello everyone, I've been having this problem for a while now and its only with images and videos .
    when i try to open any picture or video this msg comes up "The file couldn’t be opened because there is no such file"
    and i can only open it if i copied the file from my hard drive to my computer .
    when i open the info for the same picture (one in on the hard drive and one my computer) the one on the hard drive has nothing under "more info"
    while the one on my computer has a lot of details under "more info" .
    plz i really need someone to help me

    only with images and videos.
    yes its the "More Info" section of a finder Get Info window.
    this is the Get Info window for the drive itself
    its WD external drive 320 GB
    this is the Get Info windows of one of the pictures
    thank you so much . i will try both smc and pram reset  and i'll let you know what happend.

  • How do you make an array of image icons and then call them?

    How do you make an array of image icons and then call them, i have searched all over the internet for making an array of icons, but i have
    found nothing. Below is my attempt at making an array of icons, but i cant seem to make it work. Basically, i want the image to match the value of the roll of the dice (rollVal)
    Any help would be greatly appreciated, some code or link to tuturial, ect.
    /** DiceRoller.java
    * Roll, print, Gui
    import javax.swing.*;
    public class DiceRoller extends JFrame
         private ImageIcon[] image  ;
         public String[] images = { "empty", "dice1.jpg",
                   "dice2.jpg", "dice3.jpg", "dice4.jpg",
                   "dice5.jpg", "dice6.jpg" };
         public Dice die;
         private int rollVal;
         public int rollNum;
         private JLabel j1;
         public DiceRoller(){
              j1= new JLabel("");
           die =new Dice();
           int rollVal;
           rollVal = die.roll();     
           image = new  ImageIcon[images.length];
         for(int i = 0; i < images.length; i++){
          image[i] = new ImageIcon(images);
         if (image!=null){
              j1.setIcon(image[rollVal]);
         System.out.println("Roll = "+die.roll());

    Demo:
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class IconExample {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    launch();
        static void launch() {
            try {
                Icon[] icons = new Icon[6];
                for(int i=0; i<icons.length; ++i) {
                    String url = "http://www.eureka-puzzle.be/cast/images/dice" + (i + 1) + ".jpg";
                    icons[i] = new ImageIcon(new URL(url));
                display(icons);
            } catch (MalformedURLException e) {
                throw new RuntimeException(e);
        static void display(Icon[] icons) {
            JPanel cp = new JPanel();
            for(Icon icon : icons) {
                cp.add(new JLabel(icon));
            JFrame f = new JFrame();
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Just bought a 2tb external hard drive with the intention of moving my iPhoto data files on it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app? Do I need to point iPhoto to this new location?

    Just bought a 2tb external hard drive with the intention of moving my iPhoto data files to it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app?
    Do I need to point iPhoto to this new location?
    Thanks!

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    Assuming a Managed Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Resized images and video seam blurred in motion 4...

    Hello,
    I don't know if my problem is a bug or a stupid mistake I did, or something basic I haven't understood about motion, but here it is:
    I had to edit today a project I created in september 2009 with motion 3. (I installed 2 weeks ago motion 4). The project is made of images and text. When I opened the old project the images looked ok but seamed blurred although the render settings are at best quality.
    I then made an experiment and created a new project in Motion 4 and imported one image, and when I put the quality at best, again this image look unfocused. I would probably not have noticed the problem and thought that the problem comes from the image or from the capabilities of motion, if I didn't have that old video done in motion 3 with the exact same images in the exact same size in perfect crisp quality...
    I did a research in forums, but haven't found any one with a similar problem. People usually have pixelated images because they didn't put the best render quality...
    I then tried to test this on a different computer with motion 4: same problem. I tried all the settings I could find in Motion, but still no result. I trash the preferences, I repaired the permission of my mac, I reinstalled motion 4, tried several images format and size but still no result.
    I noticed that the problem occurs when I resize an image or when I resize a video. At 100% I get perfect quality, but when I resize them, they look blurred. Anything that requires a render seam to be a little blurred when the render quality is set to best. It seams like the anti-aliasing is working so well that it blurs everything... If I put the quality at normal settings, the elements that have been resized look sharp but pixelated...
    I haven't tried to test all this again in motion 3 because I don't have access to any computer that still have that version installed. And I haven't phoned applecare yet because they are closed right now in my country, but I will phone them tomorrow morning and let you know if I get any result with them.
    I really hope I simply forgot something obvious, or maybe there is a new or old setting in motion 4 that I don't know about or haven't understood properly...
    please help me
    Louie
    ps: My version of Motion is French, so I might not use the right english words used in the english version of Motion.

    Thanks for responding.
    I'm of course sizing my picture down. The project I was working on yesterday that helped me notice the problem is 300x300 pixels and the images are around 500x1000 pixels, scaled down to around 20%.
    I haven't notice today that the problem occurs in other project as well. Before I was not looking in detail at the quality, and if no one tells you about it, you won't notice it. But right now all my old projects done in Motion 3, once opened in Motion 4 seam to have that blurry effect on any image or video that is scaled down.
    I understand that Motion might maybe not be very good at scale down things, and might do it less perfetly then Photoshop. But what is odd is that all my old video exported when I had Motion 3 have sharp perfect scaled down images comparred to what I get today in Motion 4.
    The blur I'm speaking about is very light. You won't notice it easily unless you have an old version of the same video to compare it with. But in the project I was working yesterday at 300x300 pixel, the difference was really very obvious, because at this size every detail counts.
    My idea to solve my problem temporarly was to change my Motion project settings to triple its original size (from 300x300 to 900x900) and blow up everthing 300%, export the video at 900x900 and then scale it down through Quicktime instead of Motion at 300x300. This worked and my images are as sharp as they should be. This project is short and light, so I didn't mind doing this conversion, but when I will work with projects that need more render time, it's not a productiv way to work!
    I noticed another odd thing about the problem, I hope I will explain this clearly by describing 3 situations:
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is still blurred, it is difficult to see, but when I import again the same image and put it next to it you can see a difference althought both image are at 100%!!!
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I click on the arrow in the top right corner of that reverts to the original settings the image or video
    => the image is perfect
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by typing any number in the properties inspector (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is perfect
    So it seams that my problem occurs even at 100% but only if the image has first been modified in its size by pulling one corner and than put back to 100% through the properties inspector...
    hmmmm
    very odd.
    Louie
    Message was edited by: Louie13

  • Images and video not loading after bridge

    Hi guys. I followed this guide to put the NVG589 into bridge/passthough mode so I can use my Netgear N600 WNDR3700v2 router. Everything seems to be working fine, except with Facebook, Youtube and a few other sites. Images and video take forever to load (if at all). Everything I have read online suggests either changing to the Google DNS or turning IPv6 off. I am already using Google DNS and I already had IPv6 turned off on the Netgear. I have now turned IPv6 off in the NVG589 as well, yet the problem persists. As we have 30 days to test run AT&T interent, I still have my cable interent active (Suddenlink), so I can plug in the cable modem (SB6121), and everthing loads quickly on Facebook and Youtube. I plug in the NVG589, still not loading...so it's defintley something to do with the settings in the NVG589. Any idea? Thanks in advance.

    Hi ,
    I am sorry about the issues you are having with your U-verse service loading certain sites, but I will be glad to help. Are you having issues when it is not in bridge mode? Try resetting the U-verse gateway, and just connecting your Netgear to see if you are having the same problem. If so, try doing a direct connection to the gateway without the Netgear to see if the problem still persists.
    Let us know how it goes.
    -David T

  • HT5148 i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear. how do i get my video to play clear.

    i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear again. how do i get my video to play clear and not fuzzy?

    Same reply.

  • Array to Image Inconsiten​cy

    Hello, 
       I am using labview 10.0 to take images over time and then recording pixel values.  The camera I am using produces a U8 array and I have 2 methods for getting the data:
    1.  I use the labview array tools to select a subset of the U8 array and save it as a txt file.
    2.  I use the arraytoimage VI to convert the output to tiffs which I can then use another program to take line profiles of.
    In theory these two methods should give the same answer, but they don't.  I have attached a VI with the two methods and a picture of the VI comparison.  I have also attached a graph of the signal comparing the two methods.
    In theory the two curves should look the same as they are the exact same pixel, the only difference is that one is straight from the array, and the other was converted to Tiff and then reconverted to an array with Origin 8.  This makes me believe that something is messing up with the array to image conversion, or the saving to a Tiff.  I tried jpg, but that is even worse as jpg has compression.
    If anyone knows how to fix this it would be greatly appreciated.
    Attachments:
    MethodComp.vi ‏12 KB
    MethodComp.JPG ‏34 KB
    MethodCompSignal.jpg ‏1945 KB

    Are you sure that the two different calls to your get image VI are retrieving exactly the same data?
    Try using a single call and branch the data to the two different methods.

Maybe you are looking for

  • Sharepoint foundation 2013 collaboration - for a VERY small workgroup. Right choice???

    Hi! Let me start with a short background: I've developed an ASP.Net application which currently uses Apache Solr for search and retrieval operations and for that purpose it works well. However, the users of this application has started to ask for fac

  • Update Command is not working.

    Hi,      There are 15 fields in the database table. The first 5 fields are set as primary keys. In the table, only the first field has got unique values. In the next 4 primary keys the values are getting repeated. Now, i am trying to modify the 10th

  • EJB QL Syntax

    Hello Can anyone help me with the EJB QL syntax for a find method (findByGroup(GroupLocal group)). I've got "select distinct object(e) from Employee e, in (e.group) as g where g=?1" and when I verify I get the error "Error: [ select distinct object(e

  • Built in isight - how to activate in chat rooms

    Hi. I'm a new MacbookPro user and am pretty new to using isight. It works in Yahoo ok. Mac version of MSN does not seem to have provision for webcam and I can't activate the camera in chat rooms with webcam facility. Any ideas?

  • Why am i getting hyperlinks without using a /a tags?

    Im using Dreamwever6 and im very new at this. I have code showing up as a link when i preview it but there is no anchor tag set for a link.  I've previewed in Safari, Fire Fox, and Chrome.  I've included the html below.  The lines that display incore