LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with while loop ( without delay)!

I want to make a main VI, that calls some control value from 2 different VI ( position.vi  and value.vi ). I put 100 ms delay in position.vi , and 1000 ms delay in value.vi. But in the main VI, i don't want to put any delay. So I got problem with main VI , it works seem not correct!  How can i fixed it? Thx.
 
The working way of main VI ( try123.vi)  same with the ideal.vi ( attached).
Download All
0 Kudos
Message 1 of 12
(3,594 Views)
The ideal.vi
0 Kudos
Message 2 of 12
(3,593 Views)

Hi ha noi,

i attached an example of what i mean in the other thread. It is not yet ready, but you can think about it i tell me if it can be a way to solve your problem.

Mike

Download All
0 Kudos
Message 3 of 12
(3,576 Views)
Thanks mike!
I'm trying to understand your vi. You can try my vi, then you know how it works! I just want to delete the delay! but it not work!
0 Kudos
Message 4 of 12
(3,564 Views)

hello ha noi

the other Value you get from the read_value.vi is only to see if it is a new value, right?

Mike



Message Edited by MikeS81 on 01-16-2008 07:51 AM
0 Kudos
Message 5 of 12
(3,557 Views)
Do you mean "#" value? It's number of loop  in read_value.vi ( 1 loop => 1 value created).
0 Kudos
Message 6 of 12
(3,552 Views)

hi again,

i think this vi now do what you want.

Mike

0 Kudos
Message 7 of 12
(3,547 Views)
I tried to run your vi, but it not works in my computer.
 
I have a question for my vi : i thought the second case structure not works. But the position indicator worked ( it showed the changing of position) so i think it's work. But why the array indicator almost time is [0,0] ?
0 Kudos
Message 8 of 12
(3,536 Views)
Hi
now it works. The values are captured by the queue. Now you have to check the main functionalty of that what you want. Smiley Happy
 
Mike
Download All
Message 9 of 12
(3,529 Views)
It's work!  Can you explain the reason that number of main loop increse not very fast? Normally, in few second it can reach more than 20.000 loops ( if i don't put any delay)! Thanks  alot!
0 Kudos
Message 10 of 12
(3,520 Views)