Learn to control instruments with Visual Basic
Learn how to control instruments from Visual Basic environments, including Excel. Visual Basic is a very convenient programming environment. Simple test programs can be created quickly while more complex tasks that are not found in an instrument driver are possible. Even if you don't have the VB development application, you can use the VB environment that is included with Excel and Word. The tutorial assumes a fundamental understanding of programming and focuses on instrument connectivity issues. Each section provides sample code; examples include VB 6.0, Excel and VB.NET. More topics will be added to this page - Email Updates will be used to communicate enhancements.
Topics
- Get started - Using Visual Basic to connect to instruments
- Controlling instruments with Excel and the bundled Visual Basic for Applications
- Getting started in Visual Studio .NET - Using VB.NET to control instruments
- Handling Data with Instruments
- Handling Arrays with Instruments
- Using a LAN connection
- Using a USB connection
- Waits and delays - learn how to create a delay
- Communicating with Instruments using RS-232
- Formatting input and output strings for multiple countries
- Synchronizing Instrument I/O with *OPC?, SRQ, and polling
- Capture an image from an instrument's screen and transfer it to a PC