Basic testing

After successful login to Red Pitaya's OS a set of simple programs was provided for testing of basic functionalities. By default all these programs were installed to /root/gwyhwserver_gwyscope directory. Change to this directory and open e.g. test_spi.c using e.g. nano or vim text editors.

The programs are written in plain C programming language and are quite self explanatory. The documentation of functions can be found on Gwyscope websites.

Analog inputs and outputs can be easily tested with the mentioned test_spi utility. Important variables are listed here:

Important functions are the following ones:

If vim was used for editing, note that i has to be pressed to switch to insert mode. After the changes have been made, switch back to command mode by pressing Escape and write changes to disk using :wq. Now create new binary by calling make and execute the updated program by ./test_spi as shown below.

To test the functionality of the SPI communication, simply connect different DACs to ADCs and see, if the values match.