How to generate a signal of a general shape?

Just about everything about Red Pitaya
Post Reply
DKrizaj
Posts: 1
Joined: Thu Jun 26, 2014 2:37 pm

How to generate a signal of a general shape?

Post by DKrizaj » Thu Jun 26, 2014 2:53 pm

It is a nice feature of Pitaya to use a generate function to create a sin/sqr/tri signal. The signal of a general shape can also be uploaded to an Osc&Gen web app. I don't see in the manual how to upload a signal of a general shape (created by some other application, for instance Matlab) using a generate function. For instance in a manner

unix('plink -l <username> -pw <password> <IP_address> /opt/bin/generate <channel> <SIGNAL> <frequency> <type>');

Crt Valentincic
Posts: 67
Joined: Wed May 28, 2014 12:15 pm

Re: How to generate a signal of a general shape?

Post by Crt Valentincic » Wed Jul 02, 2014 4:01 pm

This feature is not available at the moment, but is on the other hand very easy to implement. CSV file could be taken as an argument and it's values should be written into DAC buffer.

RasPitaya
Posts: 2
Joined: Tue Aug 19, 2014 11:20 am

Re: How to generate a signal of a general shape?

Post by RasPitaya » Tue Aug 19, 2014 11:25 am

Hello Črt,

Are there any prospects for this feature?

cheers,

edgo
Posts: 34
Joined: Wed Jun 25, 2014 11:38 pm

Re: How to generate a signal of a general shape?

Post by edgo » Tue Aug 19, 2014 4:55 pm

This would not be difficult to do. Examine the 'generate' application/code, in particular within generate.c ... the function synthesize_signal() fills a 16k buffer, the AWG data buffer. Put your desired signal data (scaled appropriately) into this buffer, then the function write_data_fpga() is called next and your signal should be generated.

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