B&K 4070A user manual Return

Models: 4070A

1 88
Download 88 pages 28.04 Kb
Page 73
Image 73

'first and then the high byte.

'The 4070A expects the high byte first so we must reverse the two so we

'get the proper byte order (i.e. high byte then low byte)

high = INT(a / 256)

' Get the High byte of the 16 bit value

low = a MOD 256

' Get the Low byte of the

16 bit value

a = low * 256 + high

' Switch hi and low bytes

 

IF a >

32767

THEN a = a - 32768 ' Make it

signed for conversion to int.

b% = a

 

' Convert to a

16

bit variable type

PUT #1, , b%

' Write low byte,

then hi byte to file

RETURN

68

BK Precision 4070A User Manual Rev.2.2

Page 73
Image 73
B&K 4070A user manual Return