Closed nsparks-per closed 1 year ago
What you observe is normal behavior of the SDR transceiver application. The two transceivers in this application are completely independent and were never designed to work synchronously.
I think that among the applications in this repository, the closest match to your requirements would be the Vector Network Analyzer application.
Description of the setup:
Description of the problem:
Hello,
I'm developing a LIDAR system based on the STEMlab 125-14 platform. For this, I want to output the same waveform on both outputs of the red pitaya and then read them using both analog inputs. The issue is there is a different phase shift each time I start the process. I've tracked at least one issue down to the two output channels not having a consistent starting phase offset. This setup is shown below.
I've modified the SDR-Transceiver code to reset and then load both transmit channels using the following method. The data loaded into the two buffers should be the same.
I realized one possible source of the random phase difference is the two output buffers not being reset at the same time. This led me to modify the FPGA image so the RX channels and TX channels share common reset bits.
After building and loading the new .bit file to the red pitaya and using the new C program I run GNU radio to start the transmit channels and then measured the phase difference using a moku go mobile oscilloscope. GNU radio created a 1 MHz sine wave with a sample rate of 50k. The resulting waveform outputs are shown below.
First start
Second start
Third start
I decided to take a single shot of both channels starting up and there is a noticeable time delay between the two.
Single shot
Do you have any suggestions on how I can make this time delay consistent? As long as there is a consistent phase delay I can account for it but the random phase delay would require calibration each time I start the program.
Thanks