I read a binary array from a digital scope, but then I can't do anything with the binary array. in Matlab this is a simple job: Data is the Array ( 2 bytes per sample, binary format) it can be converted to 16bit integer with this instruction
Data = typecast(uint8(Data),'int16'); %convert data to int16
and then to float using
Data = double(Data); %covert data to double to be able to perform math
In Python i have the same array called dataIn , read from an instrument. I cannot find a way to convert the binary array into a 16 bit array of integers, and then to a vector of real values.
If anyone has solved this issue I would appreciate some help. Thanks