Jump to content
  • 0

Kewal Vora

Question

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

Hi @Kewal Vora

The AD scope acquisition data resolution is 14 bits, with double format (52bit fraction) it is not really losing precision.
The WaveForms release will provide function to get samples as 16bit integer values, this for data size considerations.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...