LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

incrementing sequence structures

I am sure there is an easy way to do this, but I can't quite get it to work properly. Any help would be appreciated:

I have a while loop that runs for 40 seconds. When those 40 seconds are up, it triggers a dialog box to pop up. That dialog box is in a sequence loop that contains 30 different frames. Each frame has a different dialog box message. This entire portion is surrounded by a for loop.

What I am trying to do is have:

1. the while loop run for 40 seconds
2. the first frame of the sequence with dialog box #1 to pop up
3. the original while loop to run again for another 40 seconds
4. the second frame of the sequence with dialog box #2 to pop up
5. the original while loop to run again for ano
ther 40 seconds
6. the third frame of the sequence with dialog box #3 to pop up

and so on....



I have a for loop around the entire thing so that it can repeat the same while loop structure multiple times. I have a 30 wired into the N input of the for loop so that it will run the entire portion 30 times (corresponding to the 30 different dialog box messages that have to pop up).

How can I get one and only one frame of the sequence structure to pop up after the while loop finishes its 40 second period of running?

I would gladly email you this portion of the code for you to take a look at if it will help. Just let me know where to send it.

Thanks.
0 Kudos
Message 1 of 4
(2,900 Views)
It seems to me that it would be much easier to use a case instead of a sequence and wire the increment (i) of the while loop to the selector of the case. In this way loop 0 will execute case 0 ,1 executes 1 and so on each after the 40 sec wait.
Is there any particular reason for using the sequence?
Message 2 of 4
(2,900 Views)
This does seem to be a good application for a case statement. If you do
need to keep the sequence format for some reason, could you put the while
loop in vi that you can drop into each of the sequence frames?

Dan.

"Koen" wrote in message
news:506500000005000000EE1C0000-984280909000@quiq.com...
> It seems to me that it would be much easier to use a case instead of a
> sequence and wire the increment (i) of the while loop to the selector
> of the case. In this way loop 0 will execute case 0 ,1 executes 1 and
> so on each after the 40 sec wait.
> Is there any particular reason for using the sequence?
0 Kudos
Message 4 of 4
(2,900 Views)
Send me the VI if you wish. I'd be glad to help.

mark.wysong@ae.ge.com

Mark
0 Kudos
Message 3 of 4
(2,900 Views)