|
Post by ACP on May 20, 2014 11:40:38 GMT
Hello,
I want to create the sequence of nested loops. Until then, I'm getting there. For at runtime against the loop which has the lowest level remains in the last iteration. I wish I could reset the loop for that at the next iteration of the loop the highest level, the innermost loop level to turn.
Will it a way to reset a loop without resetting the sequence?
Thank you to you!
|
|
|
Post by Thoric on May 22, 2014 11:41:06 GMT
Hi ACP,
Currently there is no way to set the current iteration on a loop, only the total number of iterations. If you want to change the total number of iterations for a loop I would not recommend doing this whilst the loop is executing as this could possibly confuse the navigation engine that steps through the sequence definition. You would need to change the value in edit mode and then reset the sequence in preparation for a fresh run through.
I can see that changing the number of iterations for a loop whilst it's executing could be useful, and for that we have an enhancement idea that we may choose to introduce in future Sequencer releases that works a bit like While Loops do in LabVIEW. But for now, in V1.0, this is not something we support.
|
|
|
Post by ACP on May 23, 2014 8:34:11 GMT
Sequence |Loop1 (1 to 4) | |Test0 | |Loop2 (1 to 3) | | |Test1 | | |Test2
The iteration values by loop
I get that I will wish that
Loop1 Loop1 it1 Loop2 it1 Loop2 it1 it1 it2 it2 it3 it3 it2 Loop2 it2 Loop2 it3 it1 it3 Loop2 it2 it3 it3 4 Loop2 it3 Loop2 it3 it1 it2 it3 it4 Loop2 it1 it2 it3
I just want reset the loop2 at his end for the next iteration of loop1. I do not think there was need to change the number of iterations, just have a reset function as the sequence.
|
|
ACP
New Member
Posts: 5
|
Post by ACP on May 23, 2014 8:44:49 GMT
excuse me the layout does not match
I get that
Loop1 it1 Loop2 it1 it2 it3 it2 Loop2 it3 it3 Loop2 it3 it4 Loop2 it3
I will wish that
Loop1 it1 Loop2 it1 it2 it3 it2 Loop2 it1 it2 it3 it3 Loop2 it1 it2 it3 it4 Loop2 it1 it2 it3
|
|
|
Post by Thoric on May 23, 2014 16:50:52 GMT
Are you saying that your inner loop doesn't return to zero iterations when the outer loop comes back around? If so, then this is a problem. The way it is designed to work is as one would expect, in that the inner next loop (loop2) will complete 3 iterations for every iteration of the outer loop (loop1).
Therefore, for your definition: |Loop1 (1 to 4) | |Test0 | |Loop2 (1 to 3) | | |Test1 | | |Test2
you should get: Test0 Test1 Test2 Test1 Test2 Test1 Test2 Test0 Test1 Test2 Test1 Test2 Test1 Test2 Test0 Test1 Test2 Test1 Test2 Test1 Test2 Test0 Test1 Test2 Test1 Test2 Test1 Test2
Can you confirm that this is what you are or are not receiving please? If so, please reply with your sequence added as an attachment and I will take a look, thanks.
|
|
ACP
New Member
Posts: 5
|
Post by ACP on May 26, 2014 7:18:43 GMT
Hello, I confirm that I do not have these results and I will forward my sequence. Thanks, ACP Attachments:MySequence.zip (173.63 KB)
|
|
|
Post by Thoric on May 28, 2014 1:54:38 GMT
Hi ACP,
Thank you for attaching the sequence. I will look into this immediately and hopefully get to the bottom of your issue for you.
|
|
|
Post by Thoric on May 31, 2014 20:11:59 GMT
Hi ACP, Sorry for the late reply, I've been unavailable, but I can confirm that I see the same issue as you and will be looking into getting a fix released as soon as I can. Thank you for your patience.
Edit: Keep a look out for PTP Sequencer V1.0.2.141 which promises to fix this issue for you. It will be available via our website (www.ptpsequencer.com) and the NI Tools Network soon (within a few days hopefully). If you need it immediately, let me know and I'll email it to you directly (I have access to your account details and can pull up your email address).
|
|
ACP
New Member
Posts: 5
|
Post by ACP on Jun 2, 2014 9:11:57 GMT
Thank you
I'll cheked the updates.
|
|
ACP
New Member
Posts: 5
|
Post by ACP on Jun 5, 2014 13:20:55 GMT
Hello, Thank you for your quick response. I did the update ptp_sequencer_v1_0-1.0.2.141.vip. I tested different types of sequences and it's do the job in many situations. Only one is a problem. I am sorry you'll say that I'm never satisfy. when I do a loop test without added directly behind and added a nested loop imediatly after. The execution don't work correclty. I will forward my two sequences. One sequence work correctly. The other entitled SeqFault.pss illustrate my problem. MySequences.zip (174.69 KB) I thank you so much. ACP
|
|
|
Post by Thoric on Jun 6, 2014 16:14:28 GMT
Sorry about the issues you're having, I'll download your files and take a look as soon as I can for you.
OK, I can see the problem, I'll look into a repair a.s.a.p. for you!
|
|
|
Post by Thoric on Jun 7, 2014 23:46:29 GMT
I tested different types of sequences and it's do the job in many situations. Only one is a problem. when I do a loop test without added directly behind and added a nested loop imediatly after. The execution don't work correclty. I will forward my two sequences. One sequence work correctly. The other entitled SeqFault.pss illustrate my problem. Hi ACP, Thank you for the sequence files, these were helpful in determining the problem. It's actually the same bug as before, but my recent fix didn't catch 'all' circumstances. So I've checked all the corner cases I can think of, which includes your attached sequences, and now it works as it should. V1.0.3 is built and will be available from our website and the Tools Network shortly. Keep your eyes open for a notification through VIPM. One quick note: In your failing sequence, you had the final test "ETUVETemperature" outside of both loops, so it only runs once at the end (after 99 iterations of the TTITension test). Did you mean to have it inside the first loop such that it occurred following the inner loop each iteration? For example, 9 iterations of TTITension and one of ETUVETemperature, then repeat all that for 11 iterations? Below is a tree view of your failing sequence, as you provided it, showing ETUVETemperature outside of both loops, and the second image shows it included in the ETUVETemperature loop (which is how I presumed you want it?). If this is your intention, then you need to move that test into the outer loop for it to repeat once per outer-loop iteration. - causes 99 x TTITension, then 1 x ETUVETemperature - causes 11 x ( 9 x TTITension then 1 x ETUVETempeature)
|
|
ACP
New Member
Posts: 5
|
Post by ACP on Jun 10, 2014 6:13:51 GMT
Hello Thoric,
Thank you I will checked the updates.
About the file, I can be wrong in one chosen. You understood what I meant.
Thank you.
ACP
|
|
|
Post by Thoric on Jun 10, 2014 10:11:25 GMT
The update is already available from our website (www.ptpsequencer.com) but not yet from the NI Tools Network.
|
|