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:
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:
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.