Deleting same elements in array and their rearrangement based on other array

I need to delete duplicating characters in a string array. In addition the rearrangement in these new string characters should depend on their position alon the X axis given in other array. Any ideas how..
Cheers,
Z
p.s. In the attachment u can see my attempt and in the help.vi u can see my attampt.
Attachments:
my attempt.png ‏29 KB
help.vi ‏7 KB

Your question is not clear.
It would help if you could place some default data into your arrays of the VI and also include an indicator containing the result you want based on the default input.
Now make the currentl values the default, then save and re-attach the VI. Thanks!
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Main.vi creates 2D Arrays and I want to save the arrays in an microsoft Excel file(e.g engine_1)and in differnt worksheets(e.g. measure_1;measure_2;...)

    main.vi creates 2D Arrays and I want to save the arrays in an microsoft Excel file(e.g engine_1)and in differnt worksheets(e.g. measure_1;measure_2;...)
    The path(Grundpfad)for the excel file should be inserted in the main.vi.

    1. There's a shipping example called Write Table To XL.vi (Help>Find Examples>Communicating with External Applications>ActiveX>Excel) that you can use as a starting point.
    2. Buy the LabVIEW Report Generation Toolkit. Info can be found here.
    3. Search this forum for other examples of writing to Excel.

  • Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

    Have 3 sites on line and need to update them but each time i click on the site icon it opens always the same one... and i cannot access the other 2....

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    You can download an already compiled version with this link: iWeb Switch Domain.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to delete everything, but base group and their depends?

    If I install KDE or Gnome, and even a bunch of different programs, or have too much broken system, or even what the cause ..
    How to easiest delete everything, but to keep packages in base group and their depends?
    Last edited by atommixz (2010-10-14 11:37:31)

    You're drawing an erroneous conclusion. Dependencies for base are self contained within base. That is to say, you can install only the packages in base, and boot into a working system.
    If it's not working, then it gives rise to the idea that you have packages outside of the base group that are providing the functionality of packages in base. I'm not willing to test this further than verifying what I think the output of the comm should be -- and it looks correct on my end.

  • Clear array and take average of values in array continuously

    I have a continuous signal that I am acquiring with hardware (sampling at 1000Hz).  I want to be able to insert the data into a 1D array for 5 seconds, and then take the average of these 5000 samples.  So basically, every 5 seconds I need to take the average of a 1D array and create a new array for the next 5000 samples.

    There is no reason to accumulate the data into an array if all you need is the average.
    Simply add the values into a shift register. Every 5000 points devide the sum by 5000, output the average, and zero the shift register for the next series of data..
    LabVIEW Champion . Do more with less code and in less time .

  • Find a user in an array and output that line of the array

    Hello
    I have 2 arrays.
    1 is Users (actually they are local admins on a server) aka $LocalAdmins
    Jack
    Joe
    Jill
    The other array contains 3 columns, one of which is usernames aka $NTResults
    User              Last Write Time                          Last Access Time
    James             1/1/2011 12:00:00am                  1/2/2011 12:01:00am
    Joe                  2/3/2033 12:02am                           3/4/5030 9:01:am
    I want take each user in the $LocalAdmins and search through the $NTResults array for that user. if i find that user, i need to retrieve that entire line, user, last write time, last access time. 
    Ideas?
    Thanks!
    This is an example of the entire script. Will work on 2k8/7
    $NTResults = @();
    $ErrorActionPreference = "silentlycontinue"
    $server = "LocalHost"
    #------------------ Check for last logins ---------------#
    $UserLookup = Get-ChildItem "\\$server\C$\users\*\ntuser.dat" -Force #| select @{e={(Split-path $_.Directory -Leaf)}},lastAccessTime,LastWriteTime | sort lastwritetime -Descending
    foreach ($User in $UserLookup)
    $UserName = (split-path $User.Directory -leaf)
    #Populate Object
    $obj = @{
    User = $Username
    LastAccessTime = $User.LastAccessTime
    LastWriteTime = $User.LastWriteTime
    $NTResults += New-Object psobject -Property $obj
    $NTResults | select user,LastWriteTime,LastAccessTime | sort LastWriteTime
    #------------Lookup local admins---------------#
    $LocalAdmins = Gwmi win32_groupuser –computer $server
    $LocalAdmins = $LocalAdmins |? {$_.groupcomponent –like '*"Administrators"'}
    $LocalAdmins = $LocalAdmins |% {
    $_.partcomponent –match “.+Domain\=(.+)\,Name\=(.+)$” > $nul
    $matches[1].trim('"') + “\” + $matches[2].trim('"') }
    #Trim DOMAIN\ from LocalUserAdmins
    $LocalAdmins = $LocalAdmins -creplace '^[^\\]*\\', ''
    #Arrys to populate and split users from groups
    $LocalUsers = @()
    $LocalGroups =@()
    foreach ($LocalAdmin in $LocalAdmins)
    if (dsquery user -samid $LocalAdmin)
    {$LocalUsers += $LocalAdmin}
    elseif (dsquery group -samid $LocalAdmin)
    {$LocalGroups += $LocalAdmin}

    I'm assuming you mean the first list is $LocalUsers, not $LocalAdmins since that contains groups.
    Add this to the end, I think it will get what you need.  That WMI call is taking an exceedingly long time on my computer for some reason so I can't test it fully, sorry:
    $Results = $NTResults | %{
    If ($LocalUsers -match $_.user) {
    $_
    I hope this post has helped!

  • Cannot deactivate and delete photoshop elements 10, 11 and lighroom

    I recently installed Photoshop 12 on my windows computer, I have 10, 11 and Lightroom 4, there is no button to deactivate, and add remove programs will not allow me to delete the program.  HELP?

    Hi Stephen,
    Why you want to remove PSE10, 11 and Lightroom? PSE12 (or any version) has no compatibility issues with any product.
    ~Surendra

  • What I want to do is to get the co-ordinates of the elements of the third array which shows differences between 2 other arrays

    Hello,
    Ive have got a vi that compares two arrays by element and gives back the location of the elements that are not equal in a third array. What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.
    Many Thanks
    (Labview 7.1)
    Please find the vi attached below
    Attachments:
    ArrayDiff701.vi ‏25 KB

    jihn wrote:
    What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.
    Sorry, I don't understand what you mean. What are coordinates in this context?
    If you for example want to get an array of all elements from the first array corresponding to the list of indices in the "locations" array, just add another FOR loop as shown.
    Your VI has a major flaw! You need to reverse the order of "Add array elements" and "to I32". The "to I32" needs to come first! (see image). If you "add" first, you'll run into problems if you have more that 32k different elements because of overflow in the I16 integer.
    Message Edited by altenbach on 02-21-2008 05:22 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Different.png ‏9 KB

  • Use of BAT file - How do you completely delete 150 phones and their associate DNs?

    How do you completely delete 150 phones and their associate DNs? All the phones are in the same device pool. I prefer BAT way.
    Version of the CUCM: 8.6.2
    Type of phones: 7962 phones - associated with the same device pool.
    Additinal questions: Is there a way to delete elegantly all the phones and their associated DNs when all the phones are associated to the same device pool? I rather not work with specific extensions and MAC addresses.
    Thank you,
    Calin Lupas

    Hi Calin,
    Using BAT this will require 2 - passes. 1 for the phones and 1 for "unassigned DN's". this is nicely shown in the attached doc;
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/bat/8_0_1/bat-801-cm/t03delph.html#wp1342774
    Of course for the DN's you could delete them via the Route Plan report>Unassigned DN>select all>Delete
    Cheers!
    Rob

  • How do I delete email from my iPad and iPhone without deleting it from my laptop?

    how do I delete email from my iPad and iPhone without deleting it on my laptop. I'm trying to free up space.

    It would depend on the type of mail account you are using. If you have an IMAP or Exchange account deleting mail from one client is going to sync to the other clients. You cannot remove from one device and not the others. POP mail however, does allow one to delete mail from one client and it remain on the other clients. Because POP mail is downloaded to the individual clients, whereas mail in IMAP and Exchange resides on the server, and is just viewed on the individual machines.

  • How to increment an element in an array and put it back in the same array?

    I have an array of values generated by another part of my program. My goal is to count the number of occurences for each integer value in the array and put these values in a new array. This new array will be a histogram of the input array. My approach is to do auto-indexing with a for loop. In the loop I use a "index array" to get the current value of the histogram array and a "replace array subset" to update the array element with "current+1". The problem is that when I wire the output of the "replace array subset" VI back to its input, I get a wire error. I guess I cannot wire it like that, but what should I do? Is there a completely different approach to do this that
    is more elegant?
    Thanks for your help!
    Benoit

    Hi Benoit,
    I believe the thing that's missing is a shift register.
    Right-click on the edge of your "For loop" and select add shift register.
    Wire an initialized array to the shift register left terminal before entering the "for loop". Wire from this same terminal (inside the loop) as the source of the info used in your "index array" and replace array. The results of these two operations (just the way you are doing it now) gets wired to the "right terminal" of the shift register (inside the loop).
    What ever you stuff into the right terminal, gets returned via the left terminal on the next iteration of the loop. When the loop is done, your final array of counts can be accessed by wiring from the "right terminal" (outside the loop).
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When I try to sync photos, I followed all the steps, picked one folder.  When I hit "apply" I get this error message: Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad. What have I done wrong

    When I try to sync photos or music, I followed all the steps, picked onle folder, not the whole library.  When I hit "apply" I got this message:
    Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad" What can I change to just download the photos and not interfere with the apps?
    (By the way, the memory is not even one quarter full)
    Thanks for your help - Pat

    I have the same problem.  I updated my mac to 10.5, which then had me update apps like itunes, etc. then it wanted me to sync my purchased music to my ipad before i updated the ipad...which worked ok. then when i was syncing the photos i got the same message when i hit "apply" asking are you sure you want to delete the 12 apps from the ipad -  clicked "no" and brought me back to the original screen. Got the same message when trying to move them from the hard drive to the ipad.  WHat is going on and how do I correct this? Thanks

  • Find Whether Array Element have same element in all index

    Hi ,
    I need to check if an array have the same element in all its indexes.(Example: An Array of Size 4, should have index 0 ..index 3 as 1 and during next iteration let it be number 2 in all indexes......how do I check if all index have same number)
    Attached the VI I did.
    Anyone can suggest better than this.
    Solved!
    Go to Solution.
    Attachments:
    Check array_For Same Element.vi ‏12 KB

    get the first element , compare it with the hole array , AND all elements
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Completely messed up Raid-Array and Partition! How to delete and create new Raid-Array​?

    Hello,
    I am using Ideapad U310 and tried to clean install Windows 8 and use my SSD as CACHE and Hibernate-Partition.
    So, I was able to get to the Intel CTRL+I-RAID Config Menu and there I was able to create and delete my RAIDS.
    Unfortunately I did not setup the Partition Size correctly, thus I only have a 50 GB Partition combined with my SSD and my HDD. This is what it looks like in the Intel Storage Manager:
    As you can see both, my SSD and HDD appears, but only have small partitions on the right. And Windows 8 only recognizes this small partitions, as you can see here:
    And now I am NOT able to get to the Intel RAID CTRL+I-menu before Windows starts, where I could delete this array.
    My Partitions are "empty", so I dont care if anything is delete. I just want to use raid with FULL CAPACITY of my harddrives. But how can I delete the RAID Arrays and reconfigure them correctly?
    When I change in the BIOS from RAID to AHCI I am able to install Windows 8 again with the whol CAPACITY of my SSD and HDD. But then I will not be able to use the RAID via Intel Storage Manager...
    Hopefully someone could help me.
    Thank you in advance.

    Hi
    Please see this thread
    http://forums.lenovo.com/t5/IdeaPad-Y-U-V-Z-and-P-​series/The-Guide-on-How-To-Reformat-Repartition-AN​...
    Hope this helps
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • Deleting data elements and domains

    hi guys,
    how do i delete data elements that i had previously created in ztables (they are zelements and zdomains)permanently.  thanks in advance.

    from the same place where u created them ie go to
    SE11> Use menu option Dictionary Object> Delete
    or
    SE80 > Use menu option Workbench>Edit Object>Click the tab Dictionary>use the Delete icon
    Regards,
    Suresh Datti

Maybe you are looking for