摘 要
基于虚拟仪器的概念,通过GPIB接口总线实现PC机与可编程仪器的通信。虚拟示波器较传统的示波器,大大降低了成本,而且使用起来方便,需调用一个VI,就可以完全实现传统示波器的功能。本文介绍了虚拟仪器的GPIB总线接口技术。
主要任务是实现函数发生器产生的波形能够在电脑显示器上显示。函数发生器通过GPIB卡与电脑连接并传输数据,电脑上通过LABVIEW软件环境完成与GPIB卡的数据通信。在LABVIEW环境下完成了对虚拟仪器前面板以及后台程序框图的设计与编程。在LABVIEW开发环境下,实现对GPIB控制时,采用VISA模块驱动的方法进行编程。设计结果在LABVIEW环境下的虚拟示波器能够实现示波器的功能,能够显示函数发生器所产生的任意波形。
关键词: GPIB; 虚拟仪器; LABVIEW; 示波器
According to the concept of the virtual instrument,the pc achieved commnication with the programmble equipment with GPIB Interface bus. The Virtual oscilloscope reduce the cost more than the traditional oscilloscopes and convenient to use, we need to call a VI, which can be realized the function of traditional oscilloscope fully. This text presents a Virtual instrument's GPIB bus interface technology.
The main task is to achieve the waveform can be displayed on the screen of the computer which send out by the function generator. The function generator connect to computer through a GPIB card and transfer data. Labview can be communicated with GPIB card and save data on computer. The virtual instrument front panel design and background process diagram programming can achieved under Labview software environment. The realization of GPIB control, using VISA module-driven approach to program in Labview. The result of the design is that the virtual oscilloscope is able to complete the Real oscilloscope function in Labview.
Keywords: GPIB; virtual instrument; LABVIEW; oscilloscope
目 录
第二章 原理框图与设计思路................................................................................. 5
第三章 Labview软件环境及其编程...................................................................... 7
3.2.1 GPIB命令................................................................................................ 8
第四章 显示波形实验.............................................................................................. 23
4.2 显示方波波形................................................................................................... 23
致 谢....................................................................................................................... 27