Meaningful way to identify steps executed in a loop?

Hello,
I have a set of tests, where I apply a voltage to many different pins (sequentially) while checking the response for each pin on a CAN bus. I implemented the tests in a loop, like this (pseudo-code):
paramsArray = initParamsFromFile()
For_each (params in paramsArray)
Apply params.voltage to params.pinId
Test canValue == params.expectedResponse
End
paramsArray is an array of 50 containers (LabVIEW clusters), which is populated from values in a file. Each array element contains a pin ID, a voltage to apply, and a value to expect from the CAN bus.
However, in the log, the tests for all 50 pins end up with exactly the same Step Name and Step ID (I'm using the default TestStand table schemas).
So my questions are:
Is this a good way to implement a repetitive set of tests?
What's a good way to distinguish the different (repeated) steps in my log?
Thanks!
Solved!
Go to Solution.

Hi,
1.) It is ok, you can do that because it will keep your sequence small as possible and (fast).
    But you could  also use the For-Each StepType so others will see more better the loop behaviour
    The looping feature is a little bit more "hidden" in the settings-field. In large sequences this is
    is often overlooked. It is just your choise. I am using both stuff.
2.) Just rename the step name in the PreExpression field by using the LoopIndex
     Step.Name ="MyName:"+ Str(RunState.LoopIndex+1)
Hope this helps
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
Loop.seq ‏5 KB

