Skip to main content

Red Pitaya - New Application Programming Interface

Hello there, exotic fruit lovers.

Red Pitaya has some news to share with you. We are announcing a new API that will expand Red Pitaya functionalities and simplify the usage of them. So let us explain, what APIs are and how you can benefit from them:

What are APIs?  Application Programming InterfaceAPI) is a set of routines, protocols, and tools for building software applications. In short, one API command/code-line replaces a higher number of regular code lines and enables you to program Red Pitaya in a much simpler and quicker way. With APIs, the level of programming for Red Pitaya will be the same as for an Arduino. Red Pitaya functionalities such as generate, acquire, digital inputs and digital outputs are implemented with simple API commands. Writing your application on Red Pitaya will be divided in four steps: Writing code, Compiling, Copying code to Red Pitaya and Run. Programming of Red Pitaya will be also available in the Eclipse programming environment. Below are some simple examples on how to program Red Pitaya with API commands in C programming language. These examples show basic commands which are building blocks for more complex programs and applications. Tutorials and examples will be available on our new web page www.redpitaya.com , and you are welcome to visit us.

With this example, you can program Red Pitaya to turn on an LED diode in respect to the state of the push button connected to the digital input. On the picture to the right, the physical connection is shown.

title

Setting or reading analog voltage on Red Pitaya. Slow analog outputs and inputs require few API commands. An example on how to set or read analog voltage on Red Pitaya slow analog inputs and outputs, is given below  .

title

Generating and acquiring signals on Red Pitaya fast analog inputs and outputs is also enabled with API commands. We have added new signal waveforms and new functions. With API commands we have enabled simple trigger setting. We have synchronized generating and acquiring functions through trigger settings. Decimation setting and sampling rate can be manipulated in multiple ways without the need to recalculate. Trigger delay can be set in time or samples according to buffer length and decimation. With these settings the user can observe signals before and/or after the trigger event in desired ratios. 

title

All these functionalities of Red Pitaya are parallel to the standard Web User interface instruments. Nevertheless, one must be aware that using generate API and Signal generator Web application, can´t be simultaneous, because both functions are using same hardware components. It´s the same for the Oscilloscope and acquire API function. That is not case with using of slow analog and digital I/O API-s. In future, we will add more functionalities and examples to simplify programming of the Red Pitaya and to expand our palette of instruments. The next step is to make Web APIs for simplifying Web interface developing and encouraging users to make application/instrument from C level to Web.   

Besides the API, a new web page is out and we´ve made it in tune with your needs.  At the front page, you can see our latest social media updates and videos that you might find useful. Also, we would like to ask you, what kind of videos would you like to see on our web page? The Red Pitaya team has decided to go viral, and we will be making video tutorials on Red Pitaya usage and development for our existing and future users. We will also be publishing videos on  DesignSpark.com so don´t worry, you´ll be updated! We are hoping that we can simplify and speed up the first steps with Red Pitaya through the videos and show you what you can do with it. If you have any suggestions, contact us at info@redpitaya.com

BUY A RED PITAYA

Find out more about Red Pitaya in the DesignSpark Red Pitaya Design Centre

title

Red Pitaya has not written a bio yet…
DesignSpark Electrical Logolinkedin