I'd like to use the streaming mode of the PicoScope4224.
My streaming callback fct is :
----------------------
void TestStreamingCallBack ( short handle,
long noOfSamples,
unsigned long startIndex,
short overflow,
unsigned long triggerAt,
short triggered,
short autoStop,
void *pParameter
)
{
error: invalid conversion from 'void (*)(short int, long int, long unsigned int, short int, long unsigned int, short int, short int, void*)' to 'void (*)(short int, long int, long unsigned int, short int, long unsigned int, short int, short int, void*)'
F:\nCview\src\windowsampledsignalsacquisition.cpp:309: error: initializing argument 2 of 'PICO_STATUS ps4000GetStreamingLatestValues(short int, void (*)(short int, long int, long unsigned int, short int, long unsigned int, short int, short int, void*), void*)'
I should say that function WindowSampledSignalsAcquisition::StreamingReadyCallBack is declared as static so it has the right signature (I mean "this" pointer isn't required ).
Still, in the following code, it seems that callback function is never called by the driver.