01-29-2008 10:04 AM
01-29-2008 10:43 AM
sorry, it seems there is a problem about data transferring between the loop in sub_vi and the loop in main_vi. So the data will be sent back, after the loop of sub_vi is done or interrupt.
Does anybody know how to fix that problem, data transferring between the main_vi and sub_vi's loop.
Thanks a lot
01-29-2008 10:47 AM - edited 01-29-2008 10:50 AM
Hi hanwei
a Queue should help you. Create the Queue with Obtain Queue and give both vi´s the reference. In one loop you write the data into the queue and inthe other you wait til some data is available.
Mike
01-30-2008 01:54 PM