Make practical use of those useless Agilent IO Monitor generated logs.
The Agilent IO Monitor application, which is a part of the Agilent IO Libraries Suite, records all SCPI transactions sent between the host PC and instruments it is communicating with. This is useful for test plan analysis, pinpointing bottlenecks, inspecting measurement methodology, etc. This transaction log can be exported as an XML file; however it is impractical to use since it stores the transactions in unreadable binary format. Additionally, XML files are not friendly for bulk analysis (e.g. timings).
This script will take the generated XML file, convert the binary SCPI into human-readable ASCII, then format it into parsable formats such as .txt and .xls.
Requirements
- Python 3.3.0
Instructions
- Use Agilent IO Monitor to record SCPI transactions.
- Launch Agilent IO Monitor
- Click Start Capturing Messages
- Send your VISA commands, run your test script, what have you
- Click Stop Capturing Messages when done
- Generate the XML file
- File > Save Messages As
- Save the IOMonitorLog.xml file to the same directory as the parser.py script
- Run the script
- Windows:
- Open the Command Prompt and
cd
to the directory containing parser.py as well as the IOMonitorLog.xml file - Run
py parser.py
- Open the Command Prompt and
- Mac OS X and Linux:
- Open the Terminal and
cd
to the directory containing parser.py as well as the IOMonitorLog.xml file - Run
py parser.py
- Open the Terminal and
- The parsed files will be generated in the same directory as .txt and .xls files containing the same name as the xml file