Similar Messages

  • Is there a way to identify a thread you want to return to without tagging?

    Is there a way to identify a thread you want to return to without tagging?
    I will try to explain what I mean.
    Let say someone asks a question and you are curious at what people may suggest as solutions.  The interest could range from simple curiosity to "oh, I don't know how to do that, but would like to learn", or whatever reason that would cause someone to revisit a thread. 
    But the interest is weak enough that you do not want to subscribe to the discussion.  And the topic is not something you want to tag because it is an unusual thread that is unlikely going to re-occur, and you are not sure if you will or will not revisit after a solution is posted or the discussion goes a certain way. 
    Another example is if the question is interesting, you do not want to mark it because there is no answer / solution yet and you are curious if anyone would ever provide a solution, so you do not want to tag it and a subscription would be useless if no one replies.
    OR
    Maybe it is a hot topic of the day / week and that's it..  You would not revisit at a later date.
    But for the moment, you want to easily find it during the day or have a reminder that you want to revisit the thread ether in the near future or later when someone has provided an answer.
    Is there an easy way to mark threads that you want to re-visit?  Like a "todo" list, but rather a "to re-visit" list...
    R
    Solved!
    Go to Solution.

    Delicious is a website wher you can store URL for later use/retrieval. For every link you add you can add some tags, a description, and you can share them with others.
    I'm not using it for the use you have in mind, but it would be an idea. I have set up a special Mouse Gesture in Firefox that creates a delicious entry for the current page.
    I use delicious heavily when I am looking on the internet for a solution to a specific problem, what happens during such a search is that you see 20-30 pages that look promising but only 3 are actually on topic. Sometimes it turns out one of the 'not so good pages' are actually googd pages, but 3 days later you don't know exactly the search term  you used, or you are on another PC and it's hard to trace back your steps on the WWW. So by using Delicious I can easily create a list of pages on a particular topic.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Is there any way to identify the particular socket connection is closed ?

    Is there any way to identify the particular socket connection is closed or not ?
    Any methods ???
    How can the program knows the connection is lost or some thing ...
    Is the socket throws some excpetions when there is no active connection ???
    namanc

    If you get an IOException when you try to use the socket, the connection was obviously closed.
    The correct way for an application to know if the socket was closed is:
    1) the server sends a message indicating that the socket should be closed
    2) the client closes the socket itself

  • A function or way to identify a word before any char

    Hi All,
    I am looking for a way to identify the FIRST word BEFORE any specific character. For example :
    I have a string: "This *day*, of OCT *is*, very *Sunny*, "
    I want know if there is a function or a logic to identify just the FIRST word before ',' (here ',' is the specific character).
    So the solution would be: "day is Sunny"
    Kindly let me know.
    Thank you,
    Aj09

    Hi,
    This sounds like a job for regular expressions.
    REPLACE ( REGEXP_REPLACE ( txt
                      , '[^, ]+'     -- anything that's not a comma or space (1 or more)
                        || '( |$)'     -- right before a space (or end)
         )I assume a "word" is any group of one or more characters that does not include a comma or space.
    If other punctuation characters( like '.' and ')') delimit words, then this will have to be adjusted.
    The REGEXP_REPLACE removes all words that do not end in a comma. The comma at the end of each word kept is part of the results.
    Since you don't want the commas in the output, I used REPLACE to get rid of them.

  • Is there a way to identify other users on my WiFi?

    Is there a way to identify other users on my WiFi?

    Open AirPort Utility (Applications/Utilities) and click on your AirPort. It should list all the wireless devices connected.

  • Is there a way to not to execute a query on table rendering?

    Is there a way to not to execute a query associated with an af:table on table rendering on the page?
    I would like to control this programmatically.
    Any examples will be much appreciated.

    Yes, there is.
    {thread:id=2362354}

  • Any way to identify emails that were open when Mail crashed?

    Admittedly, I probably had too many emails sitting open (plus a bunch of open tabs in 3 different browsers).
    Mail crashes, and I Force Quit.
    When I reopen mail, a few emails do repoen, but the majority do not.
    Is there any way of identifying which emails were open at crash time? It's sort of my to-do list. Admittedly, not the best way to go.
    I'm on 10.6.8 Snow Leopard, MacBook Pro mid-2010.
    Thanks,

    - Transfer iTune purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program such as one of thos discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    If you are in the USA, you can redownload mos tiTunes purchases viua iCloud beta by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Is there a way to identify MRP requisitions transfered to SRM?

    Hello experts,
    We are using SRM 5.0 connected to an ECC 6.0 backend system, using ECS scenario.
    I have the following question:
    Is there a way to identify in SRM requisitions transtered from ECC that are created in R3 from an MRP process? Meaning like an indicator or a flag in a table in SRM?
    Thanks!
    Regards,
    Gilberto Gallardo

    Hi
    <u>Please go through the SAP OSS Notes below as well -></u>
    Note 451245 Framework conditions connection MRP <-> EBP
    Note 505030 Restrictions for the integration of external requirements
    Note 441892 Integrating external requirements
    Note 831348 Source List for Stock requirments and MRP list -wong results
    Note 528808 Incorrect item numbers during the update (add items)
    Note 540339 Purchase requisitions are transferred incorrectly
    Note 534419 Transfer of purchase requisitions into the procuremnt system
    Note 532293 Fulfillment: incorrect quantity for activities and limits
    Note 447516 Composite SAP note PlugIn Correction for External Requiremts
    Hope this will help.
    Regards
    - Atul

  • Unload Option (After Step Executes) All subseq steps?

    We have a large number of tests written in TestStand 2010 which, when we run multiple tests, the response from TestStand slows dramatically.  This slowing is most noticable where there are time dependent:
      Time = 0
      WaitTime = 2
        Verify Parameter(X) = Off
        Verify Parameter(Y) = Off
        Verify Parameter(Z) = Off
      WaitTime = 4   FAILS
    When run by itself, the test passes, but when run overnight (or several days), where a large number of tests have been run before this, the test Fails, where the WaitTime has expired.  Multiple tests are typically called, using another "Main" to call the different tests.  1500 to 2000 steps in each test sequence file is typical.
    Basically, as more test are run, test execution slows more and more.  It appears that TestStand is using up system resources (memory).
    All Reporting is OFF (Configure/ReportOptions "Disable Report Generation" is checked
                                   (Configure/ModelOptions "Discard Results or Disable Resutls when not required by Model" is checked.)  (doesn't matter since reporting is off)
    I don't think that it's the reporting that is using the resources.
    I'm suspecting the sequences are not being unloaded after exectuion and using up memory, so that eventually memory is swapped to disk (my computer has 3 GB memory, this is typical for the other systems as well).
    Three Questions:
    1.  I'm investigating TestStand's cache of steps that have been executed.
    In the Step "Run Options" is the "Unload Option".
    Typically we have a "Main" that calls a large number of subsequences, each is an individual test case.
        Can I change the "Unload Option" for these subsequence calls (in the "Main" sequence only) to "Unload after step executes"?  Will this unload all steps that were call recursively to free up the system resources that were used by the subsequence call and down (recursively)?  Or will it just unload THIS step?
    2. I'm aware that there is a "New Execution" that can be used (when complete, unloads all steps), but this doesn't allow passing Parameters to the subsequence easily.
      However, could I use "New Execution" for all those subsequence calls that do NOT require arguments.
    3. Is there another option that I can use to free up system resources more globally?
    Mike

    Mike,
    even though you have switched off the report generation, Teststand is still recording all the results of steps which are set to Record. Therefore you will be filling up the ResultList variable, which usually the cause of TestStand slowing down after longs runs.
    If you dont need to record this data then switch it off in the Configure | StationOptions.. select the Execution Tab. Enable " Disable Result Recording for All Sequences"
    Regards
    Ray Farmer

  • Way to identify if a number is a prime in Labview?

    I need a
    way to identify if a number is a prime. Are there any inbuilt functions such as the
    matlab Boolean “isprime(X)” or a simple way to use matlab with labview?

    if you have LabVIEW 8.0 or later, you can use a simple Mathscript node. No need for matlab.
    Here are two possible implementation examples:
    Message Edited by altenbach on 12-17-2006 09:24 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    isprimeScalar.png ‏13 KB
    isprimeArray.png ‏19 KB

  • HT1535 Is there a way to identify which copy of a duplicate is tied to a playlist so the correct duplication can be removed?

    Recent Window's Vista reimage resulted in many duplicates in iTunes Library.  Too many hands in the process.  I don't see a way to identify which version is tied to a play list so I can remove the unattached duplicate.

    Hello 3PodFam
    If you are trying to get rid of duplicates within iTunes, the articles below will give assistance on how to remove them from iTunes as well as backing up your playlist and then import them. The export or import a playlist go to File > Library and you will see either option at that point. To show duplicates go to View > Show Duplicates Items.
    iTunes: How to backup and restore playlists
    http://support.apple.com/kb/TA47831
    How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I have os x 10.5.8 and noticed a menu extra that I have never seen before. Is there a way to identify it? I tried to delete it i.e. comm drag, didn't work.

    I have os x 10.5.8 and noticed a menu extra that I have never seen before. Is there a way to identify it? I tried to delete it i.e. comm + drag, didn't work.

    If you can't CMD+ drag it off, try this...
    You've probably got a couple of corrupt preference files.
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/<yourname>/Library/Preferences/ com.apple.systemuiserver.plist
    /Users/<yourname>/Library/Preferences/ByHost/com.apple.systemuiserver.xxx.plist
    where 'xxx' is a 12 digit (hexadecimal) numeric string.
    This will reset your Menu Bar to the default, you'll need to go through System Preferences to reset the ones you need. (If they are already checked, uncheck them first and then recheck them).
    reboot

  • Is there any way to identify the two classes are compiled by same vm

    Is there any way to identify the two classes are compiled by same vm?
    Thank's a lot.

    I think this is the better forum than java compiler. The answer to the question you asked is no.
    But that question is not the best way to address your problem.
    If this were me, I'd use a tool like ASM (http://asm.objectweb.org/) to read in that file, and replace the getToday() method, with one like this
    long getToday() {
        return 20080101;
    }and replace the class file with this new one. (keep the old one, they might be using a class loader that verifies class signatures or something)
    (They said the code you are looking at could have been changed by you - so take the hint and change it back).
    If they've ripped you off, this will restore justice much more cheaply and effectively than involving the lawyers. If they then sue you for breaching the license agreement, that would probably force them to disclose their underhand tactics.
    OTOH, if you're lying to us about the purchase, and needing to pay for upgrades to fix the performance issue, and instead are trying to crack some trial software, then I hope they are using a custom class loader that checks the integrity of the classes.
    If you are being ripped off, why are you not telling us the name of the company? I am not sure who is being ripped off here.
    Bruce

  • How to get terminate status and number of all steps executed in Teststand

    Hi ! Could someone teach me,pls?
    1. Query:
        How can i get the sequence status of Terminated?
        Aim:
        I want to Terminate  sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
        My action:
        i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well 
    2. Query:
        How can i get the number of all steps executed in Cleanup of one sequence?
        Aim:
        I  want  to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
        My action:
        call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
    Thank you in advance!
    Solved!
    Go to Solution.

    AllanXu wrote:
    Hi ! Could someone teach me,pls?
    1. Query:
        How can i get the sequence status of Terminated?
        Aim:
        I want to Terminate  sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
        My action:
        i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well 
    2. Query:
        How can i get the number of all steps executed in Cleanup of one sequence?
        Aim:
        I  want  to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
        My action:
        call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
    Thank you in advance!
    1. Execution.GetStates() - look at the termination status. Termination is an execution specific state, not a thread state.
    2. You could use a PostStep callback and do the counting yourself (e.g. in a file global or station global variable), however there is a performance cost to poststep callbacks so it depends on whether or not it's worth the performance cost in your particular use case.
    Hope this helps,
    -Doug

  • Why substitution variable &input line don't execute on a loop?

    Hi Group,
    Why the line where substitution variable is assigned doesn't execute over the loop. only the first time.
    SET SERVEROUTPUT ON
    DECLARE
         v_flag NUMBER(1):= 0;
         v_counter NUMBER(1):= 0;
    BEGIN
         LOOP                     
              v_flag := &input;
              v_counter := v_counter + 1;
              dbms_output.put_line(v_counter);
              EXIT WHEN v_counter = 9;
         END LOOP;
    END;
    /thanks.

    Hi,
    user12152340 wrote:
    Thanks for your help... so there's no way to interact with the database inside a loop. I was looking a way that PLSQL block asks for different values.No, sorry. PL/SQL can't do any kind of user interaction. That's what front-end tools, like Apex, are for.
    You can have loops in SQL*Plus, but it's not pretty. See this thread:
    Re: How to give the different values to runtime parameters in a loop?

Maybe you are looking for

  • Why won't Photoshop let me enter my serial number?

    I'm trying to register for my Photoshop CS4, but for some reason, it won't let me type in the serial code. What's wrong?

  • CGContextDrawImage is too slow

    Hi, I am loading a image from iPhone photo album, scale it, and then copy all the pixels to a allocated buffer. My code is here: 1. Get the UIImage from UIImagePickerController 2. Check the size and orientation and then come up a tranformation matrix

  • How To Add scrollbar in Spark list which will work on mouse movement ?

    Hi, I want to add scrollbar in Spark list which will work on mouse movement, i.e instead scrolling down it will sense mouse position and scroll automatically. I could not find a way to handle this with horizontalLayout. I tried hovering on list and s

  • Question Re. Quicktime 7.04 Software Update

    Hi All, I have a question in regards to the 7.04 software update. I am running QT Pro 7.02. I read the disclaimer: QuickTime 7.0.4 is an important release that delivers numerous bug fixes, support for iLife '06, and H.264 performance improvements. Th

  • Download other than itunes?

    I recently received an ipod touch 1st gen and want to know if the only place I can downlown music from is itunes.