User Interface (UI) Log

Last updated: 2014-11-28

Description

To help you troubleshoot or optimize your GPIB control programs, you can configure the test set to capture GPIB interface traffic and store it in the UI (User Interface) Log. To enable GPIB logging, see Step 2: Turn On UI Log GPIB State .

The UI log buffer can store up to 153600 bytes of information with 255 bytes displayed in a row. If the buffer is full, the oldest entry is removed from the top of the log and the newest entry is added to the end.

You can reset and access the UI Log through either the GPIB interface or a Web Browser.

The following procedures demonstrate how to reset and access the UI Log.

 Step 1: Clear UI Log Data

Before capturing new GPIB traffic, you can clear the residual information in UI Log storage. Two methods are valid to clear UI Log data storage in the test set:

URL in Web Browser to Clear UI Log Data

Command: http:// <test_set_ip_address> /uilogclear

Example: http://111.222.333.444/uilogclear

Figure 1: Clear UI Log Data

Step 2: Turn On UI Log GPIB State

The Log GPIB state is reset to OFF after cycling power. It is not reset by a full preset.

Step 3-1: Get UI Log Data

You must ensure the computer is connected to the test set either via Ethernet LAN or a direct connection using a LAN crossover cable.

URL in Web Browser to get the UI Log Data:

Command: http:// <test_set_LAN_IP_Address> /uilog

Example: http://111.222.333.444/uilog

Figure 2: Display UI Log Data in Web Browser

In addition to GPIB traffic information, the UI Log also includes data regarding the key presses, knob turns and error messages that occur as you operate your test set from the front panel. Only the lines with the prefix "rem:" indicate the GPIB commands.

The UI Log display is not real time, therefore the latest UI log does not display automatically in the web browser. To capture multiple logs, click Refresh in the View menu.

Step 3 - 2: Get Other UI Log Information (Optional)

You can get more information about UI log data by sending the GPIB queries.

The GPIB query SYSTem:LOG:UI:COUNt? returns the number of lines in the log since the last time the log was cleared.

The GPIB query SYSTem:LOG:UI:REPort? returns the string located at the line in the log that you specify. Note that issuing this command turns off GPIB logging. You must turn it back on using the SYSTem:LOG:UI:GPIB[:STATe] command to continue GPIB logging.

Step 4: Save UI Log Data

To save the log in the Web Browser to a file:

  1. In the File menu, click Save As....

  2. In the Save as type: box, select Text File (*.txt).

  3. In the File name: box, type the file name.

  4. Click the Save button.

Related Topics

GPIB Commands: SYSTem:LOG