by Bernard » Fri Mar 19, 2010 3:41 pm
Hey sorry for being not that specific. My program tries to measure 2 "sets" of data with the picoscope.
Before I start measuring I open the Unit, set my Trigger, Timebase and channel.
Then comes my loop "for(i=0;i<2;i++)" starting runBlock, waiting for the blockReady Callback. this is the callback function of your example.
void __stdcall CallBackBlock
(
short handle,
PICO_STATUS status,
void * pParameter
)
{
// flag to say done reading data
g_ready = TRUE;
}
Inj the first run everything runs perfect. I can display my results and move on to run 2. Here my function "ready"
PS4000MPI short ready()
{
if(g_ready==TRUE)
{
return 1;
}
else
{
return 0;
}
}
never gives back a 1 and i'm captured in the loop.
After I call the getValues function of your DLL I reset my g_ready to False as done in your examplecode.
That's the problem.
I hope this is more specific. I'm new in this "buisness" so I'm not sure I used the right words to explain
Bernard