You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
298 B
18 lines
298 B
7 years ago
|
#!/bin/env python3
|
||
|
import time
|
||
|
|
||
|
import gex
|
||
|
import numpy as np
|
||
|
from matplotlib import pyplot as plt
|
||
|
|
||
|
from scipy.io import wavfile
|
||
|
|
||
|
with gex.Client(gex.TrxRawUSB()) as client:
|
||
|
adc = gex.ADC(client, 'adc')
|
||
|
|
||
7 years ago
|
print(adc.capture(100))
|
||
|
|
||
|
# for i in range(1000):
|
||
|
# print(adc.read_raw())
|
||
7 years ago
|
|