How to duplicate and rename programatically the basic VI and all his subVI

Hello everybody!
In my sequencer I used a basic VI to control a device. This basic VI has 100 subVI's, most of them use some shift register and clusters for handling data.
Now I have to use simultaneously 2 devices of the same type (so I'm afraid that is not a good idea to use same subVI's for both devices because I can get wrong results).
I need two different names for my devices to control them separately via GPIB.
So I want to duplicate  this basic VI control and his subVI's using new names (old name+index2 e.g. read.vi=>becomes read2vi). Of course the new duplicated VI has to use the indexed subVI's.
The solution I used in the past is to open the basic VI save it using new name...... and then...... repeat this operation for each subVI. This takes a lot of time and each time when I change somethings in the VI, I have to change the same in the duplicate VI. Some times other persons makese the changes and is very difficult to verify if the changes are also done in the duplicate VI.  
Can I do this programatically? 
Or there is another way to solve my problem?
Thank you!

Hi Nicku,
and when you get a 3rd device you create a 3rd copy of the whole hierarchy to control that device too?
Instead you could:
- use VI templates instead
- make an array of measurement data and use your VIs in an autoindexing FOR loop
- separate data aquisition from data analysis to ease point 2
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How do I do to use the same appleid on all my devices, I want to use the last one I have on my Ipad mini, do I deleta the one I have on my Iphone and reeinstall it with the Id I use on my Ipad..?

    how do I do to use the same appleid on all my devices, I want to use the last one I have on my Ipad mini, do I deleta the one I have on my Iphone and reeinstall it with the Id I use on my Ipad..?

    Hi john,
    Yes, you would sign out of iTunes & App Store: Settings>iTunes & App Store, click on the Apple ID, click on Sign Out. Then sign back on with the new Apple ID. Also, if you have an iCloud account with the other Apple ID, you would delete that iCloud account, and then sign on with your new ID: Settings>iCloud>Delete Account.
    Cheers,
    GB

  • Okay, so my friends music downloaded to my iPhone when i put it on his computer to charge and i re-synced it to mine and all his music is still there but blank and wont play how can i get it off of my phone, its so annoying!!

    Okay, so my friends music downloaded to my iPhone when i put it on his computer to charge and i re-synced it to mine and all his music is still there but blank and wont play how can i get it off of my phone, its so annoying!! My itunes only has like 4 songs because my computer crashed and lost all my songs, and I'm not trying to steal his music. But like I said its still in the music app on the phone but its all blank and wont play. I just want it off.

    When he plugs it into his Mac again, he should be asked if he wishes to sync with that Mac.

  • I don't want to sync my new ipod nano with all my music on my mac. i only want to put on certain albums. how do i transfer some of the music but not all? thank you.

    i want to add music to my new ipod nano but i don't want to sync all the music onto the nano from my mac. how do i transfer some of the music but not all? thank you.

    Hello,
      It is 2015 and iTunes still wants to tell me what to listen to. This problem still persists. The only solution I have found is to select "Manual ..." and pick one by one the items to sync.
      When I select items to sync by artist or genre they do copy to the device. Then iTunes continues randomly selecting music until the device is full. When I want to load the Nano for a road trip I don't want 20% of the tracks to be Chakra meditation. When little Nano is docked on the nightstand alarm clock I DON'T want to hear Motorhead, Ministry, etc.
      For all the effort aPple puts into seamless integration and ease of use ... Why the heck is it so hard to say NO? Sync these tracks and NOT those. Stop asking me to log in to your cloud service BTW. I do not want it.
    Thanks,
    Disgruntled Sour aPple User

  • After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

    After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

    I'm pretty sure that the solution is in the settings of her email

  • I am a new iPad Air user. How do I get back to the home page with all the icons.

    I Am a new user. How do I get back to the home page with all the icons.

    iPad Manual
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • HT201269 Gave my iPhone 4 away to someone w/ a 3GS, so how does service get activated on the new device? All docs transferred already via iCloud.

    Gave my iPhone 4 away to someone w/ a 3GS, so how does service get activated on the new device? All docs transferred already via iCloud.

    That person needs to contact their cellular carrier.

  • How can I do to have the same contacts in all my devices, pc, iPad and iMac?

    I have severl devices and the last taime I updated my contacts was almos manually. I would Like to be able to have the same contacts in all, pc, iPad, and iMac.
    How can I set it so to get it done through iCloud?
    For instance in my pc ( windows 7 Home Premium ) I use Outlook 2007.
    Thanks for any comment on this.

    switching on iCloud should automatically tell it to merge data with that device and icloud. i'm on a mac but its gotta be the same on all devices and systems.
    when you switch on icloud for Contacts on a PC, it will tell you its merging all contacts with icloud...

  • TS3274 Somehow the information on my iPad is too large and i cannot see all the icons at once. How do I go back to the normal size? all the icons. How can I resize the infor on scren?

    Somehow the information on my iPad is too large and i cannot see all the icons at once. How do I go back to the normal size?

    Have you tried resetting your device? http://support.apple.com/kb/ht1430

  • Delete user and all his related data form the relation table

    HI All,
    I have user and for the user i have 3 more tables with additional fields that relate to the user
    the the user is a key on the 3 tables and relate with foreign key .
    in case i want to delete the user and i want that all the user data from all the related table will be deleted how can i do that ?
    Regards
    Joy

    HI,
    The user is in Z DB tables so i cant delete it with this bapi,
    The problem is when i have 4 table and i want to delete the user from them like that :
      DELETE FROM: (sv_user_table_name) WHERE userid = iv_user_id,
                   (sv_add_fld_table_name) WHERE userid = iv_user_id,
                   (sv_att_table_name) WHERE userid = iv_user_id,
                   (sv_app_attributes_table_name) WHERE userid = iv_user_id.
    IF sy-subrc <> 0.
        RAISE EXCEPTION TYPE .....
    if the user are exist in the first and the second table and not in the third and four
    i get the sy-subrc = 4 despite the user has deleted from the first and seconed tables
    there is nice way to overcome this issue ?
    Regards
    Joy
    Edited by: Joy Stpr on Aug 3, 2009 8:57 AM

  • Transfer a VI and all its subvi's to new computer

    I have a very complicated VI on an old computer and have been trying to find an easy way to transfer it to a new computer and bring with it all its subvi's as well?

    If you dont really have a good structure of the needed vi's (as a file tree) you can Save to different location and it'll create a directory structure with the needed vi's. This can then be zipped and moved easily.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • I've just bought lightroom and downloaded it and in the Develop Mode I am unable to find the 'Basic' tab. All that shows (in the order that they appear on my screen) are Histogram, Tone Curve, HSL/Color/BW, Split Toning, Detail, Lens Correction, Effects a

    My Basic Tab has vanished...clues on where I can find it. I have a horrible feeling I've pressed some 'hide' button by mistake and can't find how to undo it

    Right-click on one of the tabs that are visible and select "Basic" from the menu that's presented, Mohammed.

  • How to stop and resume a subVI from the main VI?

    I am trying to write a test sequencer, I need to start a subVI (which is a test sequence) from my main VI, I'd like to control the execution of subVI by pressing the 'stop' 'resume' 'jump step' button in the main VI. Does anyone have any idea how to implement this in LV?
    Thank you.

    Yay for State Machine!! I would actually recommend the State Machine Using Events design pattern. Taking advantage of the Event Structure will allow you to replace the "Idle" state in the traditional state diagram design pattern. Instead, we are not waking LabVIEW to handle particular events on the front panel.
    More information regarding the State Machine design pattern as well as design patterns in general are available:
    NIDZ Tutorial: Changing the Face of Design Patterns with LabVIEW 7 Express Event Structure
    NIDZ Tutorial: Applicati
    on Design Patterns: State Machines
    LabVIEW Application Design Patterns
    Good luck.

  • When I plug my device into my computer, it goes directly to the ITunes store. How do i get back to the main page with all my device info

    How do i get back to my device home page

    I had the same problem with mine when I connect the ipod when it's full charged and turn on. The problem never happen when the ipod is charging or i'ts full charged and it's turn off. So just turn off your ipod down and connect to your mac again.

  • Re: How to scan a document with the HP Deskjet 2540 All in one.

    Scanning with a HP 2542 using MS Vista

    Hi @Mchim71,
    Welcome to the HP Forums!
    I shall assume that you are also looking for how to scan using the Deskjet 2542 on a computer running Windows Vista? That I can assist with
    This Scan from Windows Vista With the Full Feature HP Software for HP Multifunction Printers document will walk you through how to scan with or without HP software.
    I hope this answers your question, but if not, please come back and let me know what else I can help with!
    Hope you have a great day
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

Maybe you are looking for

  • IP - characteristic relationship/ data slices

    Hi Guys, I am very new to IP and would like to have some help regarding the following with some simple example 1) characteristic relationship 2) data slices 3) locking Some examples with the above is much appreciated. where can i get some good docume

  • RV042 VPN Connection Questions

    Hello, I have successfully connected two RV042s to establish a VPN gateway to VPN gateway connection. I have the follow questions, please comment: 1. I would like to keep the VPN tunnel connection time indefinite. Is it sufficient by checking the "Ke

  • How to Get User entered value in a text variable

    Hi, I have made a text variable to show the user entered value in the column header. The user enteres value in a formula variable ABC whose default value is say '30'. I am using customer exit to capture this value in the text variable. The code is as

  • How do I add music to my iMovie using iTunes?

    HI, I just bought my macbook air and am a first time user, i want to make a movie thru imovie, Ive learned how to put in my pics so now its on to puttimg in the music. how do i add music from my itunes to put in my movie?

  • Performance advantage to standalone OC4J versus App Server?

    If one uses only the JMS server part of the 10g Application Server, would there be any performance advantage to running the standalone version of the OC4J JMS server versus running the entire application server?