Archive forMarch, 2009

Bug tracking analysis using SharePoint

Bug TrackingFor many companies, Microsoft Sharepoint has become an important way to communicate and collaborate on projects, including hardware and software development projects. It’s very simple with SharePoint’s custom lists to develop quick bug reporting solutions to meet your internal needs and test methodologies in just a few minutes. However, what most people don’t realize is that SharePoint can also be used in conjunction with Microsoft Excel to perform some rather informative analysis and graphing of your defect tracking data.

The key to everything is the ability of SharePoint to export data to Excel using web queries. You can export the data to Excel and, using the connector, update the data from SharePoint whenever you want (e.g., on opening the spreadsheet, after a set period of time, via a macro button, etc.). It’s incredibly handy and VERY powerful, especially if you’ve any familiarity with some of Excel’s conditional formulas – in particular, COUNTIF.

__(‘Read the rest of this entry »’)

Comments

Automating Tests – Python & PyVISA

Python & PyVISA

Often in testing, it would be nice to have a way of automating mundane tasks on test equipment without having to dig too deep into proprietary code. Well, if your device has a GPIB/Serial/USB interface,  you’re in luck.  Using Python and PyVISA, you can fairly easily automate tasks using only a few lines of code.

VISA (Virtual Instrument Software Architecture) is an industry standard implemented by several test and measurement companies to simplify development using their equipment. VISA is maintained by the Interchangeable Virtual Instrument Foundation (IVI Foundation), and provides a common API for controlling test instruments from a computer, while PyVISA provides the necessary hooks between Python and the standard VISA library for ease of programming. After installing Python and the PyVISA package, you can start sending VISA commands in just a few lines of code.

An example to call an instrument on a GPIB bus:

import visa
test = visa.instrument("GPIB::12")
#Clear settings on equipment
test.write("*CLR")
#Query the identity
test.ask("*IDN?")

Writing (when a reply isn’t required) is simple using the ‘write’ method, and if a reply is required, use the ‘ask’ method.  That’s it! A simple way to quickly develop/automate testing using your test instruments.

Comments

Next entries »