Jump to content

continuously Read 2 Excel files in different time interval


Recommended Posts

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.

200633101143387.jpg

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

Link to comment

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

post-1450-1141379213.jpg?width=400

Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.