フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why does app execution pause when a script is getting data from DAQ

1 回表示 (過去 30 日間)
Matt C
Matt C 2019 年 10 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a script file which collects data from a DAQ. The script calls an App (GUI) which essentially just serves as a front end for interaction and data display. There is a while loop with a pause() in the script to control timing (sample rate). I understand that I can drop all the code in the app, however I am trying to avoid renaming a bunch of variables. Anyway, I have a non-interruptible button whose callback modifies an App property. Now the weird bit. If I am not reading from the DAQ and instead have a dummy function generating data, the button callback executes perfectly. When I replace the dummy function with the DAQ single scan the callback never executes, but ends up in the queue and executes when I force quit the script. Can someone explain this behavior? I can easily circumvent the problem with a state button, but I want to understand why it is happening. Specifically, why the DAQ call is preventing app callbacks from running.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by