SDK with 2207B

Post your LabVIEW discussions here
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

SDK with 2207B

Post by Mmm22 »

I am trying to use SDK with 2207B unit, and the ps2000_open_unit function always returns 0 handle. I tried both 32 and 64 bit versions.
Picoscope 6 software works fine.
What can be the problem?
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

You need the ps2000a examples for the 2207B, not the ps2000 ones.
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

Thank you, that worked out.
Now I am trying to use the PicoScope2000aExampleRapidBlock.vi example, and for some reason only the 1st waveform is updated when I click on Run button on the front panel, independently of the Number of captures parameter value.
Is it a bug or I misunderstand something?
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

Firstly make sure that Tools->Preferences->MaximumWaveforms is set to a value >= to the number you wish to collect using rapid trigger.

Then try a normal repeat trigger and what you will see is the waveform count at the top increment buffer by buffer as the scope triggers, displaying the last collected buffer each time. 1 of 1, 2 of 2, 3 of 3 .... x of x

Now change to RapidTrigger and start a capture, you will see nothing in the display until all the buffers are collected by the scope. The software will then download and display the first buffer and you will see that the count at the top says 1 of x , where x is the number of buffers you configured for rapid trigger. You can now use the waveform buffer tools to step through the collected data.
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

Maximum waveforms is set to 10k.
The normal repeat trigger works fine as you described.
The rapid trigger works as you described, and I can I can step through the collected data, although after restarting the acquisition only the first waveform in the buffer is updated. This problem pertain to both SDK and Picoscope 6.
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

Can you post a psdata file for your rapid block capture where you only get the first waveform so we can take a look at your setup.
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

attached
Attachments
20200708-0001.psdata
(194.58 KiB) Downloaded 412 times
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

If you use the waveform buffer tools highlighted you can step through the 1000 rapid blocks that you have captured
Attachments
StepThroughBuffers.png
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

I can step through the waveforms, that is not the problem. The problem is that the waveforms (except the very first one) are from previous run, they do not get updated.
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

The waveforms in the file you sent look perfectly feasible for a rapid block capture with those trigger settings.

What makes you say they are from the previous run ? can you make a short video to highlight the issue.
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

I attached 2 sets of waveforms taken one after the other. You can see that only the first waveform is different.
Attachments
20200708-0002.psdata
(194.2 KiB) Downloaded 444 times
20200708-0001.psdata
(194.14 KiB) Downloaded 455 times
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

If I step through those files each buffer in turn is different from the previous one, and if you compare file to file the same numbered buffers are different, so I am still at a loss in seeing what you are.

One point when you run again are you are allowing it to fully capture the 1000 buffers and stop.
Attachments
Buffer 1 of 1000
Buffer 1 of 1000
Buffer 5 of 1000
Buffer 5 of 1000
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

I am not sure how you got this picture, but this is what I have for the same 2 waveforms.
I also attached the data in text format to avoid ambiguity.
Attachments
wfm5-1.jpg
Waveforms.rar
(1.41 MiB) Downloaded 424 times
Waveforms.rar
(1.41 MiB) Downloaded 469 times
Martyn
Site Admin
Site Admin
Posts: 4567
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: SDK with 2207B

Post by Martyn »

Actually I can see the issue you have, the 20200708-0001.psdata file I had originally loaded for comparison was the earlier one you sent through not the second one. I will need to test this against a real scope tomorrow.
Martyn
Technical Support Manager
Mmm22
User
User
Posts: 2
Joined: Mon Jun 15, 2020 9:21 am

Re: SDK with 2207B

Post by Mmm22 »

Thank you, I am waiting for the result.
I also sent a post about this problem to PicoScope 6 for Windows forum, but it is not published yet. Why is that?
Post Reply