I have a picoscope 3000Series and want to to measurements in fast streaming mode.
Now I have problems to implement my callback function:
1. where must i implement this function
(create a new sub or implement it in C++)
(I have already seen the example in c++)
2. How can I integrate this callback function
1. where must i implement this function
(create a new sub or implement it in C++)
(I have already seen the example in c++)
2. How can I integrate this callback function
Presumably you are developing in VB, so the callback function will be part of your VB application. You can put the function anywhere you like as long as you pass a valid pointer to ps3000_get_streaming_last_values.
The driver will call your function when the data is ready.
thanks for the quick response.
At the moment I use the Pico 3423rd But I will buy the Pico 4423rd
I want to perform measurements with a frequency of about 100KS on three channels. (Duration about 100 seconds)
However, I need the high frequency for one channel. The other two channels are to be filtered by the software.
I will analyze the series of measurements directly into Ecxel.
I think that the normal streaming mode is not sufficient, since I'm going to get large data packets with 100KS ?
I have created a simple wrapper that will allow you to use fast streaming. I have included the source code and it is quite straightforward.
You need to create your buffers and pass them to SetDataBuffers. As with the driver, there are two buffers for each channel, min and max values. These are used for aggregation.
Once you have called run_streaming_ns, call GetStreamingLastValues and then wait until data is available by polling IsReady. Your buffers will then contain nSamples of data.
If you want to access any of the other information from the callback function, call AvailableData