Can't get SCPI to get part of capture buffer

Applications, development tools, FPGA, C, WEB
Post Reply
JohnnyMalaria
Posts: 28
Joined: Fri Apr 28, 2017 12:43 am

Can't get SCPI to get part of capture buffer

Post by JohnnyMalaria » Sat Aug 05, 2017 2:31 am

Hi,

According to the SCPI documentation, it should be possible to request part of the data in the capture buffers. However, the documentation is very confusing. The definition to receive data between start_pos and end_pos is given as:

Code: Select all

ACQ:SOUR<n>:DATA:STA:END? <start_pos>,<end_pos>
but the example is:

Code: Select all

ACQ:SOUR1:GET:DATA 10,13
Query return:
{123,231,-231}
which is totally different.

I have tried both in my Python code - neither work. Instead, execution hangs.

The command to get the whole buffer

Code: Select all

ACQ:SOUR1:DATA?
works just fine.

What is the correct syntax for retrieving data between specified locations?

Thanks,

John.

JohnnyMalaria
Posts: 28
Joined: Fri Apr 28, 2017 12:43 am

Re: Can't get SCPI to get part of capture buffer

Post by JohnnyMalaria » Tue Aug 08, 2017 4:13 pm

UPDATE - I found a way around this.

I use this instead:

Code: Select all

ACQ:SOUR1:DATA:STA:N? 1234,256
i.e., retrieve 256 data points starting at 1234.

I don't understand why the earlier method doesn't work.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 9 guests