Search found 9 matches

by bloer
Tue Apr 23, 2019 5:38 pm
Forum: General Software Discussions
Topic: Is there a way to trigger the scope via software?
Replies: 1
Views: 2314

Is there a way to trigger the scope via software?

If I understand correctly, if I call SetSimpleTrigger with enabled set to false, then call RunBlock, the scope will immediately return after collecting pretrigger+posttrigger samples. Is this correct? I'd like to know if there is a way to start the scope acquiring, then trigger the scope via the API...
by bloer
Fri Apr 05, 2019 7:05 pm
Forum: C and C++
Topic: How to use pulse width qualifiers to detect latching trigger
Replies: 3
Views: 10948

Re: How to use pulse width qualifiers to detect latching trigger

I am not a big fan of the API right now. I am using the code below (C++11) to try to make a "dropout" trigger on EXT: PS5000A_CHANNEL ch = PS5000A_EXTERNAL; PS5000A_THRESHOLD_DIRECTION direction = PS5000A_RISING; PS5000A_CONDITIONS_INFO coninfo = (PS5000A_CONDITIONS_INFO)(PS5000A_CLEAR | PS5000A_ADD...
by bloer
Thu Apr 04, 2019 8:54 pm
Forum: C and C++
Topic: How to use pulse width qualifiers to detect latching trigger
Replies: 3
Views: 10948

Re: How to use pulse width qualifiers to detect latching trigger

Hello Martyn, I have two issues: 1) In the current picoscope GUI on linux, I cannot get a dropout trigger to work on EXT. If I put my signal into e.g. channel A with all the same settings, the trigger works as expected, but when I move back to EXT, I get no triggers. Is this a bug? 2) Is there an ex...
by bloer
Mon Feb 04, 2019 7:29 pm
Forum: C and C++
Topic: How to use pulse width qualifiers to detect latching trigger
Replies: 3
Views: 10948

How to use pulse width qualifiers to detect latching trigger

I have a Picoscope 5444B. In my application, the trigger is a digital latch (several seconds long) on EXT. In early testing, it worked fine to use a simple rising edge trigger. However I'm now in an environment where I am getting occasional bursts of noise pickup on that line that are causing spurio...
by bloer
Fri Aug 17, 2018 6:26 pm
Forum: C and C++
Topic: GetValuesOverlapped doesn't deliver all requested samples
Replies: 3
Views: 7726

Re: GetValuesOverlapped doesn't deliver all requested sample

My working version had too many dependencies to send easily. Attached is a minimal example demonstrating the issue. It needs c++11 to compile. Results when I run with my 5444B: Resolution Timebase Dtns Requested Received(reg) Received(overlapped) 0 2 4 10000 10000 10000 0 3 8 10000 10000 10000 0 4 1...
by bloer
Fri Aug 17, 2018 3:39 pm
Forum: USB PC Oscilloscopes
Topic: Timebase vs downsampling
Replies: 3
Views: 3582

Re: Timebase vs downsampling

Thank you Martyn. Another point of clarification: When I call GetValues. should the 'noOfSamples' parameter be the number before or after downsampling? E.g. if I have 1000 total samples and a downsample factor of 4, should noOfSamples be 1000 or 250?
by bloer
Thu Aug 16, 2018 8:35 pm
Forum: USB PC Oscilloscopes
Topic: Timebase vs downsampling
Replies: 3
Views: 3582

Timebase vs downsampling

If I have a 5000a API scope, and I have 1 channel enabled and resolution set to 8 bits, I can get an effective 8 ns per sample in two ways: 1) set the timebase to 3 2) Set the timebase to 0 and set downsampleRatio to 8 Aside from more efficient use of the scope's memory buffer, is setting a higher t...
by bloer
Thu Aug 16, 2018 4:42 pm
Forum: USB PC Oscilloscopes
Topic: Confusion about how triggers work in streaming mode
Replies: 5
Views: 6684

Confusion about how triggers work in streaming mode

I am confused about a number of features of how the API works in streaming mode. From my reading the programmer's guide and example software, as soon as you call RunStreaming, the scope begins writing to the memory buffer(s) registered via SetDataBuffer. If autoStop is false, then it continues strea...
by bloer
Thu Jul 26, 2018 8:56 pm
Forum: C and C++
Topic: GetValuesOverlapped doesn't deliver all requested samples
Replies: 3
Views: 7726

GetValuesOverlapped doesn't deliver all requested samples

I have a picoscope 5444B, and I'm trying to read it out with the ps5000a linux API. If in my readout loop, I do: while(keeprunning){ ps5000aRunBlock(...); wait_for_callback(); ps5000aGetValues(...); } Then I always get total samples equal to the requested number. However, if I try to use GetValuesOv...