session based DAQ in background with While loop

Hello,
I am coding a program in Matlab to acquire data in the background and at the same time reading data packet from the UDP.
I am doing something like
\\
s.startBackground
while(s.IsDone==0)
a=fscanf(udp)
end
However, the DataAvailable event listener never get triggered. Only when I remove the while loop it can be triggered. And no error msg is poping out.
Any ideas???
Thank you very much!!

回答 (1 件)

Arpit Agarwal
Arpit Agarwal 2017 年 6 月 13 日

0 投票

Hey, were you able to figure out the exact cause of the problem? Also, how did you overcome it. Thanks

カテゴリ

ヘルプ センター および File Exchange で Data Acquisition Toolbox についてさらに検索

タグ

質問済み:

2015 年 4 月 10 日

回答済み:

2017 年 6 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by