LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waiting without events structures

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?

 

Leonardo de S. Cavadas
Maintenance Engineer and Inspection - Bureau Veritas do Brasil

Engineer Metallurgist with emphasis in Advanced Materials
Technologist in Computer Science
0 Kudos
Message 1 of 5
(2,728 Views)

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.

timing loop.png

 

timing loop FP.PNG


Paul
0 Kudos
Message 2 of 5
(2,719 Views)

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,

 

0 Kudos
Message 3 of 5
(2,712 Views)

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.

Leonardo de S. Cavadas
Maintenance Engineer and Inspection - Bureau Veritas do Brasil

Engineer Metallurgist with emphasis in Advanced Materials
Technologist in Computer Science
0 Kudos
Message 4 of 5
(2,693 Views)

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?


Paul
0 Kudos
Message 5 of 5
(2,682 Views)