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?

Tags: NI Hardware

Similar Questions

  • 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

  • GPIB and VISA support

    I need help to understand how VISA reads from GPIB. By using LabView 8.6, I'm applying to communicate with a customized by using GPIB controller. He is currently working, but I'm not sure of how to use the Enable property of termination.

    I read of GPIB using VISA Read. I use 1000 for the number of bytes. VISA expiration time is set to 30 seconds. The controllers stop character is a ' > ' (ascii 62).

    1 how VISA knows when to stop reading if there are less than 1000 bytes to be read, the stop character is disabled, and it is during the period? VISA stops when more no byte is coming in? It works for me with endpoints off, but with an ending to this topic is much slower and I don't understand why.

    2. I also use the GPIB-RS232 converter for certain situations. The PC has the GPIB and RS232 controller. Using the converter, I need to activate the stop character so that it works correctly.

    A GPIB read should end when EOI is detected. It is one of the management interface, and is a requirement for the GPIB. A stop character of > is very strange. If any type of stop character for a GPIB instrument designed over the past 20 years or more, is, to put it politely, unusual. Your calling a controller raises another question. There is usually only a single controller in a GPIB system and it would be a device as the NI PCI-GPIB or GPIB-USB-HS. You are trying to design your own controller?

    RS - 232 with none of the lines of management GPIB, you need another mechanism to put an end to a reading.

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

  • 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

  • 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?

  • GPIB/ENET 100 connects but cannot pass utility Troubleshooting Test or detect instruments

    Hello

    I'm trying to control two power supplies (AC and DC) Agilent by GPIB. To connect to the computer, I use a GPIB/ENET 100 device but make me connection errors.

    In the beginning, I followed the steps detailed here (http://www.ni.com/gettingstarted/setuphardware/instrumentcontrol/gpibenet.htm) and managed to connect using wizard Ethernet GPIB. Initially, I only ran the software verification of the troubleshooter NOR 488.2 and thought everything was working well, since after having wiped. When I went to the MAX, however, the produced instrument scan and error. I don't have the instrument which I have now so I can't be too specific I want but the error was different from those I saw in the troubleshooting resources. He simply said something to the effect of "there was an error."

    During troubleshooting, I found that the device has failed to pass the test of the troubleshooter nor 488.2. I tried a few fixes suggested in the help option of public service including moving ping IP and suggestions for change. Ping has been answered, but she came from a different IP address and said something to the effect of non-responsive, while the same amount of packets that have been sent back and none were lost. Initially, I tried to adjust IP the device manually to the previously defined address and everything else (the subnet mask, etc.) set to zero. Then I tried corresponding subnet of the computer, then by asking Assistant Ethernet GPIB to suggest an address, then the first with the IP address itself has changed to the previously defined address and finally the DHCP option (wouldn't cross). None of these worked and got the same results of the ping command. In fact, when I'd go to MAX to check for changes to the intellectual property, they would not be there, and I enter the values again. Nothing I have tried so far has led to the aircraft passing the test of the utility.

    I went through all of the fixes suggested in the troubleshooter nor 488.2 and searched online but nothing worked. I would really apprecate some help on this issue and hope that someone on this forum has addressed a similar problem. Finally, if you need me to post screenshots or specific error messages, I can do so starting Monday.

    Thanks in advance,
    Yusif Nurizade

    Hello Yusif,

    How did the GPIB/ENET 100 connected to your PC?  Is it connected via a router or is - this directly connected via an ethernet cable?  When the GPIB/ENET 100 is connected to a router, it might get an IP via DHCP, but when it is connected directly, you should make sure your PC and the ENET 100 are on the same "network".  This means that you will need to make sure your firewall is disabled on your PC (to start) and ensure that the address IP of your PC and the ENET 100 range are similar, as well as the mask subnet for both devices.  Can you confirm that you have done this?  Please let me know and I'll do my best to help!

  • 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)

  • Establishment of a VISA for a TCP/IP connection

    I'm writing a LabVIEW program that will allow me to recover data in my LeCroy Wavejet 354 and display them in a LabVIEW interface.  I set ACIP of LeCroy passport.  I have a problem ping from the unit so I know that my ethernet to the computer connection is good.  We know do not know how I can use VISA to make the connection for TCP/IP connections. In MAX, the function of remote systems will not detect the IP address of the bezel-o.  I also tried to create a new device under devices and interfaces in MAX and after "create new", he gave me no option to create anything.   You have an example VI that can help me see how VISA can be used to establish this connection or know another way I could get this to work?  Thanks for the help.

    Remote systems is not the right way to add Ethernet instrument. Right click on the device and Interfaces and then left or do a right click on the Create New..., must display the screen below. You want to select VISA TCP/IP resource

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

Maybe you are looking for