I'm using the picoscope 4224 with Matlab 2011. I wrote some code to use the scope in trigger block mode. It all works very well. To circumvent the problem with the callback and Matlab, I'm using the IsReady function.
My problem is This : sometimes, Matlab gives me a segfault. Sometimes it's when I'm openning the scope ; no trouble there, I just do it again, and it works. But I'm using the scope to do long-time surveillance (several days), and the program crashes during the acquisition, waiting for the trigger...
A friend told me thad the IsReady function polling the driver could be the source of the problem, as it is kind of "stresfull" for the driver, compared to a callback...What do you think ? Do you think it's worth it to rewrite my code to use callbacks ?
Or do you have an other idea for my problem ?
Thanks in advance for your responses !