How does everyone handle sweep data from loops

There's a type of test I've done a few times over the years and I'm researching what are some standard ways to handle the data in TestStand. The test type is sweeping multiple parameters in a nested loop. For example, sweep Vcc from 5.1V to 5.5V in .1V steps, at each voltage sweep Q DC Bias from 1.9 to 2.3 in steps of .2, and at each Q DC Bias sweep LO Drive Level from -5 to -20 dBm in steps of .5 dBm. For each input combination record IM3 Suppression. This example produces 310 data records.
If I did all this inside a single code module I could pass it back to TestStand as four arrays, one for each input param and one for the data. Done. I'd still need to log it.
What if I want to do the looping in TestStand? Here's how I could collect data.
1. Record the three params and one data into the ResultList as single points with Numeric Limit steps and sort it out in some datalogger callback.
2. Collect four arrays or a 2D array in Locals and then copy the arrays into the ResultList as four arrays (or 1 2D), not as scalars in #1 above. Log it in some datalogger callback.
3. Collect four arrays or a 2D array in Locals and just use a code module in the client sequence to save the data.
4. Any others?
Thanks

Hi dowNow,
I can't immediately think of any significantly different alternatives to accomplish what you are wanting to do.  In the past, I have personally used the external code module to do the looping and measurements and then returned the data as a 2-D array.  You can then add this array to the ResultList.  This has typically given me the most efficient tests and the simplest overall setup.
Additionally, I am not sure if you are planning to store the results in a Database, but if you are, you will need to keep in mind that logging a 2-D array to a Database works differently than a 1-D array.  I have included a link to one of our KnowledgeBase articles that details exactly how to store a 2-D array in a Database:  http://digital.ni.com/public.nsf/allkb/1307679F845B162286257160000510ED
Thanks,
Jonathan C
Staff Application Engineering Specialist | CTD | CLA
National Instruments

