Hi,
I have problem with multiple RunBlock. My Application is based on SDK example. My steps are:
for cycle
- initdevice (only first time)
- set channel to 10V
- set timebase to 100 ns
- set trigger
- read data
Hi Martin,
Thannk you for reply. My second read has problem: PICO_CANCELLED and _retry = false.
What do you mean about setup Pico?
can you post an example?
Hi Martin,
thank you for replies.
I understand my problem. I develop picoscope dll (I call it from Form...) and I can't wait the callback function (ps3000aBlockReady -> return _ready). The first block is fast (_ready=true), but the block is not fast from second read (_ready=False).
Now, I don't know if move dll into Form or not...
Thanks
Hi Martin,
I post my code: part of code of Form and my picoscope dll.
My application works:
- an event call function to handle picoscope
- starts handle form -> dll
I followed your suggest (stop, close...), but I have the same problem.
Can you help me?
Thanks in advance.
Attachments
[The extension cs has been deactivated and can no longer be displayed.]
[The extension cs has been deactivated and can no longer be displayed.]
Hi Martin,
I finally solved my problem.
I changed my code (very similar at SDK example):
- I open communication (init) with Picoscope by Form
- I create dll object and pass handle as constructor
I think that were thread problems between Form and dll.