Page 1 of 1

How to generate a signal of a general shape?

Posted: Thu Jun 26, 2014 2:53 pm
by DKrizaj
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>');

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

Posted: Wed Jul 02, 2014 4:01 pm
by Crt Valentincic
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.

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

Posted: Tue Aug 19, 2014 11:25 am
by RasPitaya
Hello Črt,

Are there any prospects for this feature?

cheers,

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

Posted: Tue Aug 19, 2014 4:55 pm
by edgo
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.