Page 1 of 1

Request - Low frequency arbitrary function generator

Posted: Sat Nov 29, 2014 10:49 am
by GreginBSE
I have an application which requires a low frequency arbitrary function generator. Ideally I'd like to be able to set an amplitude (read from a .CSV file) every second or so. It looks like a 100Hz setting on the signal generator app is the lowest possible. The maximum number of points of 16383 is fine.
If anyone can suggest a way to achieve what I'm looking for with the existing software, that would be great. Otherwise, it's one for the wish list.

Re: Request - Low frequency arbitrary function generator

Posted: Sun Nov 30, 2014 6:29 pm
by Nils Roos
Are you looking to output 1 sample every second ? Or do you want to change the amplitude of a higher (but still low) frequency signal every second ?

Re: Request - Low frequency arbitrary function generator

Posted: Mon Dec 01, 2014 7:47 pm
by GreginBSE
I'm just looking for the value in the .CSV file to be read every second, and for that to be the output level until the next value is read from the .CSV. The output will be converted to a 4-20mA signal for a process control application.

Re: Request - Low frequency arbitrary function generator

Posted: Mon Dec 01, 2014 8:26 pm
by Nils Roos
There is a really simple solution to your requirement:

The default generator settings are such that the first value in the output buffer will continuously be output through the DAC. Just issue

Code: Select all

monitor 0x40210000 <value 0x2000 - 0x1fff> //(for channel A)
monitor 0x40220000 <value 0x2000 - 0x1fff> //(for channel B)
on the command line and the value will appear as DC on the DAC outlets.

The range of values is 14bit two-s complement, 0x2000 = -16384 = -1.0V, 0x1fff = 16383 = 1.0V (roughly).

Writing a script that reads CSV and calls monitor every second should be easy.

I noticed that the scope application seems to interfere with the generator settings, so it is best to avoid using the web-apps while running your RedPitaya in that way.

Re: Request - Low frequency arbitrary function generator

Posted: Tue Dec 02, 2014 8:24 pm
by GreginBSE
Thank you Nils.

I'm a complete beginner. I'll take a look and see how I get on.