Adding features to Scope

Have an idea? Post it here! - Looking for developers? Ask here as well!
Post Reply
SamP20
Posts: 6
Joined: Wed Jun 11, 2014 4:09 pm
Location: United Kingdom

Adding features to Scope

Post by SamP20 » Thu Jun 12, 2014 11:27 am

I'm considering buying a RedPitaya, although I would like to add a few features to the Scope app, mainly more triggering options such as pulse width and Nth pulse. To do this I'll need to add some registers for the extra settings.

I have mostly figured out how to add registers to the FPGA design, the bit I an stuck on is what needs modifying in the controller and GUI to be able to configure these registers.

For new users (including me) I think a diagram/description of how the FPGA, controller, Nginx and GUI integrate with each other would be beneficial.

User avatar
DashPi
Posts: 13
Joined: Tue Jun 10, 2014 8:16 pm

Re: Adding features to Scope

Post by DashPi » Thu Jun 12, 2014 8:10 pm

If that helps this is a link to the changes I applied for calibration upgrade:

Html: adding buttons
https://github.com/dashpi/RedPitaya/com ... 41de358d7b
Main.c/h: adding params necessary for server client communication
https://github.com/dashpi/RedPitaya/com ... 4edeca82ac
Generate.c/h: added a function for direct access to individual signal generator FPGA registers
https://github.com/dashpi/RedPitaya/com ... 227f0ab2ec
Worker.c: calibration algorithm attached to preexisting average measurement functionality
https://github.com/dashpi/RedPitaya/com ... 8cbae88e12

SamP20
Posts: 6
Joined: Wed Jun 11, 2014 4:09 pm
Location: United Kingdom

Re: Adding features to Scope

Post by SamP20 » Thu Jun 12, 2014 10:03 pm

Thanks for those links. Since my original post I've been doing a bit more digging and have a reasonably good understanding of how everything fits together. Your links do help clarify things further.

Interestingly I found that the calibration parameters get loaded from the EEPROM, however I couldn't find a mechanism to save them back to the EEPROM later on. My guess is the EEPROM is written to during factory calibration.

User avatar
DashPi
Posts: 13
Joined: Tue Jun 10, 2014 8:16 pm

Re: Adding features to Scope

Post by DashPi » Sat Jun 14, 2014 6:52 am

I'm glad it helped you. Regarding EEPROM, the original version of the apps only reads calibration. However I modified that for CalGenScope app in order to be able to save calibration.

Here are the changes:
https://github.com/dashpi/RedPitaya/com ... 96d9f77655

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