Gwyscope documentation

open hardware SPM controller with advanced sampling support

User Tools

Site Tools


hwboxtest

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hwboxtest [2025/02/20 11:31] adminhwboxtest [2025/02/25 14:43] (current) pklapetek
Line 1: Line 1:
 +====== 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. 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.
  
Line 15: Line 18:
   * adc1, adc2 - store values for Red Pitaya's (fast) analog inputs   * adc1, adc2 - store values for Red Pitaya's (fast) analog inputs
  
-Important functions are the following:+Important functions are the following ones:
   * librp_SetHRDAC1() - sets voltage on the first (most left) 20-bit DAC; Note that the SPI communication is implemented on the FPGA, so this is hardware specific and it won't work on PCB V4 and older; similar functions exist for the other two DACs   * librp_SetHRDAC1() - sets voltage on the first (most left) 20-bit DAC; Note that the SPI communication is implemented on the FPGA, so this is hardware specific and it won't work on PCB V4 and older; similar functions exist for the other two DACs
   * librp_SetDAC() - sets voltage on Red Pitaya's fast analog outputs (RP FO1 & RP FO2 on Gwyscope box); note that LIBRP_CH_1 corresponds to the first output, LIBRP_CH_2 to the second   * librp_SetDAC() - sets voltage on Red Pitaya's fast analog outputs (RP FO1 & RP FO2 on Gwyscope box); note that LIBRP_CH_1 corresponds to the first output, LIBRP_CH_2 to the second
Line 23: Line 26:
 {{ :wiki:hw:mobaxterm_testspi1.png?400 }} {{ :wiki:hw:mobaxterm_testspi1.png?400 }}
  
-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.+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.
  
 {{ :wiki:hw:mobaxterm_run.png?400 }} {{ :wiki:hw:mobaxterm_run.png?400 }}
  
 To test the functionality of the SPI communication, simply connect different DACs to ADCs and see, if the values match. To test the functionality of the SPI communication, simply connect different DACs to ADCs and see, if the values match.
hwboxtest.1740047516.txt.gz · Last modified: 2025/02/20 11:31 by admin