Page 2
Save and restore HP 16500B system and module configurations. • Program the HP 16500B. Requirements In order to use the HP 16500B Logic Analysis System on the LAN, you need the following equipment and software: • HP 16500B Logic Analysis Mainframe.
Page 3
Using the HP 16500B X Window Interface Retrieving and Restoring Measurement Data This book shows you how to use the HP 16500B via a Local Area Network Configuring HP 16500B Modules (LAN) connection. This book contains the following chapters: •...
Page 4
See Also The HP 16500L LAN Interface Module Administrator’s and Service Guide for information on installing and setting up the HP 16500L. The Logic Analyzer Training Kit if you are unfamiliar with the basic operation of the HP 16500B system.
1 Accessing the HP 16500B File System To mount the file system via NFS 1–4 To access the file system via FTP 1–9 2 Using the HP 16500B X Window Interface To start the interface 2–4 To close the interface 2–9 To load the custom fonts 2–11...
Page 6
If you cannot connect to the HP 16500B 7–2 If you cannot mount the HP 16500B file system 7–3 If you cannot access the HP 16500B file system via FTP 7–3 If you cannot start the X Window interface 7–4 If you cannot copy files from HP 16500B 7–4...
Page 8
Access the file system via FTP. This chapter assumes that the HP 16500B mainframe is physically connected to your local area network. If it is not connected, refer to the HP 16500L Administrator’s and Service Guide for information on how to connect the system.
Page 9
Do not delete the operating system files. If the files are deleted, the C A U T I O N HP 16500B will not operate the next time it is re-booted. If you accidentally delete any of these files, copy them from the flexible disks labeled "16500 Operating System"...
[symbolic name|IP address]:/[control|data] /[directory name] The symbolic name is the host name of the HP 16500B as set up by your system administrator. Typically, this name is found in the /etc/hosts file on your computer or returned by a name server. It is equivalent to the HP 16500B’s IP (Internet Protocol) address.
Page 11
Accessing the HP 16500B File System To mount the file system via NFS Example To mount, as the control user, the HP 16500B named "16500sys" to a directory on your computer named "/logic", enter the following command at the UNIX command line:...
Page 12
To mount the file system via NFS From Computers Running the MS-DOS Operating System To use the HP 16500L in an MS-DOS environment, you need to install a program on your PC that allows you to use NFS protocol. One example is PC-NFS by SunSoft Inc.
Page 13
To mount the file system via NFS From Computers Running MS Windows To use the HP 16500L in an MS Windows environment, you need to install a program on your PC that allows you to use NFS protocol. One example is PC-NFS by SunSoft Inc.
Page 14
Accessing the HP 16500B File System To mount the file system via NFS In the Path field, type the name of the server that the HP 16500B system is mounted on, followed by the HP 16500’s name or IP address. At the end of the path, specify which kind of connection...
[symbolic name|IP address] The symbolic name is the host name of the HP 16500B as set up by your system administrator. Typically, this name is found in the hosts file on your computer or returned by a name server. It is equivalent to the HP 16500B’s IP (Internet Protocol) address.
Close the interface. • Load the custom fonts. Supported HP 16500B Modules Not all HP 16500B modules are supported in the X Window interface. However, the more recent modules, including those shown below, are supported. • HP 16517A and HP 16518A Ultra High Speed Timing modules.
Page 19
Using the HP 16500B X Window Interface Duplicating Front-Panel Knob Movement Hold down the center mouse button, and move the mouse up or to the right to duplicate clockwise knob movement; move the mouse down or to the left to duplicate counter-clockwise knob movement.
On computers that aren’t running the UNIX operating system, the X server package documentation will explain its security features. Send the XWIN ON programming command to the HP 16500B. The syntax of the XWIN ON command is: xwin on,"<X server IP address>:<display>.<screen>"...
Page 21
Using the HP 16500B X Window Interface To start the interface Example To enable windows to be initiated from the HP 16500B named lp16500b, enter the following command on the computer running the X server (and the UNIX operating system in this example):...
Page 22
X server software, first start the X server software (and enable HP 16500B initiated windows, if necessary). If you have mounted the HP 16500B’s file system to the logical drive "L:" on your computer whose IP address is 15.6.253.146 (and is running the X server), enter the following command to start the X Window interface: echo xwin on,"15.6.253.146:0.0"...
Page 23
From the HP 16500B Front Panel Start the X server software on your host computer. On your X server, enable HP 16500B initiated windows. Most X server packages have a security feature which stops unwanted client-initiated windows from being displayed.
Page 24
Using the HP 16500B X Window Interface To start the interface Enter the Internet Address of the X Windows server, the Display, and the Screen values; then, select the Disconnected field. The interface starts on your X server, and the Disconnected field changes to...
Using the HP 16500B X Window Interface To close the interface To close the interface From the HP 16500B X Window Interface or Front Panel In the System Configuration menu, select the Communications field. Then, select the X Window field.
Page 26
Now, to close the X Window interface, enter: xwin off Example If you have mounted the HP 16500B’s file system to a directory named "/logic" on your computer, enter the following command to close the X Window interface: echo ’xwin off’ > /logic/system/program...
Copy the SM165.BDF and LG165.BDF files from the HP 16500B’s \system\disk\hard\system directory to a directory on your computer. These font files may also be copied from the HP 16500B Operating System (version 2.00 or greater) media. Set up the X server so that it can read these fonts.
Page 28
Change to the directory where you want to install the custom font files. cd /users/guest/165fonts As the data user, access, via FTP, the file system of the HP 16500B named lp16500b. Then, copy the SM165.BDF and LG165.BDF files from the HP 16500B’s \system\disk\hard\system directory to your computer.
Page 29
Using the HP 16500B X Window Interface To load the custom fonts typically found in /usr/lib/X11/fonts/misc; this directory is usually protected, so your system administrator may have to perform the installation. 2-13...
X Window Display Anomalies Color The X Window Interface software emulates the HP 16500B display’s base, popup, alpha, and inverse planes. The base and popup planes are emulated pretty well, but the inverse and alpha planes planes do not always look quite right.
Page 32
Retrieving and Restoring Measurement Data This chapter shows you how to: • Copy ASCII measurement data. • Copy raw measurement data. • Restore raw measurement data. • Strip LIF structure from raw measurement data. • Copy screen images from \system\graphics. •...
Access the HP 16500B’s file system. Refer to the "Accessing the HP 16500B File System" chapter. You can do this from the HP 16500B’s X Window interface or front panel, or by programming the HP 16500B. Copy the measurement data from the \slot_{x}\data.asc subdirectory.
Page 34
Example Suppose you have an HP 16550A State/Timing Analyzer installed in slot C of your HP 16500B mainframe. The name of analyzer 1 of the HP 16550A is 68000_BUS. You have created some labels under analyzer 1 of the HP 16550A, including one called "addr_lo." The directory structure of the...
Set up the module for the measurement you want to make, and run the analyzer to acquire data. You can do this from the HP 16500B’s X Window interface or front panel, or by programming the HP 16500B. Access the HP 16500B’s file system.
Retrieving and Restoring Measurement Data To restore raw measurement data To restore raw measurement data Access the HP 16500B’s file system as the control user. Refer to the "Accessing the HP 16500B File System" chapter. Copy the data.raw file to the appropriate \slot_{x} directory.
Write a program that strips LIF structure from raw data files. You may want to convert the data.raw file into a format that is consistent with the file format transmitted from the HP 16500B via HP-IB. The following example program will perform this conversion.
Page 38
Retrieving and Restoring Measurement Data To strip LIF structure from raw measurement data Example This C-language program strips the LIF structure from the data.raw file. #include <stdio.h> main( argc, argv ) int argc ; char *argv[] ; char buffer[256] ; int len ;...
- a black and white Encapsulated PostScript file in EPS version 3.0 format. These graphics files contain the current display on the HP 16500B screen. The contents of the files change whenever you change the display. When you copy one of the graphics files, the display will freeze for a few moments to make a copy of the current display.
Page 40
Retrieving and Restoring Measurement Data To copy screen images from \system\graphics Example To import a color .PCX graphics file into an MS Windows based bitmap editor, perform the following steps: Select FILE, OPEN Select the graphics subdirectory L:\system\graphics Double-click on the file screen.pcx 3-10...
• frame.txt - shows which modules are installed in the slots of your HP 16500B system and the version of operating system code for each module. • mount.txt - shows the hosts that the HP 16500B is currently mounted on and whether it’s a control user access or data user access.
Page 42
Retrieving and Restoring Measurement Data To copy status information from \status Example An example frame.txt file: Analyzer name:16500SYS Slot Module Name Code Version Card ID Code ====== =========== ============ ============ System V02.00 slot_a Pattern Gen V02.00 slot_d 100/500MHz LA V02.00 Example An example mount.txt file: Analyzer name: 16500SYS...
Page 44
Configuring HP 16500B Modules This chapter shows you how to: • Copy module configurations from setup.raw. • Restore module configurations. You can also configure modules by programming the HP 16500B (refer to the "Programming the HP 16500B" chapter).
To copy module configurations from setup.raw Set up the module configuration. You can do this from the HP 16500B’s X Window interface or front panel. Access the HP 16500B’s file system. Refer to the "Accessing the HP 16500B File System" chapter.
Suppose you want to load a configuration file called "486_bus" from your local computer into an HP 16550A state/timing module. The HP 16550A is installed in slot B of the HP 16500B mainframe. The mainframe is mounted on your network as disk drive L:.
Page 48
Programming the HP 16500B You can program the HP 16500B over the Local Area Network (LAN) by sending commands to the \system\program file or by sending commands to the command parser socket. This chapter shows you how to: • Set up for Ethernet programming.
Page 49
Connection to the command parser socket is, by definition, a control user connection. Because only one control user connection is allowed, you will not be able to connect to the command parser socket if someone else is accessing the HP 16500B’s file system as the control user.
To set up for Ethernet programming To set up for Ethernet programming Before you can send programming commands to the HP 16500B via the LAN, you must set up Ethernet communications from the HP 16500B front panel. In the System Configuration menu, select the Communications field.
Page 51
Configuration Menu will look like this: asterisk The asterisk next to the word "Ethernet" indicates that the Ethernet port has been selected to be the controller port. This prevents commands from being accepted by the HP 16500B via HP-IB or RS-232.
The syntax of the TELNET command is: telnet [symbolic name|IP address] 5025 The symbolic name is the host name of the HP 16500B as set up by your system administrator. Typically, this name is found in the hosts file on your computer or returned by a name server.
\system\program file. Example Suppose an HP 16550A state/timing analyzer is installed in slot C (slot 3) of your HP 16500B mainframe. To clear the trigger set-up on the HP 16550A, enter the following echo commands at the MS-DOS prompt: echo :SELECT 3 >...
Page 54
To copy commands to \system\program Example Suppose an HP 16550A state/timing analyzer is installed in slot C (slot 3) of your HP 16500B mainframe. To clear the format and trigger set-ups on the HP 16550A, first type the following commands into an ASCII text file.
\system\program file. Your operating system may buffer the commands before sending them to the HP 16500B. To prevent this, you may need to empty the buffer after each command. In C-language, you can use the flush function to empty the buffer.
Page 56
Programming the HP 16500B To write programs that open \system\program Example The following C-language example opens the \system\program file and sends several commands and queries. #include <stdio.h> #include <unistd.h> #define STR_LEN 80 void putstr(file, str) FILE *file; char *str; fwrite(str, strlen(str), 1, file);...
Page 57
Programming the HP 16500B To write programs that open \system\program putstr(file, ":sel 9\n"); putstr(file, ":mach1:twav:range 1 s\n"); putstr(file, ":start\n"); putstr(file, ":mach1:twav:range 100 ns\n"); fclose(file); sleep(2); file = fopen("/logic/system/program", "r"); while (getstr(file, receive_str) == 0); fclose(file); printf("%s\n", receive_str); 5-11...
To write programs that open the command parser socket • If you are programming in C, open the HP 16500B command parser socket and send programming commands to it. The HP 16500B command parser socket port identification number is 5025.
Page 59
Programming the HP 16500B To write programs that open the command parser socket serv_addr.sin_port = htons ( port ); /* Create an endpoint for communication */ sockfd = socket( AF_INET, SOCK_STREAM, 0 ); /* Initiate a connection on the created socket */ connect( sockfd, ( tdSOCKET_ADDR * )&serv_addr, sizeof (...
Concepts HP 16500B File System Directory Structure HP 16500B File System Directory Structure The HP 16500B directory structure is shown below. HP 16500B Directory Structure setup.raw Binary configuration files. You can save and restore configurations by copying these files. \system\program Port for sending programming commands to the command parser.
Page 64
ASCII measurement data. There are two subdirectories attached to the data.asc directory, one for each of the two analyzers in the HP 16550A (if they are turned on in the Configuration Menu). The default names of these subdirectories are machine1 and machine2, but they will change whenever the analyzer names are changed in the Configuration Menu.
Page 65
Concepts HP 16500B File System Directory Structure The 1st_line.txt File The 1st_line.txt file lists the number of the first line of the most recent data acquisition. This file shows the number of states that occur before the trigger state, which is always state zero (at line number 0).
Page 66
Concepts HP 16500B File System Directory Structure HP 16542A State Analyzer Subdirectories and Files If you are using an HP 16542A 2-Mbyte state analyzer, the slot_x directory contains a subdirectory called data.asc that contains ASCII measurement data. HP 16542A State Analyzer Directory Structure Label Data Files: \slot_x\data.asc\{label name}.txt The data.asc...
Page 67
Sample_period 10e-9 See Also The HP 16542A User’s Reference for more information about data acquisition modes. Time Tag and State Tag Data If time count feature is turned on, the time_abs.txt file contains a column of time values for the most current state or timing measurement.
Your applications might only retrieve one or two characters from a file that you believe has many more characters in it. To work around this problem, copy the file that you want to work with from the HP 16500B system to your local computer. Use the local copy as your working copy.
When the HP 16500L LAN Interface Module is installed in your HP 16500B mainframe, several new menus or menu choices become available in the HP 16500B. These new fields and menus allow you to set up your LAN port and configure the HP 16500B.
Page 70
Controller Selection field Ethernet field See Also The HP 16500L Administrator’s and Service Guide for more information about the LAN configuration and setup menus. The HP 16500B System User’s Reference for a detailed explanation of the Communication Configuration menu. 6-10...
Page 71
New Menus for HP 16500L Time Zone Field When an HP 16500L is installed and the HP 16500B is connected to a LAN, a field labeled "Time Zone" appears in the Real Time Clock setup menu. The Real Time Clock setup menu is accessed by selecting the Real Time Clock Adjustments field in the System Utilities menu.
Make sure power to the HP 16500B is ON. Check the physical connection to the LAN. Make sure the Internet (IP) Address of the HP 16500B is set up correctly in the Ethernet communications configuration. If the HP 16500B and the computer are on different networks or subnets,...
OFF power to the HP 16500B before unmounting. If you get a "server not responding" message: If the power to the HP 16500B was just turned ON, make sure that you wait 15 seconds after the System Configuration menu is displayed before attempting the mount.
If you get an "Unable to open window on <IP address>.<display>.<screen>" message: Make sure that the HP 16500B has permission to open a window on the X server. For example, you may have to enter an "xhost +<16500 IP address>" command on your X server machine.
HP 16500B system: Verify the LAN connection between your computer and the HP 16500B. Refer to "If you cannot connect to the HP 16500B" earlier in this chapter. Change the file time-out. To change the time-out: Access the HP 16500B System Configuration menu.
If You Have a Problem If you get an "operation timed-out" message If the power to the HP 16500B was just turned ON, make sure that you wait 15 seconds after the System Configuration menu is displayed before attempting the TELNET.
Page 79
The be connected to a TCP/IP network. Before using your HP 16500B, you or HP 16500B acts like a server on your network. Glossary-1...
Page 80
If the is no response by the end of the pe- riod, the system takes an action. In the HP 16500B, the file timeout func- tion in the Ethernet Configuration menu is used to set the time out pe- riod.
Page 81
100-MHz state/500-MHz timing analyzer data.asc subdirectory, 6–4, 6–6 HP 16500B file system, accessing, 1–2 subdirectories and files, 6–4 data.raw files, 7–5 HP 16500B file system, accessing via FTP, 1st_line.txt file, 6–5 device busy message, 7–3 1–9 2-Mbyte state analyzer subdirectories and directory structure, HP 16500B file HP 16500B file system, mounting, 7–3...
Page 82
TIFF format screen image files, copying, 5–9 to 5–11 measurement modules, HP 16550A, 6–4 3–9 to 3–10 menus, new for in the HP 16500L, 6–9 to time out, 7–5 to 7–6 6–11 time tags, HP 16542A, 6–7 module configurations (HP 16500B), queries by program commands, 5–9...
Page 84
This Hewlett-Packard This is the second edition of Hewlett-Packard edition and of any changed product has a warranty the HP 16500L User’s Guide. specifically disclaims the pages to that edition. against defects in material implied warranties of and workmanship for a period...