04-03-2014 08:10 PM
Hello,
This is what I am trying to do (maybe stacked sequence is not a good option):
1. User enter no of iterations
2. Lets say user enters"2", then i want 2 different plots, 2 different indicators to be displayed
3. If the user enters "3", then i want 3 different plots, 3 different indicators to be displayed
3. Since i want 2 different indicators, I dont wanna use for loop. As for loop will give me an array and I can probably index the array, but then i would have to control the display as well and it is manageable if i have less iterations, however, if i have more iterations then it would be an issue
4. So I was thinking if I can dynamically change the number of sequence in stacked sequence then depending on no of iteration, I would have corresponding sequence with each sequence doing the same thing. The benefit being i dont have to do any post processing
Please let me know if this is the right thought process?
Thanks
04-03-2014 08:42 PM
Dynamically changing the number of sequences in a stacked sequence is going to be very hard.
My thoughts on this would be why not simply use a 2 dimensional array with N+1 rows where N is the user input number, from there you could plot all of the relevant plots onto a single graph which I am assuming will be using the same axes, and use an array of boolean indicators for the indicators.
This seems like it would be a lot simpler then trying to change the number of stacked sequence sequences but then again I am not entirely sure what it is that you want.
04-04-2014 02:14 AM
04-04-2014 06:41 AM
You can create an array of clusters with a plot indicator in the cluster, then you can easily add/remove what's shown.
/Y
04-04-2014 08:44 AM
Use a FOR loop. Wire the i straight into the case structure's selector. Now you basically have your sequence structure, but you can choose how many iterations to have based on N. The sequence structure must run straight through no matter what.
But a state machine is probably really what you want.