Convert an unsigned 32 bit integer wave to two signed 16 bit integer waves
andyfaff
Function Test(in)
Wave in //in is an unsigned 32 bit integer wave
variable numPoints = numpnts(in)
Make/O/W/N=(numPoints) out1
MultiThread out1 = (in & 0xFFFF0000) / 65536
Make/O/W/N=(numPoints) out2
MultiThread out2 = in & 0xFFFF
End
Wave in //in is an unsigned 32 bit integer wave
variable numPoints = numpnts(in)
Make/O/W/N=(numPoints) out1
MultiThread out1 = (in & 0xFFFF0000) / 65536
Make/O/W/N=(numPoints) out2
MultiThread out2 = in & 0xFFFF
End
The code was originally created by Howard Rodstein of WM.
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More