oahchao Posted March 3, 2006 Report Share Posted March 3, 2006 Hello, I'm new to LabVIEW and current meet a problem with my program. My topic title is not so accurate, sorry about it :headbang: I draw a simple block diagram here for easy understanding. the Read Data Program using ActiveX to read data from Excel .xls file Wait Time t1 may not equal to Wait Time t2, t1 and t2 may not be constant as well t1 comes from Excel file A and t2 comes froms Excel File B. My problem is: Because t1 and t2 are not equal, i cannot use a single While loop and if i use 2 While loops for 2 Read File Sub-programs, Y will not be send out till the end of While Loop. and for the Instrument Control Program 1, every time X(from File A) or Y(from excel B) changes, it need to be updated. Can I have any suggestion from you guys? Thanks a lot!!!! Best Regards Oahcchao Quote Link to comment
Aitor Solar Posted March 3, 2006 Report Share Posted March 3, 2006 You can use queues and notifications to send data between independent loops. They are in the synchronization palette and are an easy solution: just send the data from any loop and wait for it in another. Queues admit any number of elements waiting to be retrieved, notifications just one. Saludos, Aitor Quote Link to comment
Mike Ashe Posted March 21, 2006 Report Share Posted March 21, 2006 Look in the /examples/general/queue.llb for examples on using the queues. You probably will be able to just modify one of these. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.