I am capturing traces and storing the data using the analog discovery 2. The FDwfAnalogInStatusData() stores the data as double. I want to store the data as binary or integer retaining the precision. Is there a workaround? The source code for the function isn't available so I cannot change that.
Question
Kewal Vora
Hi,
I am capturing traces and storing the data using the analog discovery 2. The FDwfAnalogInStatusData() stores the data as double. I want to store the data as binary or integer retaining the precision. Is there a workaround? The source code for the function isn't available so I cannot change that.
Following is the snippet of the code
##################################################
while True:
dwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts))
if sts.value == DwfStateDone.value :
dwf.FDwfAnalogInStatusData(hdwf, 1, sample_list, 8192)
break
#################################################
I want the sample list to be a list of integers, not convert it after acquisition but fetch them as integers, retaining the precision.
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.