XIBFP
所属分类:通讯编程
开发工具:Visual Basic.NET
文件大小:4KB
下载次数:1
上传日期:2018-04-07 18:14:51
上 传 者:
oeoobia
说明: NI-GPIB例程,供VB编程者参考,希望大家会有用,我也是刚学,希望大家多多指教
文件列表:
J6MSSCCPRJ.SCC (191, 2006-03-04)
kSimple.frm (7362, 2004-02-17)
Simple.vbp (868, 2004-02-17)
Simple.vbw (95, 2006-03-04)
Win32 Visual Basic SIMPLE Sample Application
This directory contains the following:
README.TXT - This readme file
SIMPLE.VBP - Visual Basic project file
SIMPLE.FRM - Visual Basic form file
Description
-----------
The Simple sample application was written to do writes and reads to a
Tektronix PS2520G Programmable Power Supply. The application is a
Win32 GUI application that was created using Microsoft Visual Basic
5.0. It illustrates how to use the NI-488.2 API.
If you have Microsoft Visual Basic 4.0, a couple of sample applications
are available on the Web. Please refer to the Language Interface
Information in DOWNLOADS section at the following location:
http://www.natinst.com/gpib/
Checking Status with Global Variables
-------------------------------------
Each NI-488.2 call updates four global variables to reflect the status
of the device or board that you are using. The four global variables
are the status word (ibsta), the error variable (iberr), and the
count variables (ibcnt and ibcntl). Your application should check for
errors after each NI-488.2 call by looking at ibsta. The ERR bit in
ibsta indicates if the call succeeded or not. If the ERR bit is set,
iberr contains an error code. For a complete description of ibsta
bits and iberr error codes, see the online help. If you are writing a
multithreaded application, please refer to the online help on writing
multithreaded applications.
Compiling, Linking, and Running the Sample Application
------------------------------------------------------
To open the sample application, select OPEN PROJECT... from the FILE
menu. In the OPEN PROJECT dialog box, click on SIMPLE.VBP to highlight
it, and then click on the OPEN button.
To compile the project and link it to the Visual Basic language
interface, VBIB-32.BAS, select the MAKE SIMPLE.EXE... item from the
FILE menu.
To run the project, select the START item from the RUN menu.
More Information
----------------
Refer to the NI-488.2 online help for more information on application
development.
Copyright National Instruments Corporation.
All Rights Reserved.
近期下载者:
相关文件:
收藏者: