Other Parts Discussed in Thread: TSW14J57EVM
Good afternoon,
I have a AF7900 and TSW14J57EVM connected to each other. I capture the data with using HSDC Pro.
I have a question about data from HSDC Pro. Data are noisy and I don't know what is the reason.
Now I want to explain you what I have done with using Automation DLL.
Here I read my first capture and save it
CaptureData_32bits = (c_ulonglong*Capture_Data_Array_Len)() Err_Status = HSDC_Pro.Get_Capture_Data_32bits(Number_Of_Samples_Per_Channel,OffsetSamplePerChannel,CaptureData_32bits,Capture_Data_Array_Len,TimeoutinMs_Cap) main_cap_array = (np.frombuffer(CaptureData_32bits, dtype = np.int32).reshape(Number_Of_Samples_Per_Channel*2,NoofChannels)[:][:Number_Of_Samples_Per_Channel] - 2**15)
Then I read the new capture again and stack it to the main array. I do it for 100 new captured data.
for i in tqdm(range(0,100)): Err_Status = HSDC_Pro.Pass_Capture_Event(Time_MS) if Err_Status !=0: print("Error is ", Err_Status) CaptureData_32bits = (c_ulonglong*Capture_Data_Array_Len)() Err_Status = HSDC_Pro.Get_Capture_Data_32bits(Number_Of_Samples_Per_Channel,OffsetSamplePerChannel,CaptureData_32bits,Capture_Data_Array_Len,Time_MS) if Err_Status !=0: print("Error is ", Err_Status) temp_cap_array = (np.frombuffer(CaptureData_32bits, dtype = np.int32).reshape(Number_Of_Samples_Per_Channel*2,NoofChannels)[:][:Number_Of_Samples_Per_Channel] - 2**15) main_cap_array = np.vstack((main_cap_array, temp_cap_array))
And finally, I save it as csv
fl = ("C:/Users/ferid/Desktop/gpr-data-python/1.csv").encode() Err_Status = HSDC_Pro.Save_Raw_Data_As_CSV(fl,TimeoutinMs_Cap)
Everything works perfectly with Error Status as zero. However when I take the data and vertically plot it as heatmap, the data seems like too messy and noisy. I know it is not really continuos data, but it looks like the data sometimes too perfect and sometimes not. I don't know what the reason can be. I thought the reason can be that the HSDC Pro or TSW14J57EVM send the different data from different lane (RX) for each capture. Because from the picture you can see that in some cases the data is perfect and in another case it is not.
Thanks