11-10-2010 06:13 AM
Plataform: PXI-SCXI
Software: Labview 8.6
OS: Linux Mandriva 2006 (necessary)
1- Have some problem in structure in attached?
2- Is possible that max time interval exceed 15 seconds?
3- If item 2 do occurs, what can be?
4- What other structure can i use?
11-10-2010 06:33 AM - edited 11-10-2010 06:35 AM
I am not sure what you are trying to accomplish. You have a 15 second wait for every iteration of the while loop.
So the flow is:
Wait 15 seconds while simultaneously waiting additive of 9 seconds in your sequence.
If you want to wait 15 seconds PRIOR to the sequence structure, then take the output of the total time to wait, wait primitive and wire that to your sequence.
your total time is always going to be about 9 seconds because the sequence finishes executing BEFORE the initial 15 seconds expires.
I have added code, see attached pic that looks at the total inner loop time.
11-10-2010 06:43 AM - edited 11-10-2010 06:46 AM
Hi leocavadas,
I've placed "elapsed time" tool in the second (inner) while loop, and it seems that 15.001 seconds pass (wait).
It'll help if you'll explain what the vi suppose to do, and then we'll be able to help more.
Sincerely,
11-10-2010 07:40 AM
first, very thanks by help simply_me and JPS.
I have a complex acquisition process and my problem is:
The total time dont respect the input value. My acquisiton + test + storage perform 4 minutes and i put 7 min to total time( +- 3 minutes waiting), but i get intervals of 12min, 15 min, 30 min, 58 min, 26 min between sequentials loops. I dont have event structures in software and run it in development enviroment.
i cant use timed loop, labview 8.6 Linux.
i cant put code because business rules, sorry.
11-10-2010 07:54 AM
it does not sound like a timed loop would help based on your problem description. Without seeing the code, we can only guess as to what is going on.
Is it possible that your are writing a large volume of information to file and then continuing to append to the file by opening, writing and closing the file on each iteration of the while loop?