bladeRF/host/examples/bladeRF-cli/sync_trx/create_samples.sh
Jon Szymaniak d3bc3dc27f host: examples: bladeRF-cli: Added sync_trx example
This example demonstrates how to use the bladeRF-cli to perform
synchronized sampling using two devices and a trigger signal on
J71-4.
2016-05-22 19:20:27 -04:00

29 lines
477 B
Bash
Executable file

#!/bin/sh
#
# Creates a master_tx.csv file
################################################################################
OUTFILE=master_tx.csv
rm -f ${OUTFILE}
# Write zeros
i=0
while [ $i -lt 1000 ]; do
echo "0, 0" >> ${OUTFILE}
i=$(expr $i + 1)
done
# Write a pulse (i = q = sqrt(2)/2)
i=0
while [ $i -lt 100 ]; do
echo "1447, 1447" >> ${OUTFILE}
i=$(expr $i + 1)
done
# Write zeros
i=0
while [ $i -lt 1000 ]; do
echo "0, 0" >> ${OUTFILE}
i=$(expr $i + 1)
done