benefits of VISA by GPIB

I want to know the benefits of the VISA by GPIB in labview when we connect our pc to a device that has interface GPIB

What could be the reason behind the use of the VISA program

I want at least 5 advantages of visa by GPIB.

Hello

1 VISA Write equals a GPIB entry unless the entry VISA returns a VISA Out reference which is much easier to use. You who go to the next function VISA instead of a GPIB cabling address at all. This will make your cleaner blockdiagram.

2.portability:-VISA supports GPIB, series, Ethernet, USB, PXI, VXI, and PCI. So, with a single piece of code, you can support all the interfaces and the same GPIB controllers from different vendors.

3 VISA supports aliases. You can assign logical names to resources. Instead of trying to remember the GPIB address in a rack full of instruments, you can reference "DMM", "Scope", etc.

4. If you program multiple devices communicating on more than one type of bus, it might be easier to use VISA for your entire system.

5. in the VISA, you must always call viEnableEvent() before being allowed to receive events, it is necessary for the VISA to avoid the race condition to try to wait for events for which the equipment may not be activated.

6. the control of VISA resources allows you to choose from a list of available resources.

Enough

Tags: NI Software

Similar Questions

  • How visa or GPIB

    Dear Sir / Madam,.

    I do a program of measure of stability by using Labview and GPIB-USB-HS connected to Keithley. But I have a few questions.

    (1) I can read the signal from the Keithley by using . I saw this method to an example on the site. My question is why should I write before I read? And how can I stream (using the while loop)?

    (2) I also read the signal from the Keithley by using my question; What is the best way (more accurate) read the input method or voltage signal? Why I can't just READ without writing.

    (3) I want to draw the samples I've read in a chart.  X - is the time, Y is the amplitude, but I need your advice for that? !! .

    Thanks in advance

    Ali Al-Omaishi

    PS: Both VISA and GPIB programs in the file attachment.

    Hello

    VISA is the preferred method, as with VISA, you can read and write to the instruments on all buses available on this instrument.

    e.g. GPIB and USB and series.

    You should open the connection of visa that only once in your program, make the necessary entries and read, just before the end of your program, you need to call close.

    On your question, why make an entry if you want to only read is that the instrument has no way of knowing that you want to read, and especially what you want to read.

    PS what Keithley instrument you speak? And there is not an available instrument driver at OR or Keithley?

  • VISA or logging GPIB Drivers

    Hello

    I'm looking for a possibility to get VISA or GPIB drivers logs. As the command that was sent, or whose data comes from the instrument. Something like what proposes NI SPY.

    Is it available? If so, is there an API to start/stop recording and get logs?

    Thank you.

    asergeev2001,

    If you installed LabVIEW, you can call the follow-up of LabVIEW IO API to achieve this.  You should also be able to call these functions using c# (call of the LabVIEW VIs to other languages: http://zone.ni.com/devzone/cda/tut/p/id/5719#toc3), and these screws can be found in Files can / National Instruments/LabVIEW xxxx/vi.lib/NiIOTrace.

    It will get the functionality you're looking for?

    Kind regards

  • VISA, GPIB read all device settings values

    Hello

    Y at - it a specific order of VISA or GPIB to read the current state of a device? I don't know the status byte.

    What I'd like to see is the present value of all parameters of the device, in order to be able to reproduce the same situation, other times.

    Is this possible with a standard command? Or is it related to a specific order of devices?

    Thank you

    This is something that is totally dependent on the device.

  • Installation of NI-VISA and NOR-488. 2 on Mac

    I have a new Mac on which I am trying to install instrumentation OR (VISA and GPIB) pilots, and things don't work any tips would be appreciated. I downloaded the most recent version of these two (14.0 visa) and 3.0.1 for the GPIB, ran the installers (restart the computer between the two installed) and then tried to run the VISA configuration utility and the GPIB configuration utility to verify that the drivers were ok (at this point, no measuring equipment is attached to the machine (ultimately, the material will be a USB-> RS232 adapter and a USB-> adapter GPIB).

    The two configuration utilities crashed running. Config GPIB obtained in what concerns to the top of its window and then crashed a few seconds later; NI-VISA never even managed to finish to display the home screen.

    In reviewing reports of incidents, accidents seem to be in the OR-PAL driver at low altitude. The report indicates that

    / Library/Frameworks/nipalu. Framework/versions/1/nipalu

    Abort() called

    Poking around the list of files mentioned in the uninstall NOR-PAL guide, it seems that the kernel extension nipalk.kekt was not actually installed correctly (it is absent of/Library/Extensions and/System/Library/Extensions, and according to the uninstall folder, it should be present in both. I tried to copy the kext above a machine that does not have a functioning VISA/GPIB install, but OSX refused to load because it has not actually been installed.

    My plan right now is follow the uninstaller for VISA, GPIB and NOR-PAL and then try to run the installers, but I fear that I will end up in the same place. Y at - it something special or something needed to get these drivers to install correctly (i.e. should things be installed in a specific order, should I try to install VISA 5.4 and then do an upgrade installation 14, try to sacrifice a goat, stuff like that)?

    The material is a Mini Mac OSX 10.9.5 running.

    Thanks for any help.

    And just to follow up with a few additional details, I went through the same procedure on a second Mac that was fresh out of the box. When running Setup for NOR-488, one of the things that we tried to install was an "Update" the subsystem NI Core Services of pilots. This was despite the fact that the VISA facility has implemented a much newer version of the kernel drivers.

    Thus, it seems that the problem is that NEITHER-488 Setup does not correct version control before overwriting the subsystem of pilots. He obviously checked that the driver has been installed, since the action has been listed as "update" instead of "install".  At least in principle, running the installer of NOR-488 first, then the VISA installer should work, but for some reason some the only time where I tried in my tests, it did not work. Maybe, I haven't had a full work of sanitation among other failed attempts. Just for the record, is the sequence that seems to work

    (0) remove all traces of any agreement, failed to install. Follow the steps described in the files uninstall.txt for NOR-488. 2, NI-VISA and NOR-PAL. The uninstall for this latter guide is located in/Library/Application Support / National Instruments/NOR-PAL

    (1) perform a standard installation of NI-VISA 14.0. Restart the computer. Check VISA works (just run the config utility)

    (2) perform a standard installation of NOR-488. 2 3.0.1. Restart the computer. The VISA and GPIB crash when access

    (Optional) curse (2A) to the length

    (3) perform a standard installation of NI-VISA 14.0. Restart the computer. The VISA and GPIB should now be functional.

    Tested on a pair of 'Late 2012' Mac mini OSX 10.9.4 running. One machine was Labview 2014 before you install the drivers for the instrumentation, the other had not installed LabVIEW.

  • Problem of comunication GPIB (Tektronix TK2465)

    Hello, I'm quite new with labview and I have a problem with the GPIB communication; Dealing with a Tektronix TK2465BCT, I plugged a GPIB-USB-HS to my PC Windows8 adapter, when I try to communicate with the instrument via NI MAX seems to communicate properly, or at least that it is recognized by the PC on the correct address, as soon as I start a VI downloaded from the page of the pilot of the aircraft it detects not the oscillocope. Any idea? Thank you.

    It is a very old and unsupported. I have not downloaded so I don't know if it uses VISA or GPIB low-level functions. You specify a name, address or the resource before you run it? What is the error you get?

  • VISA does not not for the compiled application

    I wrote an application that uses VISA, mainly GPIB resources.  in any case, my laptop has labview 8.5 installed on it.  When I run the app on my phone, it uses the GPIB fine, compiled or not compiled.  When I take the compiled application on my desktop which has run labVIEW files installed on it, the VISA resources are not even detected (nothing appears in the drop-down list control) in the application, but I can see them in MAX that is installed on the desktop computer.  Any suggestions?

    Brent

    It seems that you have not included the VISA run-time when you generated the installation program. You have only included NOR-488 and MAX because the instruments are detected and MAX use visa when he performs an analysis of the instruments. You've created an installer didn't you?

  • Problems syncing with GPIB Read on a SR400

    I'm using LabView to control a meter of photons SR400 of Stanford research systems. Can control the box easily, I'm having problems with reading the correct data in the box of. I get incorrect values of 0 ', 6 and 134' rather than real account numbers. I see the correct values on the display screen, but GPIB reads bad.

    It's what I've tried and what I've learned:

    • At first, I was getting random 6 error LabVIEW (from reading GPIB) which would prevent my program to run. To resolve this problem, I put a case Error statement after she and simply write the word ERR in my data file and move on to my next point data. This stopped my cessation program, but started badly reading the values using reading GPIB.

    • The SR400 takes data for N periods on two channels, A & B. The first column of the channel A every 6 seconds and the rest of the columns on both channels would be regular values. However, the problem got worse and my first column of the channel began to write 0s, the second column of the channel A would be 6 s with some 134 s and the rest of the columns would be nice. But, if I had only 1 time for each column, I now have data lost on two channels A and B. A channel would be of 0 s and channel B 6s and 134 s.

    • This problem is sporadic. I can't control when it arrives. Today he works. Yesterday's didn't.

    • It seems to be a timing issue, but I don't know what I can do about it.

    My questions for you are:

    1. Is it better to use GPIB or VISA to communicate? I use GPIB cabling, so be it.

    2. How can you correct problems of timing in GPIB?

    3. Any suggestions on how to improve this?

    I joined code of 8.2 and 2011. I'm trying to convert our code in 2011 to see if it solves the problems. The VI with GPIB Read is CollectData/TakeData and it is called by a VI, where he gets called frequently, but the reading and writing of all MTP recharge time is done by data files CollectData/Take.

    Thank you all in advance for your help. I'm a grad student and still learn from these electronic and LabVIEW.

    Start by lowering of the busspeed. I think that 1 uS is more fast enough for the handshake and then I would disable autopolling.
    You can do it in Max settings for your gpib card.
    Low level visa uses gpib, but never use it directly. In any case the speed is completely determined by the slowest device on the bus, complaining the sr400

  • Communication with the niVisa (GPIB) do not work next to a serial interface

    Hello

    I programmed an application in C++ (Visual C++ with MFC, running on XP). On the one hand, I control devices of different measure (also from different suppliers). All communication is done with niVisa (Version 4.6). On the other side, I send remote commands to a generator via the serial interface. To do this, I use CSerialPort, it's a Wrapper MFC of the Windows API. Thus, niVisa is not used for the serial connection.

    It works without any problem until I connect the measurement equipment (any type of) via Ethernet.

    When I now connect the scope via GPIB (I use a NI PCI-GPIB), communication works without any problem as long as I wouldn't send anything on RS232. After I send something to my generator (and close the com-port), the next Commander of VISA will give me an error (VI_ERROR_ABORT). Now, I can log in again and everything works normally again (until I have again send something on the com-port).

    For me, it's a really strange question. Any ideas? Any help?

    Best regards

    Michael

    OK, I finally found the problem.

    When you use the serial port, you can write data with normal writing (WriteFile()) function or with the tip (WriteFileEx()). Do not now ask me for more details on the difference, it's something with the mode "" overlap...

    After I send all the data with WriteFileEx, VISA-connection via GPIB produces an error. So I went to the basis of WriteFile() and everything works. Don't ask my consistency betwenn VISA (with GPIB and just GBIB) and the connection series. I'm just happy right now...

    Michael

  • Keithley 2400 GPIB read value ceiling hit voltage

    Hello

    I wrote a very simple program for the 2400 Kiethley (attached), using controls GPIB. I did make use of the functions provided by keithley VISA or GPIB.

    I am sourcing current and voltage (other non-essential paramateres as time, etc. may also be read).

    The program works well, but whenever the voltage reading is "+ 9.910000E + 37', the sample has a resistance of 50 ohm only. So I know for sure there is no open circuits.

    Advice/suggestions/solutions are welcome. If this query was posted by another, guide me to the same

    FYI: When I use the VISA I can tackle this problem, but the problem is the time consumed when you use VISA

    Hello

    to enable the voltage reading, you must use: CONF:VOLT (but maybe it's the default...)

    In order to transfer the last reading in the buffer to KE2400 to the PC, you should use ETF instead of READ (READ is the combination of the INIT and ETF)

  • Several errors in Include for NiDMM.h

    I write software MS Visual C++ 6 to talk to a USB-4065 DMM. I copied the files nidmm_32.lib and nidmm.h of the necessary include files in the project directory. But the linker complained a .h file missing, I would copy it into the directory of the project & get still another file missing. This is the summary of what I copied:

    IVI.h-> visa.h-> visatype.h-> vpptype.h-> ividmm.h-> ivi.h, which is already in the directory, but it is not found!

    I programmed VISA and GPIB in the past and thought that the DMM interface would be like the GPIB with an include file.

    Any help would be appreciated.

    Thank you

    Hello Gary,.

    Is that what you have installed NI-VISA? If this isn't the case, please download and install it. If you don't have a VISA, how are you on the link of the files .h to the project?

    You must import the file nidmm.lib of the project since it is the file that contains your definition. The procedure step by step on how to do this, simply open using the DMM OR (start > all programs > National Instruments > DMM OR > Documentation). Once it opens, go to the content tab and go help the DMMs NOR > Programming with NOR-DMM > Getting Started > using NOR-DMM in Visual C++.

    Also, even though you may be indicating to the compiler as to where he should seek your .lib file giving him this way, you can still say it the exact name of this. lib. Your ".h" file called nidmm.h does not mean that it takes to be called 'nidmm.lib' the '.lib' file.

    What you need to do is to add nidmm.lib to your project or you can go to the project properties and access Configuration Properties > Linker > input and in the entry window, must add "nidmm.lib" in the additional dependencies field, so that the compiler knows what .lib file for searching through your nidmm_init function.

    I would like to know if any of this helps.

    Thank you

    Ryan

  • Instrument to appear in MAX, but not in the executable file

    Hello

    I use two HP34401A make some measurements, and I transfer the program to a laptop with complete labview at your desktop with only the runtime engine.  Instruments made their appearance in the Office MAX, but when I run the executable, they cannot be detected.  I expect some suggestions on how to possibly resolve this problem.

    Thank you

    Not to mention that MAX, what other driver is installed and necessary? Did you install NI-VISA, NI GPIB? At a minimum, you should include NI-VISA in the installer that you built.

  • GPIB-USB-HS shows no MAX after that I used the wizard NI VISA DRIVER

    I accessed GPIB USB HS in the MAX software. As I was not able to communicate NF RLC remotely, so I tried Wizard DRIVER VISA OR according to tutorial Assistant pilot NI VISA , however, thnings went wrong and I am not able to see same GPIB to the MAX software now. What should I do now?

    The first picture below shows the GPIB USB HS as shown in the software MAX and the other image shows no GPIB USB HS.

    Yet once I installed driver USB GPIB link below:

    http://www.NI.com/download/NI-488.2-15.0/5427/en/

    Its working fine now.

    Thank you.

  • GPIB-USB-HS and USB-8451 communication issues - appearing only in VISA

    Hello

    I recently started a new job and have had communication problems between my adapter GPIB-USB-HS, my VISA or MAX-Labview and USB-8451 I2C/SPI interface.  I installed LabView to 32 bits, OR-488. 2, the driver for the 8451 on my windows desktop and VISA 16.0 7.

    In the windows Device Manager, the 8451 appears as a device USB of NI-VISA and Gbspecifications FOR-USB-HS presents itself as a GPIB Interface of NOR.  Two of these instruments are recognized NI Max so but communication Gbspecifications FOR add-in adapter (and connected instruments) fails and he can't find the instruments and the self-test fails with a hardware error unknown gpib (-37052).  The watch also neither device VISA Interactive Control.

    The ready light is lit on the GPIB-USB adapter and the 8451 flashes green as if nothing is wrong at the end.  I uninstalled all the software of NOR and reinstalled, and I run MAX as an administrator.  Is there possibly some computer settings I could neglect or need to change to open a communication?  Any other ideas on why I can't communicate with devices?

    Thank you!

    Trey

    This is a device-Lock software that my it was preinstalled on the computer blocks the USB port.  SHE has added features like confidence, and now it works.

  • Œuvres GPIB of MAX but no VISA

    I am trying to contact a counter ORTEC 996 with a NI GPIB-USB-HS. Once I get MAX to find instruments, I open the Communicate with the instrument window.

    It works and I can send the START\n command to boot the target device. The beginning on the unit will light up.

    I then send the order STOP\n and the LED goes out so I know it works.

    I tried to do it using some of the vi in Labview GPIB, but most things forum I've read advise to use VISA, so I tried.

    Don't know what I'm doing wrong here, but my instrument never gets the orders sent by my vi.

    Home - NIspy capture info and my vi.

    Mike

    -I am pleased that this is the last Monday of the week.

    If you need to send \n, you need to right-click on the control of your channel and select '-display of Codes "."

    p.s. Don't stick things a Word doc. attach the actual spy file if you need to do in the future.

Maybe you are looking for