LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need of VISA driver

Hi All,

We have following driver for following devices.

DAQmx driver : DAQmx devices

NI-488.2 Runtime : GPIB devices

NI-DMM: NI DMM devices.

 

can anyone let me know why we need VISA library when we have above device drivers.

 

Regards,

Anand

0 Kudos
Message 1 of 7
(2,784 Views)

VISA is an abstraction layer for instrument communications over Serial (RS-232, RS-422, RS-485), Ethernet, GPIB, USB, and possibly other buses that I am not currently aware of.  This makes drivers reusable by having a single set regardless of which of these buses you are talking over: the only thing to change is the initialization.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(2,774 Views)

NI-VISA lies between software (like LabVIEW) and hardware (instruments) and handles all of the interface specifics.

 

With a properly written program using VISA you can take an instrument that was connected using an RS-232 serial port and move it to GPIB, LXI, USB, or any other interface without having to change anything in your program.

 

This is very handy when you have several "test racks" full of various instruments and need to swap out a failed instrument or replace an old one.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 7
(2,750 Views)

Hi,

 

Can you please elaborate this.

 

With a properly written program using VISA you can take an instrument that was connected using an RS-232 serial port and move it to GPIB, LXI, USB, or any other interface without having to change anything in your program.

 

As per my understanding , VISA will be used to communicate with instruments ,The instrument will be either connected via serial, or GPIB or Ethernet port etc.

 

Regards,

Anand

 

Regards,

Anand

0 Kudos
Message 4 of 7
(2,744 Views)

Well for instance we have several Yokogawa WT230 power analyzers in our lab. Some of them have GPIB and some of them have RS-232 interface.

 

Using NI-MAX I create a VISA alias called "Yokogawa" that points to the serial port or GPIB address the power analyser I am using is plugged into.

 

In my LabVIEW program the VISA Resource for the power analyser will simply be "Yokogawa". (not ASRL1::INSTR or GPIB::3::INSTR)

 

Now I can swap out the Yokogawa for one that uses serial or GPIB (or any other interface) and I only have to update the VISA alias in NI-MAX.

 

No changes at all need to be made in the LabVIEW code, because VISA takes care of all that.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 7
(2,740 Views)

@RTSLVU wrote:

This is very handy when you have several "test racks" full of various instruments and need to swap out a failed instrument or replace an old one.


My prime example is when we decided to design a whole new rack for a new system, it was decided to eliminate GPIB and go to LAN (mostly for cost).  The same models were being used, just with LAN instead of GPIB.  All of my power supply, oscilloscope, DMM, etc. drivers that used VISA had no changes necessary and just ported over without a problem.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(2,728 Views)

Also this might help explain where and how VISA fits in. 

Universial Test System final 2 - Page 1.png

 

This is a diagram of the Validation Test Platform I wrote for our test lab.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(2,724 Views)