Copy Select Steps from Sequence to a new Sequence Programmatically

I have a sequence that calls a sequence file ( decided at run-time ) and when that sequence ( only 1 in this file ) has a step that fails it is stored in the external program.  What I'd like to do is create a new sequence ( on the fly ), "extract" ( copy ) the steps that failed from the sequence I ran to the new sequence, and run the new sequence. 1. Best way to do that? 2. What happens to the preconditions, preexpressions, postexpressions of the steps when they're copied? Thanks.
-G-

Hi,
There is an example in the TestStand\examples\tools\ folder which should help you. Also in the Programmers Help.
There are some additional links which might also help (although these are for an early TestStand version):
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E03456A4E034080020E74861&p_...
Inserting a Step into a sequence
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DEA556A4E034080020E74861&p_...
You will need to use the Clone method rather than the NewStep and this should create a copy of your steps, including all the properties such as pre-conditions, pre-expressions etc.
also this example may helps, http://forums.ni.com/ni/board/message?board.id=330&message.id=2321&query.id=85838#M2321
but going a search in the forum will come up with other useful links.
Hope this helps
Regards
Ray Farmer
Message Edited by Ray Farmer on 04-25-2006 08:15 AM
Regards
Ray Farmer

Similar Messages

  • How To Copy Selected Music From One Library to Another?

    What is the best way to copy selected music from one library to another?
    I have a big and growing iTunes library -- 33,000 songs.
    A year ago I copied my library to my daughter's new iMac.  Now, a year later, I'm off to visit her and wonder how best to update her library.  In the past year I have added a number of items to my library and I'm sure she has done the same -- some might be the same but many will be different.
    How do I update her library with the new things I've added in the past year but not wipe out things she had added or duplicate when we each have a song?
    I can load any / all of my stuff on an external HD and take that to plug in to her computer.  Then what?  I want to avoid duplicates and make sure I get stuff like album artwork.
    I'm running iTune 10.4 on an iMac with OS X 10.6.8 -- my daughter will have the same iTunes and OS X once we update her software.
    Any advice would be great.
    Thanks

    If you're sharing the same Apple ID and all your songs are from the iTunes Store, it's easy:
    In iTunes on your computer, go to File->Preferences->Store and check the box next to MUSIC under AUTOMATIC DOWNLOADS.
    You should also read this article, the section titled TO DOWNLOAD PREVIOUSLY PURCHASED APPS, BOOKS, MUSIC, OR TV SHOWS TO YOUR COMPUTER:
    http://support.apple.com/kb/ht2519
    You could also use an rsync utility such as backuplist+ to perform a 2-way sync of the files in your two libraries while your computers are connected via FireWire with one of them in FireWire Target Disk Mode, or from your external hard drive with your daughter's computer and then to yours again. After that, you'll need to use iTunes on each computer to update its library with the new files:
    http://rdutoit.home.comcast.net/~rdutoit/pub/robsoft/pages/backup.html
    This last would also be the preferred method if you have authorized each other's computers for media purchased with each other's Apple IDs (i.e. you are not sharing the same Apple ID), or if you have music from sources other than the iTunes Store. Most likely, though, music from sources other than the iTunes Store would not be legal to copy in this way for this purpose, although there is probably no technical impediment.

  • Copy selected values from a table control into another table control

    hi there,
    as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
    i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
    i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?

    you're funny
    i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
    here's my code, maybe you can tell me exactly were i have to change it:
    tc1 = upper table control
    tc2 = lower table control
    SCREEN 0100:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE get_nfo. --> gets data from the dictionary table
      MODULE tc1_change_tc_attr.
      LOOP AT   it_roles_tc1
           INTO wa_roles_tc1
           WITH CONTROL tc1
           CURSOR tc1-current_line.
      ENDLOOP.
      MODULE tc2_change_tc_attr.
      LOOP AT   it_roles_tc2
           INTO wa_roles_tc2l
           WITH CONTROL tc2
           CURSOR tc2-current_line.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT it_roles_tc1.
        CHAIN.
          FIELD wa_roles_tc1-agr_name.
          FIELD wa_roles_tc1-text.
        ENDCHAIN.
        FIELD wa_roles_tc1-mark
          MODULE tc1_mark ON REQUEST.
      ENDLOOP.
      LOOP AT it_roles_tc2.
        CHAIN.
          FIELD wa_roles_tc2-agr_name.
          FIELD wa_roles_tc2-text.
        ENDCHAIN.
        FIELD wa_roles_tc2-mark
          MODULE tc2_mark ON REQUEST.
      ENDLOOP.
      MODULE ok_code.
      MODULE user_command_0100.
    INCLUDE PAI:
    MODULE tc1_mark INPUT.
      IF tc1-line_sel_mode = 2
      AND wa_roles_tc1-mark = 'X'.
        LOOP AT it_roles_tc1 INTO g_tc1_wa2
          WHERE mark = 'X'.    -
    > big problem here is, that no entry has an 'X' there
          g_tc1_wa2-mark = ''.
          MODIFY it_roles_tc1
            FROM g_tc1_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc1
        FROM wa_roles_tc1
        INDEX tc1-current_line
        TRANSPORTING mark.
    ENDMODULE.                    "TC1_MARK INPUT
    MODULE tc2_mark INPUT.
      IF tc2-line_sel_mode = 2
      AND wa_roles_tc2-mark = 'X'.
        LOOP AT it_roles_tc2 INTO g_tc2_wa2
          WHERE mark = 'X'.             -
    > same here, it doesn't gets any data
          g_tc2_wa2-mark = ''.
          MODIFY it_roles_tc2
            FROM g_tc2_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc2
        FROM wa_roles_tc2
        INDEX tc2-current_line
        TRANSPORTING mark.
    ENDMODULE. 
    thx for anybody who can help with this!

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • How can I export photos from Aperture with a new sequence and ignore the embedded JPEG number? Have tried renumbering to no avail.

    How can I export photos from APERTURE with a new sequence and ignore the embedded JPEG number? Have tried renumbering to no avail.
    has anyone resolved this issue?
    This is now the second big Problem with using Apple's Appeture with NO apparent FIX...
    Aperture has NO DIRECT way to Burn to a CD/DVD & apparently NO way to RE-SEQUENCE the numbering system????
    ANYONE... I wish APPLE would address/fix these 2 problems... LIGHTROOM I guess is next?

    Hi David,
    Coming in and whining loudly is rude.  We are all volunteers here, voluntarily sharing our expertise so that users like you can make the most of their time with Aperture.  Speaking just for myself:  although I do care about your success with software (it's why I'm here), I don't care what software you use.  If you want to use Lightroom, do so, and post your questions in an appropriate forum.
    Burning files to a CD is a file operation done at the system level (it is built into OS X).  Aperture lets your create sharable image-format files from your Images.  You then use OS X's tools to burn those files to a CD.  Iirc, you can set up a "Burn Folder" in Finder, into which you can export files created from your Images, and with a single click burn your CD.
    Naming the files you create by exporting your Images can be tricky.  There are _many_ possibilities.  Some things can't be done.  Sequencing can be done in a number of ways (see Léonie's answer above).  What have you tried?  What was the result?  In what way did this differ from what you expected?
    --Kirby.

  • Insert menu item blank in sequence editor for new sequence

    In TestStand 2.0.1, when I create a new sequence file using the sequence editor and right-click to insert a step, the Insert menu is greyed out.
    If I open an existing sequence file, copy a step from it, and paste it into the empty sequence, then whatever that step was (let's say Action) becomes available on the Insert menu.
    Is there any way to fix this other than re-installing TestStand? Any idea why this is happening?
    Thanks,
    Gizmogal

    Hi,
    This sounds like you have a problem with your type Palette files in sowe way.
    Check out if you can read the ini files found in teststand\cfg\TypePalettes.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Javascript help to copy selected items from one list to another list on same site

    Hello,
    So I have a request that I am not sure how to handle. I have created a page with a list view webpart that displays all the items from one list.
    The user is then supposed to select off multiple list items and click on a button (most likely a ribbon button) that will take the selected items and copy them to another list on the same SharePoint site.
    I would like to do this with JavaScript, but have only found an example that copies library items to another library.

    Hi KansaiKel,
    According to your description, my understanding is that you want to copy selected list items to another list.
    I suggest you can use JavaScript Client Object Model to achieve it.
    Here is a code snippet for your reference:
    <script type="text/javascript">
    var context = SP.ClientContext.get_current();
    var siteUrl = 'http://sp2013sps/sites/test';
    var clientContext = new SP.ClientContext(siteUrl);
    var web = context.get_web();
    context.load(web);
    var sourceId = SP.ListOperation.Selection.getSelectedList();
    var source = web.get_lists().getById(sourceId);
    var oList = context.get_web().get_lists().getByTitle('Copy');
    context.load(oList);
    var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
    alert('debut');
    for(var i in selectedItems)
    var currentItem = source.getItemById(selectedItems[i].id);
    context.load(currentItem);
    context.executeQueryAsync(Function.createDelegate(this,test),Function.createDelegate(this,error));
    function test(sender, args){
    var itemCreateInfo = new SP.ListItemCreationInformation();
    var oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', currentItem.get_item('Title'));
    oListItem.update();
    oList.update();
    alert('done');
    function error(sender, args){ alert('error');}""
    </script>
    Here is a detailed article for your reference:
    Complete basic operations using JavaScript library code in SharePoint
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • 16x9 Material from Old Sequence Pasted Into New Sequence Is Letterboxed

    I'm trying to paste a series of edited (and some nested) clips from a 1440x1080 23.98fps sequence into a new blank sequence with the same settings. But the canvas is now a 4x3 image, the material is letterboxed and a few non-nested scenes are squeezed or out of sync. What am I doing wrong?

    Anamorphic does not help. The sequence is a mix of clips. Apparently the ones I have nested are fine. The ones I did not are squeezed. So it's a mixed bag. I may use a workaround where I dupe the original sequence and delete everything but what I need. That way no change.

  • How do i copy my itunes from old PC to NEw PC

    pls help. I bought new PC, how do i copy my my I tunes along with all teh songs from old pc to new PC

    iTunes: How to move your music to a new computer
    Also:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    With all your synced media like apps and music in the iTunes library backup the iPod to the new computer and restore from that backup.
    iOS: How to back up

  • Copying certain tracks from old iTunes to new library

    I have iTunes on the Mac OS 9 partition of a G3 iMac and want to copy certain tracks from that into the iTunes library of my iTunes on my Mac Mini OS X.4.8 I have in the past copied entire libraries between computers using firewire, but this time I just want to add to my present computer a few tracks that are in the old one.
    I remember about a year ago reading about a utility whereby you set up the two libraries side by side onscreen and moved whatever track you wanted across in either direction. I can't locate that or remember the name.
    Any help appreciated.
    Tom Older
    Mac Mini G4 1.25   Mac OS X (10.4.8)  

    Hi there,
    I copied the whole entire iTunes folder into my music directory on my new mac (as I had my own account on his mac), and then once that was done I dragged and dropped this folder onto my iTunes icon.
    It's imported playlists, but not star ratings.
    Is there something I should have done before exporting my music onto my hardrive in the first place? I've read somewhere about exporting ratings or exporting playlists or something....
    Cheers,
    Hannah

  • I have 2 yr old Iphone 4 and have not backed up or connected to Itunes or backed up for 1 yr. I have new computer and want to connect and copy Itunes folder from external HD to new computer and install Itunes. What steps should I take and what precautions

    I have a 2 yr old Iphone 4 and have not backed up or connected to Itunes up for 1 yr. I have new Windows 7 computer and want to connect and copy Itunes backed up folder from external HD (a year ago) to new computer and install new Itunes and new IOS. What steps should I take and what precautions? I don't want to lose any data on my phone such as music, photos, contacts, notes, texts etc, nor lose music from prior backed up Itune folder. Apps should be OK from app store? Thanks for any help.

    Hello CosK,
    The following guide can step you through the process of using a backup of your iPhone 5 to transfer your content to your iPhone 5s.
    Transfer content from an iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Should one or both of your phones fail to appear in iTunes, the following article provides troublesooting steps that can assist.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Allen

  • Copying printer software from old computer to new laptop

    Currently own an HP Photosmart C6180 All-in-one printer that was used with my destop computer.  Recently switched to a notebook/laptop and attempted to install the software from the original CD.  However, as the new laptop does not have the capability to play/upload CD's I copied the software to a flash drive and downloaded.  However, this did not work!.  By selecting another driver I am able to print, but unable to scan, fax, copy, or access the photo editing software!  Can anyone out there help me out?  Thanks1

    Okay - followed instructions....my OS is Microsoft Windows 8.1 64- bit - downloaded and went to upload and received this message before it could completely upload!  Help!
    MICROSOFT VISUAL C++ Runtime Library
    Runtime Error!
    Program:
    C:\Users\Pepper-1\AppData\Local\Temp\7zS519E\hpzsetup.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the applications support team for more information.

  • Copied places.sqlite from crashed drive to new computer per instructions and old bookmarks don't load

    I copied the places.sqlite folder from a crashed drive (FF 3.6.15, Windows XP) to the new computer (FF 4.01 Windows 7) per instructions, to appdata/roaming/moz/fire/profiles etc.
    There are also JSON/bookmark backup files on the old drive's directory, they don't display when I try the import html command. All files have data.
    How do I get the bookmarks to load on the new computer? Just copying the places.sqlite file didn't work.

    See also:
    * http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Why cannot I copy selected text from a pdf file opened in Adobe Reader XI?

    Hi all,
    I had a problem when I tried to copy some selected text on a pdf file([Linux.System.Programming(2nd,2013.5)].Robert.Love.文字版.pdf) , which was opened in Adobe Reader XI as below (non-English version):
    The error's text could be primarily translated as "An error occured when copied to clipboard. Internal Error." I'm not sure about the reason of this. I guess it is a problem or bug related to operating system or Adobe Reader XI. I had this problem when I used other versions of Adobe Reader though I cannot remember the exact number of versions now.
    The version of XI I'm using is 11.0.0.  The operating system is XP SP3.
    As I was writing this question, the problem disappeared and I cannot reproduce it again now.
    Could anyone help explain why the error message appearred or why the problem disappearred? If there is referrence provided, that would be finer. Thank you.
    Message was edited by: photonxp

    The document has been protected.
    Even if it doesn't have a password, the original author has applied "plagiarism" prevention to it.
    There is a program from Wondershare, called PDF Password remover, that will remove such restrictions, but I'm not allowed to recommend it, only to point out it's existence.

  • Can I use TM to copy my iTunes from old Mac to new Mac ?

    I just bought a MB Air and I have 30 GB of music on my MB Pro. Can I use the TM backup from the MBP to transfer the data to my MB Air ?
    Unfortunately Migration Assistant doesnt allow you to be too specific regarding files etc.
    Thanks

    phil_a wrote:
    Yes I understood that from your first post. I thought I was missing something in Migration that would allow me to specify the files to transfer.
    No, it doesn't.
    Where does the plist file go and whats it for ?
    it goes to the same place on the new computer as it was on the old one. It's the preference file for itunes. with it once you copy your itunes folder and start itunes, itunes will look exactly as it did on the old computer.

Maybe you are looking for

  • How do I remove white space on top of panelTabbed

    I have a menu bar on top of a panelTabbed. I would like no gap between the the content inside of the panelTabbed and the menu bar. Even if I set the tabs to below I still have a gap. Any ideas? Thanks justin

  • ABAP Objects Questions

    Hello Everyone, I hope someone could answer the following questions: Please look at the below ABAP code data: zVar(30)                type c value 'ZTEST_CLASS',         methodName(30)    type c value 'Test_Method'. Question # 1:  Can I define the ob

  • Problems trying to run ASD 2.5.8

    I just replaced the logic board on my power mac g5 (dual 2Ghz) and now the fans are running like crazy. I got a hold of ASD 2.5.8, so I can run a thermal calibration, but when I boot to the cd the screen is bunched up, like squeezed together and noth

  • Cannot Open Photoshop CS3

    I recently got a new computer. We uninstalled CS3 on the old one, installed it on the new one. All systems were a go until earlier this week. I can no longer open Photoshop. It gives me 'Photoshop has stopped working' error message as it gets to the

  • Slim keeps looping and Arch won't boot

    I have recently upgraded my nvidia drivers and subsequently linux to 3.14. Things got really strange and the terminal didn't want to open anymore. I rebooted the machine and after logging in the screen went black and slim kept looping asking me to en