cvi linux下运行,linux中安装NI VISA

1、加载NI visa for linux.iso 或 将关盘文件里面的东西复制到一个普通目录中。

2、在终端里,进入安装文件的目录,运行 “./INSTALL”脚本即可。

可能出现拒绝运行的提示,这是因为INSTALL文件没有运行权限所致,有一点击右键增加可执行权限或使用“sh ./INSTALL”来强制运行脚本。

3、中间遇到提示回答即可,一路安装完成。

NI-VISA comes with a utility called VISA Interactive Control (VISAIC) on Linux. This utility gives you access to all VISA functionality interactively, in an easy-to-use graphical environment. It is a convenient way to view available ports and get started developing instrument control applications. Note that this utility cannot be used to change settings on your instrument.

To launch VISAIC on Linux, use the NIvisaic command. When VISAIC runs, it automatically finds all of the available resources in the system and lists the instrument descriptors for each of these resources under the appropriate resource type. This information is displayed on the VISA I/O tab. The following figure shows the VISAIC opening window:

0b6a46b0f05a89873f5c87fc23ab93f1.gif

Figure 1. The VISA Interactive Control (VISAIC) Utility on Linux is a convenient way to view available ports and get started developing instrument control applications.

Another utility, VISA Configuration, can be used to add and configure instrument interfaces in your system. To run this utility, use the visaconf command. The following figure shows the visaconf opening window:

44fbe03d5964fbacd2059eaff3980e43.gif

Figure 2. The VISA Configuration utility can be used to add and configure instrument interfaces on your Linux system.

If your instrument is not initially displayed under the Resource Editor tab, you can use the Add Static button to manually add it to your system.

Locating and Installing Existing Instrument Drivers

While it is possible to use NI-VISA to communicate with an instrument directly, using instrument drivers can abstract the lower level details and accelerate software development. The NI Instrument Driver Network provides access to drivers for thousands of instruments many third-party vendors.

If you want to use an existing instrument driver in Linux, it must be a Plug and Play driver. Interchangeable Virtual Instrument (IVI) drivers run only on Windows operating systems. To download an instrument driver for use with LabVIEW on Linux, you must make sure it is packaged as a *.vi or *.llb file. You cannot open or install a *.exe instrument driver file on Linux.

To access the instrument driver VIs in LabVIEW, save the *.llb and menu files in theLabVIEW\instr.lib folder. You will now have access to the VIs from the Functions>>Instrument I/O>>Instrument Drivers palette. You can use these VIs to communicate with your instrument.

Instrument Driver Development on Linux Using the NI-VISA API

If an instrument driver does not exist for your instrument, you can use NI-VISA functions in LabVIEW or LabWindows/CVI to control your instrument. Make sure to have your instrument user manual available, because you will need to be familiar with the commands that your instrument responds to. Refer to the VISA API section in the following document: Instrument Control in LabVIEW Tutorial, for more help on using VISA in LabVIEW. You can access the VISA VIs from theFunction>>Instrument I/O>>VISA palette in LabVIEW.

For information on accessing instruments from LabWindows/CVI applications using NI-VISA, see the Instrument Control in LabWindows/CVI Tutorial. Note that LabWindows/CVI applications require the LabWindows/CVI Run-Time Module for Linux to execute on a Linux OS.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值