Section 8: TSP command reference Model 2461 Interactive SourceMeter® Instrument Reference Manual8-78 2461-901-01 A/November 2015format.byteorderThis attribute sets the binary byte order for the data that is printed using the printnumber() andprintbuffer() functions.Type TSP-Link accessible Affected by Where saved Default valueAttribute (RW) No Restore configurationInstrument resetPower cycleConfiguration script format.LITTLEENDIANUsageorder = format.byteorderformat.byteorder = orderorder Byte order value as follows:• Most significant byte first: format.BIGENDIAN• Least significant byte first: format.LITTLEENDIANDetailsThis attribute selects the byte order in which data is written when you are printing data values with theprintnumber() and printbuffer() functions. The byte order attribute is only used with theformat.REAL32 and format.REAL64 data formats.If you are sending data to a computer with a Microsoft Windows operating system, select theformat.LITTLEENDIAN byte order.Examplex = 1.23format.data = format.REAL32format.byteorder = format.LITTLEENDIANprintnumber(x)format.byteorder = format.BIGENDIANprintnumber(x)Output depends on the terminal programyou use, but will look something like:#0¤p??#0??p¤Also seeformat.asciiprecision (on page 8-77)format.data (on page 8-79)printbuffer() (on page 8-93)printnumber() (on page 8-96)