PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
if((status = ps6000RunBlock(unit->handle, 0, sampleCount, timebase, oversample, &timeIndisposed, 0, CallBackBlock, NULL)) != PICO_OK)
while (!g_ready && !_kbhit())
{
Sleep(0);
}
Code: Select all
void PREF4 CallBackBlock( short handle,
PICO_STATUS status,
void * pParameter)
{
if (status != PICO_CANCELLED)
g_ready = TRUE;
}
Code: Select all
short * buffer;
...
buffer = (short*) malloc(sampleCount * sizeof(short));
status = ps6000SetDataBuffer(handle, PS6000_CHANNEL_A, buffer, maxSamples, PS6000_RATIO_MODE_NONE);
...
free(buffer);
Code: Select all
if((status = ps6000RunBlock(unit->handle, 0, sampleCount, timebase, oversample, &timeIndisposed, 0, CallBackBlock, NULL)) != PICO_OK)
printf("BlockDataHandler:ps6000RunBlock ------ 0x%08lx \n", status);
while (!g_ready && !_kbhit())
{
Sleep(0);
}