Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
2 ratings:
 3 out of 5   

Archived: Swapping Bytes Using GPIB

This document has been archived and is no longer updated by National Instruments



Primary Software: Driver Software>>NI-488.2
Primary Software Version: 1.7
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
How do I swap bytes using GPIB?

Solution:
Newer versions of NI-488.2 versions do not have driver level support for swapping bytes.  Any manipulation of the incoming data will have do be done at the programming level. 

With NI-488.2 versions previous to 2.0, you can use the ibconfig function with the ibcReadAdjust parameter to convert binary data from an instrument from Big Endian to Little Endian (Motorola to Intel).

ibconfig Board Configuration Option: IbcReadAdjust

0 = No byte swapping.
1 = Swap pairs of bytes during a read.
Default: zero.

IbcReadAdjust can found in CVI by using the ibconfig function. Once you are in the ibconfig function you can then select SwapBytes from the options control.

Related Links:
Product Manuals: NI-488.2 Function Reference Manual for Windows

Attachments:





Report Date: 09/10/1997
Last Updated: 03/03/2008
Document ID: 119CCH7N

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit