i am working on a real time application with the Analog Discovery 2 in Python.
So i am doing a continiously aquisition with a while loop controled with a state machine. Now i see between the loops there is a gap (when the loop ends and start again).
Is there a possibility to improve the aquisition for don't losing this datas?
libdwf.FDwfAnalogInStatusData(hdwf, c_int(0), byref(rgc), len(rgc))
results1=[0.0]*len(rgc)
for i in range(0,len(results1)):
results1=rgc libdwf.FDwfAnalogInStatusData(hdwf, c_int(1), byref(rgc), len(rgc)) results2=[0.0]*len(rgc) for i in range(0,len(results2)): results2=rgc
Question
Weevil
Hello,
i am working on a real time application with the Analog Discovery 2 in Python.
So i am doing a continiously aquisition with a while loop controled with a state machine. Now i see between the loops there is a gap (when the loop ends and start again).
Is there a possibility to improve the aquisition for don't losing this datas?
libdwf.FDwfAnalogInAcquisitionModeSet(hdwf, c_int(2)) #acqmodeScanShift1 #scan screen2
while True:
#Buffersize = 8192
libdwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts))
libdwf.FDwfAnalogInStatusSamplesValid(hdwf, byref(cValid))
libdwf.FDwfAnalogInStatusData(hdwf, c_int(0), byref(rgc), len(rgc))
results1=[0.0]*len(rgc)
for i in range(0,len(results1)):
results1=rgc
libdwf.FDwfAnalogInStatusData(hdwf, c_int(1), byref(rgc), len(rgc))
results2=[0.0]*len(rgc)
for i in range(0,len(results2)):
results2=rgc
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.