10-19-2006 11:41 AM
10-19-2006 02:49 PM
I'm not aware of any explicit command to disable those callbacks.
Since all of those functions are relate to the tollbar being operated, probably the best way to have those functions do nothing is that of hiding the toolbar before entering your critical section of code and enabling it after.
As an alternative, you could modifiy tollbar code to customize it to your desire: not so easy since you'll have to carefully study that code before attempting to modify it.
10-19-2006 02:59 PM
Thanks. What about my other questions posted yesterday? I need to know how much time is spent in reading data from hardware in my second thread. So I have to use Timer (). But as I mentioned in my yesterday's post, the computer will freeze when I call Timer (). Do you have any good solutions? Thanks.
10-19-2006 03:27 PM
10-19-2006 03:35 PM
Here is what I found in Toolbar.c
errChk (SetPollTimer (toolbar, ENABLE, SLOW_POLL_FOR_HELP, RESET));
You mean I should set RESET as NONRESET to solve my problem?
Thanks.
10-19-2006 03:52 PM
Which version of CVI are you using?
In my code (version 7.1 as already noted) ToolbarPanelCallback calls SetPollTimer (toolbar, ENABLE, FAST_POLL_FOR_HELP, NORESET); without errchk macro.
This function is always called with NORESET parameter except inside Toolbar_DisplayInternal function, which is called by several update functions inside the instrument (add or discard a button and so on) but NOT from ToolbarPanelCallback.
10-19-2006 03:58 PM
Sorry, I looked at the wrong place. I am also using CVI7.1. Could you please take a look at the problem I posted yesterday? computer frozen in secondary thread
Thanks.