Similar Messages

  • How does iCloud manage app data like whatsapp ? Does it overwrite the data everytime I backup to I cloud with the data on the phone or it merges the data from previous backups with the new data?

    How does iCloud manage app data( like whatsapp) ? Does it overwrite the data everytime I backup to I cloud with the data on the phone when i backup or it merges the data from previous backups with the new data?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

  • After a Lion clean install, how do I retrieve my data from external back-up? Following Apple advice for use of Migration Assistant did not work creating similar issues leading to clean install.

    After a Lion clean install, how do I retrieve my data from external hard drive?
    Following Apple advice I used Migration Assistant which crashed new system twice which is why I had to clean install Lion in the first place.
    Is there a sure way of doing it?
    I have only a few programs that I will have to install myself and that should not be a problem.
    I just want my data, music and photos back where I can use them.

    Time machine backups. I went to migration assistant a few hours ago and limited my selection to "users", no need for applications, settings and other files.  Stuff started moving over at a fast pace but has now seemed to stall.
    I will let it run overnight as there are lots of songs and photos as well as a few movies.
    If that does not work, then I will go into TM and try restore. I have restored some things in the past such a mail files and it has worked well. 
    The Apple fellow at the store told me to go right into TM, he may have had a point. I'll get it eventually.

  • How to get the complete data from Webdynpro using a RFC

    hi guys,
    A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
    I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
    And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
    I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
    FUNCTION ZSEND_MAIL_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(BIN_DATA) TYPE  INDX_CLUST OPTIONAL
    *"  TABLES
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
          gd_sent_all(1) TYPE c,
          gd_error TYPE sy-subrc,
          tab_lines LIKE sy-tabix.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      data : v_bin_data like SOLISTI1 occurs 0 with header line.
      DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
    *data bin_data1 like table of solix with header line.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
      DATA V_SUBJECT(255) VALUE 'HI'.
      gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SENDFILE'.
      gd_doc_data-obj_descr = v_subject.
      gd_doc_data-sensitivty = 'O'.
      APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
    *CALL FUNCTION 'GUI_UPLOAD'
    *EXPORTING
    *filename = V_FILE_PATH
    *filetype = 'BIN'
    *TABLES
    *data_tab = BIN_DATA.
      move bin_data to v_bin_data.
      append v_bin_data.
    *move soli to bin_data.
      LOOP AT V_BIN_DATA into objbin.
    MOVE v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
    data file(255) value '/tmp/bali.txt'.
    *Appending The Internal Table it_receivers
    close dataset '/tmp/bali.txt'.
    open dataset '/tmp/bali.txt' for output in text mode encoding default.
    if sy-subrc = 0.
    loop at objbin.
    transfer objbin to '/tmp/bali.txt'.
    endloop.
    else.
    write 'hi'.
    close dataset '/tmp/bali.txt'.
    endif.
      it_receiver-receiver = '[email protected]'.
      it_receiver-rec_type = 'U'.
      it_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
    if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    **Function Module To Post The Message To Externa Mail
         CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
             document_data              = gd_doc_data
             put_in_outbox              = 'X'
             commit_work                = 'X'
           TABLES
             packing_list               = it_packing_list
             CONTENTS_TXT               = objbin
             receivers                  = it_receivers
           EXCEPTIONS
             too_many_receivers         = 1
             document_not_sent          = 2
             document_type_not_exist    = 3
             operation_no_authorization = 4
             parameter_error            = 5
             x_error                    = 6
             enqueue_error              = 7
             OTHERS                     = 8.
         clear wa_receiver.
    ENDFUNCTION.

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • How can i convert the data from mutiple-table to the other database(MSSQL)?

    Dears,
    How can i convert the data from mutiple-table to the other database such as MS-SQL?
    I have a third party system based on MS-SQL 2000.
    Now we want to make a integration between SAP R/3(Oracle) and SQL server.
    When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
    But i don't know which tools will help me reach the purpose.  BAPI, LSMW, IDoc... ???
    Would anybody tell me which way is better and how to do?
    Thanks a lot!
    Kevin Wang

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • How to access internal table data from webdynpro to Flex application.

    Hi Connoisseur
    The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and  Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
    There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
    i tried to do pass internal table value  to flex-datagrid.but its not work.
    i would like to know
    1.how to access internal table data from webdynpro to Flex application.
    2.how to pass the internal table to flex-datagrid.
    2.how to pass dynamically in ADOBE flex.
    3. how to do Flex is receiving the wd context data?
    4. how can we update WD context with FLEX data.
    Ple give me sample example and step by step procedure.
    Regards
    laxmikanth

    Hi Laxmikanth,
    Please refer this...
    Flash island: update complex type from flex
    Cheers..
    kris.

  • I have Time Machine that I used to back up my old computer. It was running snow leopard. My MacBook died, so I got a new one which is running Lion.  how can I restore the data from the time capsule to my new Mac?

    I have Time Machine that I used to back up my old computer. It was running snow leopard. My MacBook died, so I got a new one which is running Lion.  how can I restore the data from the time capsule to my new Mac?

    In technical support, sometimes you have to make educated guesses. I'm sorry that you were offended.
    iTunes does prompt when it is going to erase a device, and the message is clear.
    She said in her message that she was able to successfully sync the old ipad. This indicated to me that itunes wiping the data was not an issue, because either it had been setup at the apple store (in which case it doesn't actually wipe the ipad despite saying it will*) (*based on a single case I saw), or because the itunes media folder was migrated.
    Furthermore, my solution was to tell her how to backup her ipad (by either doing it manually, or as a last resort, by deleting the corrupt backup -- that she couldn't access anyway.)
    I got that last part of the instructions from the "Taking Control of your iphone" book which I found samples of when I did a google search for "corrupted backup itunes".
    She marked this as a solution, so it worked for her.

  • Help, how to restore backed-up data from old 3GS to my new 3GS?

    Hi I recently got a replacement phone, and when i synced it to iTunes, the prompt to restore my backed-up data came up. However when I tried to restore, it prompted me to update my new phone's software to 3.1 first.
    So now, after updating my software, how do I restore the data from my old phone?
    Coz the first prompt does not appear anymore.
    Would appreciate your feedback, thanks!

    Upgrade to 3.1 first, do not sync or backup. After you upgrade, reconnect & select restore from previous backup & all your data will be put back on the new phone.
    When you right click on your phone under devices in the right column, one of your choices will be restore from backup.
    Message was edited by: wjosten

  • What does clearing cookies and data from iPad 4 mean?

    What does clearing cookies and data from iPad 4 mean?

    http://ipad.about.com/od/ipad_basics/ss/How-To-Clear-Cookies-And-Web-History-In- The-iPad-Safari-Browser.htm
     Cheers, Tom

  • I give up Mainstage is useless how does everyone else feel?

    I'm a working musician and have been using Logic for over 3 years for live performance. Imagine the joy I had last September when I learned that Mainstage was available. I was the first in my town to purchase the upgrade to Logic 8, I quickly installed it, read the manual, did some configuring hoping that mainstage would be the answer I had been waiting for for years.
    Well initially I was impressed. There were some problems but I knew Apple would be right on them and a solution would be at hand shortly.
    I upgraded to Leopard, had more problems, downloaded all the updates, prokits, etc. etc. had more problems! Called Support, subscribed to all the boards......yada yada yada
    Took my Macbook Pro into my dealer got it checked, added more ram, even added a larger internal drive to fit all of Logic 8 on. Bought a cooling desk. Wrote and Apple Script, +*nothing helped*+
    It just seemed to get worse
    Finally yesterday I had a spare 5 hours so I stripped Leopard off reinstalled Tiger, Logic Studio and the rest of my stuff from scratch believing that the problem was Leopard related, even that didn't work. Mainstage still clicked, popped, puked ..................... pick an adjective.
    I've been a loyal Apple customer since 1980 (I had an Apple II Plus) I currently own 3 Macs. I am really disappointed in the support this product has seen from Apple. The loss of faith in this product is apparent by the drop off in messages on all the discussion boards and this is a dangerous thing to a company I believed put it's customers first.
    I have decided to give up on Mainstage I will go back to using my synths to play gigs. I feel I have come to the table to try and get Mainstage running unfortunately Apple hasn't
    How does everyone else feel............... If there are any of you left out ther
    JN

    JN
    I have voiced my opinion about MainStage since the beginning, thinking that maybe Apple or people who have access to the MainStage developers, would read the posts here and try and get some of these issues resolved.
    MainStage is a great program conceptually. Compared to a lot of similar hosting programs out there, it has some nice implementation ideas such as sounds gradually fading out during patch changes so that reverb tails aren't cut off, extensive keyboard splits / layers, etc. and a pretty cool on screen layout for nice feedback during a live gig. There are some things that I wish Apple would have put in the program, like the ability to control external midi hardware.
    However, in spite of these great ideas and thoughts, the developers, in my opinion, didn't make sure the program was rock solid as it should be for a live application. If this were a program that you could use and be able to do retakes, make corrections along the way, etc., then these bugs would be accounted for by the user and dealt with. But for a live app, when you are playing in the middle of a song, where you only get one chance to make it right, and the application locks, pops, clicks, etc. in a sporadic and unpredictable fashion, it is absolutely unacceptable.
    I agree, most of the people who posted here back in the beginning have stopped because it didn't seem to make any difference. And there is usually a few users who have perfect systems. I have tried various ways to eliminate the unpredictable nature of MainStage but no such luck. Even last night at rehearsal, everthing seemed to be going along fine through the four first songs. I only had about 7 or 8 patches total and my memory usage was at about 30%. Then I change patches so we can start working on song #5. For this song I use a Native Instruments B4 patch (which also was one of two patches used in the previous song I just played). I have used this instrument many times and it has performed very well for the most part except for the occasional CPU spikes. I got about 2/3 of the way through the song and then noticed something ... I had no more sound coming from my instrument. I looked over at my MacBook and to my dismay, it was totally locked up. Needless to say, I wasn't able to finish the song because I had to reboot my machine. I know others may chime in here and ask if I had this configured or that ... and yes I have done all of these ad naseum ... this machine is soley devoted to my music rig, so its not like I am using it for games, word processing and everthing else. The bottom line is, this is another example of how quality control for this app and maybe Leopard in general has gone out the window.
    I really like MainStage, I have invested a lot of time setting things up to replace my Logic live rig and have tried to hang in there hoping help would be on the way. I am not even asking for the ability to control external midi equipment (though that would be nice), I would just like to have a dependable piece of software that is made for live use, not just a toy to jam with friends in the Garage.

  • How to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?

    how to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?
    Plz suggest me any BAPI or IDOC for that ..
    thanks in Advance .

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • How can i Pick the data from the string

    Hi Gurus
    How can i Pick the data from the string using regular expressions. for ex:
    1) 10000-san0001
    2) 3000000-rani0001
    3) 30-super003
    its doesnt mainain how many characters.
    like this i got string. now i only want  after the symobl( -) text (san
                                                                                    rani
                                                                                    super)  .how can i pick that
    can anyone provide me regular expressions.
    Thanks & Regards
    Sandya
    Edited by: sandya rani on Jan 29, 2010 2:51 PM

    REPORT  ZTEST.
    data: str1 TYPE string,
    str2 TYPE string,
    str3 TYPE string,
    lenth TYPE string,
    str4 TYPE string,
    temp type i value '0'.
    data: ii type i value '0',
          jj type i value '1'.
    Data : begin of itab OCCURS 0,
    l_string type string,
    end of itab.
    itab-l_string = '3000000-GUNDALA20001'.
    append itab.
    clear itab.
    itab-l_string = '2045677-iCVj1001'.
    append itab.
    clear itab.
    itab-l_string = '3000-ragh30001'.
    append itab.
    clear itab.
    loop at itab.
      MOVE 0 TO ii.
      MOVE 1 TO jj.
      SPLIT itab-l_string AT '-' INTO: str1 str2 .
      clear: itab-l_string,str1.
      lenth = strlen( str2 ).
      while temp < lenth.
        str4 = str2+ii(jj).
        if str4 CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or str4 CA 'abcdefghijklmnopqrstuvwxyz'.
          if sy-subrc = 0.
            CONCATENATE str3 str4 into str3.
          endif.
          ii = ii + 1.
        ENDIF.
        temp = temp + 1.
      ENDWHILE.
      write: / str3.
      clear: itab, ii, jj,str1, str2, str3, str4,temp, lenth.
    Endloop.

  • How does impdp handles external tables

    I am just done with schema import and one of the package is invalid because it is referring the External Table. I am getting the error " Table or View does not exist".
    How does impdp handles external tables ?
    Do we need to replicate the directories and files from the source to imported destination ?
    Thanks

    Hi,
    Yes...
    external table directory not available on imported destination operating system
    You need to create the directories and files from the source to imported destination
    Recompile the invalid package
    Thanks

  • How does one upload a file from flex to a cfc

    How does one upload a file from flex to a cfc?   Can you do the file upload via remote object? I usually do uploads cia cfm but prefer the asnc capabilities of remote object calls.

    Hi,
    The issue here is myFile. For flex we need to pass this name as paramenter becuase it's not html form item like:
    <cfcomponent>
        <cffunction name="uploadFile" access="remote" output="false" returntype="void">
        <cfargument name="file" required="Yes" type="any">
            <cffile action="upload" filefield="#arguments.file#" destination="C:\temp\" nameconflict="makeunique">
        </cffunction>
    </cfcomponent>
    From flex I'm getting the file using fileReference like:
    private function browseAndUpload():void
                    fileReference = new FileReference();
                    fileReference.addEventListener(Event.SELECT,fileReference_Select);
                    fileReference.addEventListener(Event.CANCEL,fileReference_Cancel);
                    fileReference.browse();
                private function fileReference_Select(event:Event):void
                    fileReference.addEventListener(ProgressEvent.PROGRESS,fileReference_Progress);
                    fileReference.addEventListener(Event.COMPLETE,fileReference_Complete);
                    fileReference.addEventListener(IOErrorEvent.IO_ERROR,onLoadError);
                    //fileReference.upload(request);
                    fileName = fileReference.name;
                    myFile.htmlText = fileReference.name;
                    SM_RO.importNSA();
    filerReference have an upload method to upload the file but I can't use that becuase I need to process my upload with my cfc.
    I'm getting an error:
    Failed to import the file. The cffile action="upload" requires forms to use enctype="multipart/form-data". Please also make sure the file is not open.
    I can't find the way to setup the enctype becuase again i can have html form items in flex, or I can?
    Thanks
    Johnny

Maybe you are looking for