10-07-2007 05:35 PM
10-08-2007 06:57 AM
06-02-2008 06:58 AM
Hi Ray,
Using TS only, where is the value of the loop index of a sequence step? How do I read it?
Thanks
Rafi
06-03-2008 10:41 AM
05-09-2011 10:06 AM
I use loopindex in runstate for my array but analyze gives me error for out of range because I use (loopindex -1) even in the loop define I init this loopindex starts at 1 in custom mode. How can I Re_init loopIndex value in variable section???????? Thanks.
05-10-2011 11:38 AM
You should be able to use a statement similar to "RunState.LoopIndex = 1" assuming 1 is what you wanted to re-init that index too. You should be able to put that statement in an expression box of a step where you what it to be re-initialized.
05-10-2011 01:44 PM
I did but analyzer still give me warning even I run debug this block. Result is "test fail" for this block.
05-12-2011 10:55 AM
I am not sure what you are testing in this step, or if the re-initialization of the index is part of the test logic. Also if you are talking about the sequence analyzer that is giving the warning, it is trying to ensure that you are using best practices, and the rules it usees to analyze your sequence can even be created by the user. That means it may not be a problem that will affect the performance of the sequence file or the logic, but it may be hard to understand and less readable code than desired. If this is the case, you can try to restructure the logic so that it does the same thing but follows the rules of your anaylzer. Having the test fail I think must be the logic of the step, and not have much to do with the warning of the sequence analyzer, but I would need more information to be sure.
05-13-2011 12:36 PM
That mean RunState structure can not be initialize and it always be started at 0. I try to check if the signal I measured has PULSE which data will store in local array. Maybe I will use Locals.Index so I can initialize at 1.