speed up SCPI communication

Applications, development tools, FPGA, C, WEB
Post Reply
alex91
Posts: 3
Joined: Mon Jul 04, 2016 12:10 pm
Location: Austria

speed up SCPI communication

Post by alex91 » Wed Sep 21, 2016 10:30 am

Hi!

I added commands to the SCPI server to transfer waveform data form Matlab directly to DDR memory. It works nice but it is very slow (~120kb/s). For my command I copied the "SOUR#:TRAC:DATA:DATA" command which is used for transfering arbitrary waveform data.
I already increased SCPI_INPUT_BUFFER_LENGTH and MAX_BUFF_SIZE which gave a performance boost. but it is still very slow.

I also tried to comment out my portion of the code (I transfer data and do nothing with it). But that had no influence on performance.

Is it possible to speed up the transfer rate?

thanks in advance
alex,

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: speed up SCPI communication

Post by Nils Roos » Mon Oct 03, 2016 6:38 pm

Sorry for the late reply, I haven't had much spare time the last few weeks.

Parsing ASCII float values has a huge performance impact on the Red Pitaya. Have you tried to transmit binary samples (ie 16bit integers in binary representation) instead? You'd have to adapt the scpi routines for receiving the data, but it should speed things up considerably.

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 95 guests