| As the development of the virtual instrument,the programming of virtual instrument is palying an very important role,just as the saying goes"software is the instrument".When people want to set up their own ATS(Auto Test System),they have to use the instrument driver.As we know, an instrument driver is just a collection of functions,organized in a .c, .lib, .obj, or .dll file, with a function panel front end,with the help of the instrument driver ,people can easily control and communicate with the instrument,having no obligation to care about the communication details.An instrument dirver is always released with its instrument in commercial.This work is part of the design of 500M sampling Digital Storage Oscillograph and the assignment is to develop the GPIB(General Purpose Interface Bus)instrument driver.The controller is able to operate the DSO in distance using the instrument driver.The task consists of the programming of the GPIB-RS232 convertor(the hardware is well developed),which enables communication between the DSO and the controller ,the development of the instrument driver and the design of DSO control panel.The GPIB-RS232 convertor is designed according to IEEE488.1/IEEE488.2 standard,a C51 MCU is in charge of this unit,its monitor software makes sure that the controller can communicate with the DSO correctly through messages.Based on the functions of the GPIB-RS232 convertor,we can develop th e instrument driver and the DSO control panel.Thanks to LabWindows/CVI,with its great help,we can finish these tasks in a much easier way. LabWindows/CVI was designed to minimize the development effort required to create engineering and scientific instrumentation applications and includes numerous features to ensure the success[4]. |