How do I copy a block of memory (image) in LV array

Hi,
I need to read and copy image data from memory to LV array. I use HWaccess VI (read a byte) but the loop time is too long, is there any solution with specific DLL which realise a total copy in LV array ?
Thanks
Francois.
My system: P4/Win2000/LV 6.0/IMACVISION

If you just want to copy an IMAQ Image into a 2D array, I recommend using the IMAQ ImageToArray.vi.
If you have NI Vision installed, then you could also use the IMAQ GetImagePixelPtr.vi to return the memory location of the first pixel and reference the rest from there.
Kyle V
Applications Engineer
National Instruments
www.ni.com/ask

Similar Messages

  • How can i copy line with text and image to ms word

    When I insert an image in textflow using InlineGraphicElement it works, but when I copy the line with the image to MS Word it copies only the text (not the image).
    How can i copy the image to MS Word?

    If you want copy formatted text and image to MS Word, you need to give MS Word rtf markup, because Word can recognize rtf markup but not TLF markup.
    So you need to create a custom clipboard to paste a rtf markup. It's a large feature for you, because you need a tlf-rtf converter in your custom clipboard.
    TLF Custom Clipboard Example:
    package
        import flash.display.Sprite;
        import flash.desktop.ClipboardFormats;
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.conversion.ITextImporter;
        import flashx.textLayout.conversion.TextConverter;
        import flashx.textLayout.edit.EditManager;
        import flashx.textLayout.elements.*;
        import flashx.undo.UndoManager;
        // Example code to install a custom clipboard format. This one installs at the front of the list (overriding all later formats)
        // and adds a handler for plain text that strips out all consonants (everything except aeiou).
        public class CustomClipboardFormat extends Sprite
            public function CustomClipboardFormat()
                var textFlow:TextFlow = setup();
                TextConverter.addFormatAt(0, "vowelsOnly_extraList", VowelsOnlyImporter, AdditionalListExporter, "air:text" /* it's a converter for cliboard */);
            private const markup:String = '<TextFlow whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008"><p><span color=\"0x00ff00\">Anything you paste will have all consonants removed.</span></p></TextFlow>';
            private function setup():TextFlow
                var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_LAYOUT_FORMAT);
                var textFlow:TextFlow = importer.importToFlow(markup);
                textFlow.flowComposer.addController(new ContainerController(this,500,200));
                textFlow.interactionManager = new EditManager(new UndoManager());
                textFlow.flowComposer.updateAllControllers();
                return textFlow;
    import flashx.textLayout.conversion.ITextExporter;
    import flashx.textLayout.conversion.ConverterBase;
    import flashx.textLayout.conversion.ITextImporter;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.IConfiguration;
    import flashx.textLayout.elements.TextFlow;
    class VowelsOnlyImporter extends ConverterBase implements ITextImporter
        protected var _config:IConfiguration = null;
        /** Constructor */
        public function VowelsOnlyImporter()
            super();
        public function importToFlow(source:Object):TextFlow
            if (source is String)
                var firstChar:String = (source as String).charAt(0);
                firstChar = firstChar.toLowerCase();
                // This filter only applies if the first character is a vowel
                if (firstChar == 'a' || firstChar == 'i' || firstChar == 'e' || firstChar == 'o' || firstChar == 'u')
                    var pattern:RegExp = /([b-df-hj-np-tv-z])*/g;
                    source = source.replace(pattern, "");
                    var importer:ITextImporter = TextConverter.getImporter(TextConverter.PLAIN_TEXT_FORMAT);
                    importer.useClipboardAnnotations = this.useClipboardAnnotations;
                    importer.configuration = _config;
                    return importer.importToFlow(source);
            return null;
        public function get configuration():IConfiguration
            return _config;
        public function set configuration(value:IConfiguration):void
            _config = value;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.ListElement;
    import flashx.textLayout.elements.ListItemElement;
    class AdditionalListExporter extends ConverterBase implements ITextExporter
        /** Constructor */
        public function AdditionalListExporter()   
            super();
        public function export(source:TextFlow, conversionType:String):Object
            if (source is TextFlow)
                source.getChildAt(source.numChildren - 1).setStyle(MERGE_TO_NEXT_ON_PASTE, false);
                var list:ListElement = new ListElement();
                var item1:ListItemElement = new ListItemElement();
                var item2:ListItemElement = new ListItemElement();
                var para1:ParagraphElement = new ParagraphElement();
                var para2:ParagraphElement = new ParagraphElement();
                var span1:SpanElement = new SpanElement();
                span1.text = "ab";
                var span2:SpanElement = new SpanElement();
                span2.text = "cd";
                list.addChild(item1);
                list.addChild(item2);
                item1.addChild(para1);
                para1.addChild(span1);
                item2.addChild(para2);
                para2.addChild(span2);
                source.addChild(list);
                var exporter:ITextExporter = TextConverter.getExporter(TextConverter.TEXT_LAYOUT_FORMAT);
                exporter.useClipboardAnnotations = this.useClipboardAnnotations;
                return exporter.export(source, conversionType);   
            return null;

  • How can I copy GPS information from one image to another?

    I bought a Canon S100 specifically for its GPs and movie capability.  On a recent vacation, I used the S100 and a Nikon D300.  In cases where images were taken with both cameras in approximately the same place, I would like to copy the GPS information from the S100 CR2 files to the D300 NEF files.  Does anyone know how to do this or if there is any plugins that will do it?

    The added benefit of using GeoSetter to copy the information from one photo to another, is that you can see where every already-tagged photo is on a Google map to make sure the location is actually correct.  Sometimes the camera clock is off a few seconds or minutes and you can easily figure how what offset to use by watching where the existing photos show on the map.
    Using the MS Pro Photo Tools to generate a track from the existing S100 photos and then using that track in GeoSetter to assign the rest, with interpolation enabled, seems like the best course of action if the S100 track information is no longer available.
    When using an external program to Geotag images that are already in LR, to be safe you should first save all the metadata to XMP files in the folder you’re going to tag, then exit LR, then geotag the photos, then restart LR and read information from all the XMP files.
    Another benefit of GeoSetter is that you can assign the locality information to the photos that already have just coordinates in them.

  • How can I copy develop settings on multiple images from one folder to another?

    I have a bunch of Fuji X-T1 raw images that I have converted to DNG form. Once Lightroom supports X-T1 raw images directly, I would like to replace the DNG files by the corresponding raw files (which I have saved) without having to redo all of my edits.
    I've tried an experiment with a NEF file, which Lightroom supports: If I convert it to a DNG file, import the DNG file, then replace the DNG file with the corresponding NEF file, Lightroom still thinks the file is named DNG. This behavior makes me nervous.
    So what I would like to do is to import all of the Fuji raw files, then transfer the develop settings from each DNG file to the corresponding raw file, then finally archive and delete the DNG files.
    Is there any way to do this other than by hand? That is, if I have a folder with a few hundred DNG files, is there any way to tell Lightroom to take the develop settings of every file in the folder and transfer them to the correspondingly named file in the folder of raw files?
    If not, can someone suggest to me a way of accomplishing this that does not involve copying and pasting the data for every image by hand?

    The Syncomatic plugin is designed for thus type of task to - see http://photographers-toolbox.com/products/jbeardsworth/syncomatic/

  • How can i copy and past music files, Images and Videos to my Apple Iphone?

    I have a new Iphone 4 mobile phone. Any one can  help me  for how can i stote music,videos and images files in My Iphone?
    When i search on internet i saw icloud and itunes. Is there any net connection requered to use icloud or itunes? Without net connect how can i store my files in my apple phone?

    Prabakhar,
    First, please verify that you mean CDDA and not CDA.  CDA is not an audio format.
    CDDA is pretty much the "raw" format of an audio CD.  It is extremely unusual to have it as a separate file.  If you still have the original CD that it came from, re-rip the CD using this document.  (Edit added.  I meant to add the link to this document:  http://support.apple.com/kb/PH12486  )
    Otherwise, a web search will turn up converters that can process a CDDA file, although I have not used them.
    Message was edited by: ed2345

  • How to make mouse click event to display image on 2D array?

    Hi! beginner programmer here looking for some guidance, hints and tips.
    I'm making a game of "Connect 4" and using a 2D array to display the board which is 7x6 in size.
    What i want to do is that when the player clicks on one of the squares, one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array and check if the square in the first row is empty and if true, places/display
    the game piece, else it places the piece on the first empty square.
    Since i've never worked with WinForms or 2d arrays before i'm not sure how to initiate it.
    What i was considering in pseudocode was:
    pb_Mouseclick(object sender, MouseEventArgs e)
    if(e.Button==MouseButtons.Left)
    Picturebox pb=(Picturebox)sender;
    clickLocation.X= e.Location.X + pb.Location.X, pieceArray[row];
    clickLocation.Y=e.Location.Y + pb.Location.Y, pieceArray[col];
    if(pieceArray[row, col] == null)
    if(player1.IsStarter==true) selectedimage(@"yellow.png")
    else
    selectedimage(@"red.png")
    else {
    bool empty= false;
    for(int row=0; row<height - 1; row++)
    for(int col=0; col<width; col++)
    if(pieceArray[row, col] ==null)
    empty=true;
    (Add gamepiece)
    This is what i've come up with so far, but it's just some theorycrafting, not sure if i should use a while-loop instead...
    Hope anyone can give me some insight on how to make it work and if the logic of my pseudocode is correct for what i want according to my earlier explanation.
    Many thanks in advance!
    Regards
    Gabbelino
    Student at the University of Borås, Sweden

    Hi Gabbelino,
    I could not understand your game rule clearly, and could you make explanation for me?
    1.>> when the player clicks on one of the squares
    What were the squares? Did it like dice or anything else?
    2.>> one of the 2 game pieces(red.png or yellow.png) will appear on the respective coordinates of the 2D array
    What is the 2 game pieces? Could you show us the two pictures?
    3.>> check if the square in the first row is empty and if true, places/display the game piece, else it places the piece on the first empty square
    Could you show us where places/display the game piece?
    Best Regards,
    Tony
    Help each other

  • How do I copy layers from one image to another?

    I am editing figures for a journal and I need arrows for multiple images.  Is there a standard arrow?  I can only see free hand.  If I use a free hand arrow I then want to copy it to the other images for consistency.  How do I copy or share layers between images?

    There are many arrows in the shape tool, or you can set the line tool to have an arrowhead in the tool options. You can copy/paste layers from one image to another, or drag a layer from the layers panel into the main image window of another image and then use the move tool to position it. You can also drag into the thumbnail in the photo bin, but you'll still need to bring the image up to adjust the positioning.

  • How do i copy a photo from iPhoto to a memory stick?, how do i copy a photo from iPhoto to a memory stick?

    how do i copy a photo from iphoto to a memory stick?

    Same as to any storage device - select the photo(s) and export (file menu ==> export) to a desktop folder making the appropriate selections from the export dialogue then drag that folder to the storage device
    LN

  • How can I copy photos from the iphoto to my flash memory

    How can I copy photos from my iPhoto to the flash memory?  I had tried to drag the photos from the iphoto libraty to the flash memory but failed.

    Select the photo(s) and export (file menu ==> export) to a desktop folder and drag that folder to the flash memory
    LN

  • HT1751 How can I copy a play list to a memory stick

    How can I copy a play list to a memory stick

    Yes, in preferences set up your import settings, then right click on the tracks you need in a different format and use Create < Format> Version. New copies will be created in the target format.
    tt2

  • How to discard blocks from memory ?

    Hi,
    How to discard blocks from memory ?
    Thank you.

    To add to what has already been posted. The full Oracle version should be included on all posts since many features and most bugs are version dependend.
    Oracle will flush dirty blocks from the buffer cache and overlay unchanged blocks as needed to fit new requests to the buffer cache. It also reuses space in the shared pool so the question of which blocks you want to flush from memory and why can be important to getting the most appropriate answer to your questions.
    On a production instance it should be unnecessary to manually flush either the buffer cache or shared pool as a normal part of opertations.
    HTH -- Mark D Powell --

  • How do I copy SMS messages from phone to memory ca...

    After I change the option of saving the messages from phone memory to memory card on my E90, I don't see any of the messages stored on the previous choice in INBOX. This is ok, I understood this.. But.. How do I copy the messages from phone memory to memory card for example ? Reply pls..

    I think I kind of solved this issue.. Try doing this. Copy all files from memory card to a back-up folder in your PC, after connecting the phone to the PC via 'Data Transfer Mode', by clicking CTRL+A while in Memory Card in Windows Explorer. (Doing this, you will also copy the hidden files, if you haven't clicked the option to view hidden files and folders in Windows Explorer). Afterwards, format the memory card via phone, or simply CTRL+A + Delete from explorer to fully erase the microSD card. In phone, messages, in other settings, choose phone memory to store SMS messages, and then.. tell a friend to send you an SMS message, or simply send one to yourself. After receiving the message, go back to settings->Other, save sms messages to:, choose Memory Card, and the phone should ask you, whether to move or not the original messages. If you choose to move them, and NOT to save the original messages, entire messages from phone should move to the memory card. (If you would have chosen to save the original messages, the mesages that you move, would STILL BE in the phone memory.) If you want to do this again, to move them from memory card back to phone memory, change the memory to save sms messages (and if at first you have chosen NOT to save original messages, the phone should 'ask' you again for the same question.)
    And, btw, if you're probably curious.. (as I was ) where the messages were saved, in memory card, after the first time you copy the messages to memory card, check the memory card via 'Data Transfer' mode on your PC's Windows Explorer. I found them in the 'private' folder somewhere.. There should be a mail and mail2 folder there.. Also, the phone browsers, FExplorer, and Y-Browser won't be able to access the private folder. (For security reasons, bleah )
    Afterwards you can copy all software folders, images, music files, documents, etc. from the backed-up memory card folder you created at the first steps, since we all know E90 is a smart cutie, and will automatically detect all files, software, etc., after you copy-paste them.
    Cheers, hope this helps
    Message Edited by cybercreep on 02-May-2008 12:46 PM

  • Hi, how do I copy a movie that I downloaded, onto my memory stick that is in my usb connection?

    Hi there, how do I copy a movie that I downloaded onto my memory stick that is plugged into my usb connection?

    Goto finder, you'll see your usb in there. Then open another finder window, locate the file, and just drag the movie onto your memory stick.
    Really easy =)
    @shldr2thewheel, it would have been far easier if you just answered the question. He didn't state the name of it, nor where he downloaded it from. Clearly your making an assumption that it was illegaly downloaded.

  • Can you prevent a block of memory from being swapped?

    I'm wondering if there's a way to "lock" a section of memory in Java so that it will not be written out to the swap file by the OS.
    Let's say you're writing a client application that will connect to a server, and allow the user (after authentication, of course) to download sensitive information to the client machine and view it. Because the client machine may be in an unsecure environment (i.e. public library terminal, cybercafe, etc), it is desirable to ensure that no trace of the information remains, even in the swap file. The data in question is largely text, so it wouldn't be more than a few hundred KB, therefore I can't imagine it would be a problem to reserve this memory (i.e. it's not like we're starving out other applications running on the same client machine by reserving ALL physical memory).
    Basically I'm looking for something in the API that lets me say to the OS: "don't swap out this block of memory, no matter what". Is there a way to do this?
    I found this in the bug database but it doesn't sound entirely like what I'm looking for (and it's marked as "will not fix" anyway):
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4852696

    The simple answer is "no".
    This is a valid concern about the use of crypto libraries in Java.
    Because Java has garbage collection, and can copy anything to any memory region during garbage collection, in practice the crypto library writers choose not to bother about non-swapped memory.
    Implementing non-swapped memory in some operating systems like Windows is not a simple task: I believe that in Windows you need to write a device driver and a Windows Service, like the "Protected Storage Service" that you can find in Windows. The "Protected Storage" is not very used in Windows - it implements only the CryptEncryptData and CryptDecryptData APIs. The real crypto work is done in normal memory, if you check the CryptoAPI Providers that come with Windows.

  • How to enable copy and paste in Firefox

    I have tried over and over and over and I CANNOT FOR THE LIFE OF ME figure out how to configure Firefox to allow me to copy and paste. I've downloaded EVER SINGLE EXTENSION YOU HAVE and some I found online!!!! HOW DO I COPY AND PASTE??? And please don't be a smart aleck and tell me to right click..I tried that. I've tried everything it's not working...

    If right-clicking doesn't work, it could indicate that the site is intercepting and blocking Firefox's regular context menu. Some sites are cheeky and show you a copyright notice when you right-click.
    You can change a setting so that you always get Firefox's right-click context menu. If the site has its own menu, Firefox's will appear in front of it. To access the site's menu after making this change, you have to carefully dismiss Firefox's menu with a single press of the Esc key. (I think I've only seen one site where ''both'' menus disappear when I press Esc, so it nearly always works.)
    Want to try it?
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''context''' and pause while the list is filtered
    (3) Double-click the '''dom.event.contextmenu.enabled''' preference to switch it from true (sites can detect and re-place the right-click menu) to false (they can't).
    Does that help?

Maybe you are looking for