Search found 9 matches

by mc1
Fri Mar 08, 2019 7:56 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

with numCaptures set to 2 I get the exact same results.
by mc1
Fri Mar 08, 2019 7:38 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

So I have set up two buffers and two memory segments and the code will run but it doesn't seem to capture the data. % Set Memory Segments nSegments = 2; [status.memorySegments, nMaxSamples] = invoke(ps4000aDeviceObj, 'ps4000aMemorySegments', nSegments); % nCaptures : 1 1 capture per segment numCaptu...
by mc1
Fri Mar 01, 2019 2:23 pm
Forum: MATLAB
Topic: GetValuesBulk
Replies: 1
Views: 2296

GetValuesBulk

Does anyone know where I could find an example using ps4000aGetValuesBulk? I'm running into trouble setting up the buffers so I think seeing an example of working code could be very helpful.

Thanks
by mc1
Mon Feb 25, 2019 3:51 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

Hitesh, I realized I had a type-o in my code that was holding things up a bit on rapidBlock. However, I'm still running into some trouble setting up the buffer. I've been piecing it together as follows: overviewBufferSize = 250000; % Size of the buffer(s) to collect data from the driver's buffer(s)....
by mc1
Fri Feb 22, 2019 7:51 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

Hitesh, Thanks for the help. Changing the displayOutput saved 0.25 seconds, which is helpful. I'm still having trouble with ps4000aGetValuesBulk. [numSamples, overflow, chA] = invoke(rapidBlockGroupObj, 'ps4000GetValuesBulk', 0, 0, 1, 0); Error using icgroup/invoke (line 60) The function ps4000GetVa...
by mc1
Fri Feb 15, 2019 4:57 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

Martyn, I have this working in a loop, but it's a little slower than I'd like. Is there a way to rework the code to use getRapidBlockData or getValuesBulk? Playing around with the code I've found that I can easily store to different memory segments, and then call them all one at a time later. Is the...
by mc1
Mon Feb 11, 2019 3:04 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

Okay, thanks for the help. I set up a loop and it's working pretty well. I didn't know if there was a way to optimize the process, but sounds like this is the way to go. Thanks again.
by mc1
Mon Feb 11, 2019 1:31 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Re: Rapid Block Memory Segments

Thanks for the response, Martyn.
Will I have to run getBlockData twice? My intention is to store multiple segments and then get the data all at once in the interest of saving time.
Thanks again.
by mc1
Thu Feb 07, 2019 8:21 pm
Forum: MATLAB
Topic: Rapid Block Memory Segments
Replies: 12
Views: 18415

Rapid Block Memory Segments

Hello all, I'm using a 4000 series PicoScope in matlab and having some trouble with rapid block. My goal is to have the function generator sweep through some signals that will eventually be fed back into the PicoScope to be stored in the rapid block memory segments, and then once the sweep is comple...