How can I search and return several items from the table quickly (like Matlab find)?

Hi, I'm a pretty experienced Labview programmer, and I've always wondered if there is a way to quickly search for pictures on several items that meet the selection criteria, equivalent to the Matlab find command.  While my inability to do in Labview has always annoyed me, I now have an application that requires this capability and I need to find a solution.

Is the fastest way I've found to do this in labview to perform comparisons on the data vectors, then use the Boolean value that results from vector to analyze the table using a loop and shift registers.  I enclose an extract vi a analysis comparative vi to one of the simple searches that I need to do.  On my laptop, this research takes about 600 ms.  In comparison, the equivalent in Matlab:

newArray=oldArray(find(oldArray(:,4)./oldArray(:,2)>1.5),;

runs in about 1.2ms.  So, the way I am doing this in Labview is only 400 times slower

Needless to say, I need to make these types of research many times, and these additional 599 ms start to add up pretty quickly!

Thanks for your help,

Aaron

Hi Aaron,

the slow part is probably "build group" of the node in the loop.

Try this:

Define an array the same size as the input data (or simply uses a copy of it) and the wire that to the shift register. Keep a counter of lines found in the loop. Use IndexArray and ReplaceArraySubset for the loop to move rows found at the beginning of the table (overwrite the 'bad' lines). After the loop simply ReshapeArray the number of found lines...

Sorry, don't have LV (2009) on hand for editing your snippet.

Tags: NI Software

Similar Questions

  • I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the trial please my

    I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the Marie trial please

    Go to Photoshop forum

  • How can I copy and paste a page in the same DC Adobe .pdf?

    How can I copy and paste a page in the same DC Adobe .pdf?

    Open the Page thumbnails. You can select the pages and then drag the pages. When you hold down the CTRL key you can copy pages.

  • I use CS5.1 and installed a new hard drive. during the migration, PS now will not work. How can I reinstall? installation initial performed from the internet, no discs.

    I use CS5.1 and installed a new hard drive. during the migration, PS now will not work. How can I reinstall? installation initial performed from the internet, no discs.

    Download the CS5 products

  • How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro?

    I have 2 sony camera popular with the AVCHD file structure. The two cameras are the same. How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0


    Now I see the date taken in the import screen until I click "ingest". When in the trash, this option is there, but no metadata in there. It is therefore impossible to import images from two cameras and have these sorted.


    How can I get this sorted out before, so I can export for the first?

    Thank you. Tom van den Dool

    Hi Tom,

    How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0.

    Sorry, you can not do as a prelude. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • How can I make and delete a snapshot of the command line in ESXi 4?

    How can I make and delete a snapshot of the command line in ESXi 4?  ghettoVCB4i does, but I need unusual behaviour for two virtual machines.  I need to be able to save only one of the two virtual drives, not both.  So I can't use this script here.  I need to write a script that will:

    1 copy off the .vmx

    2 make a snapshot of a virtual computer running

    3 use the vmkfstools command to clone the vmdk in the backup location

    4 remove the snapshot.

    The snapshot is the part that I do not know how.  I do not see a flash drive in vmkfstools and I do not understand the snapshot code in ghettoVCB4i.

    Thank you!

    vmkfstools is a tool for working with VMDK, has nothing to do with stereotypes. In the Busybox unsupported console, the only tool that you can use for some of the management of the virtual computer is vim-cmd , which is about a wrapper for VMware vimsh, take a look at our site for more information: http://engr.ucsb.edu/~duonglt/vmware/#vmware_vimsh

    Basically, you're going to do something like the following:

    vim-cmd "vmsvc/snapshot.create XXXX FIRST_SNAPSHOT MY_FIRST_SNAPSHOT_1"
    

    where XXXX is VmId to the virtual machine that is retrieved from vmsvc/getallvms, then you are going to deliver the snapshot.remove

    Here are some other useful commands dealing with snapshots:

    Vim - cmd vmsvc/snapshot.removeall \[VmId]

    [[[vim - cmd vmsvc/snapshot.remove \[VmId\] \[removeChildren\] \[snapshotLevel\] \[snapshotIndex\]

    Vim - cmd vmsvc/snapshot.get \[VmId\]

    ghettoVCB4i uses vimsh to do these things as well.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How can I get WIndows8 TouchSmart to boot from the recovery disc

    How can I get WIndows8 TouchSmart to boot from the recovery disc? With the recovery in the drive disk when I do a reboot or stop and start it does not read anything from the DVD player. My computer is a HP TouchSmart 23-D160QD.

    @AirForce9731,

    You may need to change the boot order to boot from the DVD drive first.  The steps to do this are in the document below.

    http://support.HP.com/us-en/document/c00364979

    These are recovery disks made by the recovery discs sent by HP?  They will not work in a different system (you will receive an error message), but you are able to get the boot floppies in a different system?  They should be able to start up to a point where the error message will be displayed.

  • Automator: using a text file to set several items from the finder?

    Hello

    what I would do:

    I have a text file that contains multiple entries for files and folders, each on a separate line. I want to dragndrop this file on an automator action, he should ask me a destination folder and then copy all the files and folders in this folder.

    I have my action, automator, set up like this:

    Elements of the open Finder

    Get the content of the TextEdit Document

    Copy to the Clipboard (I have not found another way to keep my text sort file values and let it not be crushed by the following, but it works)

    Quit the Application (TextEdit)

    Ask the Finder items (this requires a destination folder)

    Set the value of the Variable (Destination)

    Get the contents of the Clipboard

    Copies the items from the Finder (at Destination)

    It all works, but only when there is 1 entry in my text file. As soon as I have 2 lines of text, I get the following error message:

    The action "copy Finder items" has not provided with the required data.

    How can I make this work with multiple entries?

    The problem is that you only pass the only element to the copy action (you have copied text), instead of an element for each line (paragraph) in the text.  The solution is to use the action filter paragraphs to break up along the borders of paragraph text, which will give you a list of items.  In addition, you do not necessarily have to use TextEdit or the Clipboard - If you already have a file somewhere, you can simply use the action to combine text files to read the text.

    With the above modifications, your workflow should look like:

    Ask the Finder items  (ask for a destination folder)

    Set the value of the Variable  (Destination)

    Ask the Finder items  (Download text files) - set the action to ignore the entry

    Combine text files  (read the text files)

    Filter paragraphs  (paragraphs which are not empty return)

    Copy the items to the Finder  (at Destination)

  • How can I configure my computer to boot from the CD Rom drive

    I have Windows 7 home version and I have a problem with booting from the cd rom.  I did a cd bootable for a work at home job, but it will not work properly.  It works fine on the desktop of my sister, but not my laptop.  What is happening is the CD loads when I restart my computer, but then it goes to a black screen and just stays there until I have eject the CD.  I can hear the CD running, but I get nothing after the initial splash screen.  I have reset the bios to make sure that the CD-Rom was placed up in the boot parameters.  Any ideas why this CD will not completely loaded?  Thanks for any help you can give.

    Gayle

    Please note, in order to install Windows 7, you must have a DVD player, if you have a CD-ROM drive, which will not work.

    To learn how to change your BIOS options to boot from the DVD drive, the following tutorial:

    http://notebooks.com/2011/05/05/How-to-load-BIOS-and-change-boot-configuration/

  • How can I locate and delete shared items?

    I am in the process of updating XP Media Center Edition to Windows 7.  The Easy Transfer Wizard find 53.7 concerts of the "shared items".  I spent an hour or more, trying to find where these items are kept, so I can delete them.  I went through all the user accounts and saved or removed everything except 7.5 GB of points.  With concerts of 53.7 of shared items, total transfer items exceed the storage capacity of my external hard drive.  Thank you

    How to use Simple file sharing to share files in Windows XP
    http://support.Microsoft.com/kb/304040

    How to find shared Windows folders
    http://compnetworking.about.com/cs/winxpnetworking/HT/findwinshares.htm

    How to identify the shared folders in Windows XP
    http://www.mydigitallife.info/how-to-identify-shared-folders-in-Windows-XP/

    J W Stuart: http://www.pagestart.com

  • How can I build and pass a variable to the function getField?

    I need to know how to build and pass a variable to the function getField():

    I have a form of several sections similar to a spreadsheet.  Each section contains 5 rows of 11 columns.  Currently I have calculations in the field I want to consolidate and move to the level of the document.  The field names in each column are identical except for a row identifier.  For example, in the 1st row: a_debtType1, a_debtTerm1, adebtRate1, etc.  I want to be able to pass to a function of level document line identifier and that connect a function "getField.  Here is an example:

    Document-level:

    function calculateLoan (lineNumber) {}

    var myDate = getField("a_debtType"+lineNumber).valueAsString;

    var myDate = getField("a_debtTerm"+lineNumber).valueAsString;

    .. few treatment

    return

    }

    Level of the form:

    change the information in the form is ready for line 1

    function calculateLoan("1");

    Thanks in advance for any help.

    It seems good except how you call the function of what you have. The calculation script should be something like:

    Custom calculate script

    calculateLoan("1");

    Note that you can also get the line number if it is contained in behalf of the field that calls the script if you don't disturb him passing as parameter, assuming you named the fields correctly.

    For example, to calculate the field is called "row_total.1", you can get the line number in the script like this:

    var no_lig = event.target.name.split(".") [1] ;

  • How can I navigate and play MP3 files from a USB stick using Labview 8.0?

    I am a tester to test the USB flash drives connected to the PC.

    I want to browse the file system & playback of audio files, files .jpeg etc in the USB. I have Labview 8.0. When I searched for some examples or screws which can detect the flash drive USB, cannot find a. So if you could point me in the right direction, I can find a solution to my problem.

    Thank you.

    You will probably find some specific examples for this.  A USB flash drive is mounted by the operating system and appears as a new memory storage device to all software on the PC, including LabVIEW.  You can certainly write a LabVIEW program to open the files on the key and the game/run their but I would create a VI who wrote the files on the stick then proofread and checked to find errors at the level of the ILO.  Don't forget that your operating system could do parity check under the hood that would make your test rather meaningless.

    BTW, memory test looking at pictures or listen to the MP3s would be useless of course.  A man cannot see or hear errors at the level of the ILO in a stream broadband.

  • How can I delete under condition of items in a table

    Hello

    I have a table 1 d of the values (approximately 1000 items), I need to delete some items from. I need to calculate the mean and the standard deviation of the table and if all the values in the table are outside of a multiple of the gap the average type, I need to remove these items, and then relalculate the new medium. I'm not entirely sure how to do this.

    Thanks for any advice.

    Its simple to have a condition and remove items that does not meet the condition. Check the attached vi for an example.

    Good luck

  • How can I view and then rotate or crop the images duplicate

    My wife has a large photo collection (more than 50,000 images) and created a copy of a hundred photographs to include in a video that I'm trying.

    The problem is that I can't host elements to display these images because they are "double images".

    I had to go to "display" Location of the folder mode"able to find the directory.  When I did, I noticed the 10 subdirectories had not been imported, so I tried to import them and got this error:

    Nothing has been imported.  The files or selected it to import one or more files did not all types of supported files, or the files are already in this catalogue.

    I realize they are duplicates, but I want TO see them I can modify them (rotation, cropping, etc).

    (Q) is there a way to get items to 'jump me' to the original photo so that I can rotate or crop the 'original '.  NOTE: I use the Version value function or save my changes as a "new image" altogether.  I think that if it worked, I could create an "Album" that "duplicate" of the photo that my wife gave me and achieve what I have to do.

    I am brand new to elements (previously, I used ACDSee and it could do without hassle).  I have heard and read that organizing Elements 9 is much improved, so I wanted to give it a try.

    (Q) elements have a simple checkbox to allow me to work with duplicate images?

    (Q) is the solution to create a different catalog?    I did to work around this problem (for now).

    Also

    (Q) Elements 9, have a way to show all the images in all the files under a given folder?  I found that if I have a directory that contains 10 subdirectories, when I'm in the upper level without images directory are displayed.  In ACDSee, it show me all images in a directory given, including all subdirectories.  Is it possible to do it in Adobe Elements 9?

    Thanks for any help.

    The Organizer is not a browser, it's a database: even if he can show the photos in your folder structure, it works only on files that have been 'imported' and listed in the catalogue. It can show your saved photos displayed according to the structure of actual file based on the paths saved with each file present, but you will have problems if a top-level folder is empty.

    However, items saved in a catalog cannot be duplicates, and the Organizer prevents duplicates to be registered. There is no simple way to one click to override this constraint, which would mean another database 'key', that is to rename the duplicates, you wish to register.

    In practice: since you have to rename duplicates before importing them, you could do this directly in Windows or any other freeware like Faststone photoresizer.

    Or you may open these images directly from the Publisher, the navigation in your folder structure.

    Imagine you have duplicates in a folder and rename them and import them using only the PES:

    -To the editor, use the 'treat multiple files' to export the files in this folder and rename them, e.g. "IMG_0012.jpg" + "dupl" indicating the same destination folder

    -Try again "get files and videos ' Organizer.

  • How can we add a new menu item in the file Menu?

    Hello

    I want to create the menu item on the file Menu, I want to create a new menu item, just after the item "save under...". ». Is this possible with SDK?

    Thanks in advance

    Farida kaid

    You can file a new menuitem in any "menu group" defined by the Illustrator. If you look at AIMenuGroups.h, you will find the names of various groups of menuitems. There are two that might be what you want: kSaveForMenuGroup & kSaveMenuGroup. I can't remember how much control you have within a group, but it would at least allow you to get close enough.

Maybe you are looking for