I have saved some waveforms using the oscilloscope application in both binary and xml. I can see that the xml file gives me proper data values but when I try to read the binary file using IDL, it does not seem correct. This is a screen shot of the pulse I saved:
But when I open the binary file in IDL using:
data = uintarr(1024) ;unsigned integer array
readu,lun1,data
free_lun,lun1
close,lun1
;Convert bits to Volts
data=data*0.000015259-0.5
window,0,xs=512,ys=512
plot,data[*]
I get:
It looks like the pulse is there but there is something corrupting the data only in binary form. Is there a setting that may not be correct?
Thanks, Ron
|