RunBlock only working once/triggering issue

Post your .Net discussions here
Post Reply
piver_06
Newbie
Posts: 0
Joined: Thu Apr 04, 2019 2:13 pm

RunBlock only working once/triggering issue

Post by piver_06 »

Hello,

Im using block mode to capture data from a scope.
Everything works fine when I do this:
SCOPE SETUP
-ps6000OpenUnit
-ps6000SetChannel(Channel A, enabled, DC_50R coupling, 50mV range, full bandwidth)
-ps6000GetTimeBase
-ps6000SetSimpleTrigger(disabled, channel A) (dont want a trigger, want to use it in freerun mode if you will and call a runblock when i want to)

DATA CAPTURE
-ps6000RunBlock
-ps6000BlockReady
-ps6000SetDataBuffer
-ps6000GetValues

This is how my code is set up:

SCOPE SETUP

flag1 = true
flag 2 = false

If flag1 = true Then
If flag 2 = false Then
DATA CAPTURE
flag2 = true
End If
If flag 2 = True Then
DATA CAPTURE
End IF
End If
So everything works in the first data capture (I receive the correct adc values from the scope and everything), but when I get to the second data capture it doesn't read the correct thing. Bassically all zeros.

What could be my issue.

Thanks for the help in advance.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: RunBlock only working once/triggering issue

Post by Martyn »

Can we actually see the full code, either post here or send to support@picotech.com then we can check that you are following the correct program flow
Martyn
Technical Support Manager

Post Reply