Data Formatting Examples - HP 1630A Operating And Programming Manual

Logic analyzer
Hide thumbs Also See for 1630A:
Table of Contents

Advertisement

Using HP-113 or HP-IL Interface
Model 1630A/D/G
Data Formatting Examples
The following examples are intended to demonstrate decoding of various learn string bytes that are coded in
different formats. The bytes are sent from the logic analyzer over the HP-IL cable or the HP-113 bus . These
examples assume HP-113 use with an HP Series 200 controller with Basic 2.0 Language Operating System .
ASCII (A) Format
ASCII format is used at various points in many of the logic analyzer learn strings. One usage of the ASCII
format is in the State Label Overview Learn String . The last five bytes in each 23 byte interval range represent
the state label name formatted in ASCII .
When the following commands are sent from a Series 200 controller to the logic analyzer, the State Label
Overview Learn String will be received by the controller . (This example assumes the logic analyzer is in the
State Label Overview trace mode and has completed an acquisition .)
Output @Logic-analyzer using "#, K" ;"TS ;"
Enter @Logic-analyzer using "%,-K" ;S$
Byte positions 40-44 are the bytes when translated to ASCI I and then alpha characters give the name of the first
state label range (a total of eight characters are allowed) . For instance, if the first range name is "DELAY",
bytes 40-44 would be represented :
Parameter:
State assignment label name (State Label Overview Learn String)
Byte Position :
Byte 40
Byte 41
Byte 42
Byte 43
Byte 44
ASCII :
D
E
L
A
Y
Hexadecimal:
44
45
4C
41
59
Decimal :
68
69
76
65
89
Binary Coded Decimal (B)/Integer (I) Formats
The most common usage of the binary coded decimal and integer formats is the encoding of the Date/Time
settings . The precise byte positions of these parameters within the particular learn string is in the learn string
listing. The interpretation of this information is given in the following example. The byte positions are from a
State Trace Learn String which are bytes 5 through 11 in the learn string . The Date/Time is August 28, 1985 at
10 :50:07.
Interpreting the hexadecimal representations for month, day, hour, and second are straightforward . The
month is represented from O to 11 as described for month in Date/Time Information previously in this chapter.
However, the integer decoding for the year is not as apparent . It can be regarded as having the MSB (most
significant byte) coming first as follows:
Byte Position :
Byte 10
Byte 11
Hexadecimal :
0
7
C
1
Binary :
0000 0111
1100 0001
163
162
161
160
( 7 X 162) + (12 X 161) + (1 X 160)
=
1985
Parameter:
Month
Day
Hour
Min .
Second
Year
Year
Byte Position :
5
6
7
8
9
11
11
Format :
(B)
(B)
(B)
(B)
(B)
(I)
(I)
Hexadecimal :
07
28
10
50
07
07
C1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1630g1630d

Table of Contents