LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I noticed that any other code in my while loop only gets called at the 1st time through the loop and when a event is executed.

HI there!
 
I have a while loop, in which i am reading from/writing  to a compact rio. Furthermore, i added a event structure, its the 1st time i'm using it so i'm a bit lost at times.
 
I have the event structure set up for all my button i want to trigger an event. However, i have some other code which i would also like to be executed, evebn though no event has been executed.
 
I noticed that the other stuff in the loop only gets executed the 1st time through the loop and when an event is triggered.
 
My question therefore is, how do i get the other stuff to execute as well?
 
Please advise.
 
Thanks.
Regards,
0 Kudos
Message 1 of 3
(2,515 Views)
Put the other code in the timeout event case.  Wire some positive value to the timeout hourglass input.  That code will execute everytime a timeout occurs.  For instance, if you wire 100 into the timeout, the code in that case will execute every 100 mSec.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,512 Views)

Hi there!

 

Thanks for your advice, i think that should help me continue with my stuff...

 

Thanks.

Regards,

0 Kudos
Message 3 of 3
(2,505 Views)