Keithley 238 GPIB Communication

I am using LabView 6.1 and writing an application that communicates to this instrument (among others) via GPIB. My communication to the Keithley is usually okay for a while in the beginning, but after the program has ran for about 5-10 minutes, it loses communication with it. The Keithley drivers I am using just timeout and it looks like there is not really a specific error code except for ERR(0). Has anyone had issues communicating with this or a similar instrument, and how was it resolved?
I did see someone post that it may be a good idea to modify the Keithley drivers to use VISA instead of the older GPIB communication vi's.
Any help would be greatly appreciated.
Thanks in advance.
Rey

A.S. Thank you for your reply. I used the Keithley 238 Device Errors VI to try and get more info., but it still returned the same thing. I had looked at EDVR(0), but I couldn't find any place where the name could have been changed. Although, I am using an Event loop, so I will double check and make sure this does not reset a value that I set somewhere else.
Here is an interesting thing that I did. There is a part in my program where I am just reading a measurement from the Keithley 238 on a continual basis, and this where it seemed to usually crash after a few minutes. So I opened up the Keithley VIs (namely the Read Measurement one) and ran it in LabView debug mode (slow motion). The funny thing was that when I did this, I had no problem. It ran fo
r 45 minutes in this mode and never failed. I noticed in the Read Measurement VI that they do some writes/reads and even poll the intstrument once or twice in a while loop. So what I did was added some delays in a couple of different places of about 500ms. I also slowed down the polling in the while loops to like 250ms. Once I did this the program, so far, seems to work. I know all the delays (and the times) might be overkill, but it looks like it may be a step in the right direction. We are not looking for super fast response times, so if this did indeed fix the problem, it should be okay. So far for the last couple of days it seems to have worked. I will continue to monitor it, to see if it ever fails even with the delays.
Does any of this seem to make sense? The thing that I don't understand is that I am sure there are people that must have used these VIs from Keithley without any issues, so it seems weird that they would behave differently on my machine, as far as tim
ing. It is not a fast machine by todays standards (PXI 1000B, I think ~1GHz).
Thanks for you input,
Rey

Similar Messages

  • How to develope LabVIEW for GPIB Communication check?

    I would like to check for GPIB communication using Labview.How to check it?

    Hi,
       You can use the GPIB vis located at Functions>>Instrument I/O>>GPIB palette.
    See attachment.
    Attachments:
    GPIB-vis.Jpg ‏411 KB

  • JavaScript GPIB Communication using a COM ActiveXObject

    Is there a way to preform GPIB communication using JavaScript?  Perhaps by creating an "NiVisaCom" object?
    There are about 20 different progid's for the NI VISA VXIPNP dll registered on my computer after installing the GPIB drivers, however all of these seem to return an empty object when created using "new ActiveXObject()" 
    Looking at the documentation I would think this would work:
    gpib = new ActiveXObject("NiVisaCom.NIGpibIntfc");
    gpib.viOpenDefaultRM(session);
    The first line "works" but returns an empty object.  The second line throws an error.
    Another route would be to create an html page with an <object> tag with the CLSID assigned to match the progid, but this has not worked for me either.
    Has anyone had luck with GPIB in JavaScript?

    EE_Steve wrote:
    I have not read any documentation that suggests that this is possible.  Perhaps my initial question was not well formed. I am hoping that someone can point me to documentation, or otherwise explain, how to connect to a GPIB COM object using JavaScript.
    You might to take a look at Measurement Studio. It isn't free however.
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Is-there-an-OCX-for-accessing-the-GPIB-interf...

  • Keithley usb-gpib problems

    Hi
    I have installed a Keithley USB-GPIB switch (CE 488) and suddenly my executable does not run properly, gets stuck and throws data that is not true.
    The NI-MAX shows an unknown VISA entity.
    If I am using VISA/GPIB write/read sub.vi in my program will it influence the proper running of my executable?

    Hi (my prior name was Dect&Bluetooth),
    I have run on third party connectivity software (Intuilink from Agilent and CMD2Go from Rohde&Schwarz) on the Keithley Usb-Switch and it worked.
    My program still makes problems as described before, maybe due to the fact that I am using a NI VISA READ/WRITE in some cases?
    I have added a Spy file to show you the fails, I have changed the suffix to txt, you have to change it back to .spy in order to be able to read it.
    Does it mean that I cannot use SCPI commands with NI VISA in order to use this adptor?
    Thanks for any help.
    Yariv
    Attachments:
    CaptureKeithleySwitch2.txt ‏2619 KB

  • Keithley 6517B GPIB Write Error 7

    Hello,
    I have a Keithley 6517B running and communicating with PC through GPIB. The program was initially running fine, and giving the current-noise signal against applied voltage (as programmed). But now when I run the program , it is giving an error that arises at the 6517 Reset/Preset.vi -
    Error 7 occurred at GPIB Write in Keithley 6517A Reset / Preset.vi
    How do I get rid of this error. I don't understand how suddenly an error arised when I changed nothing in the program or settings of the keithley. The keithley is configured at GPIB address 27.
    I am attaching the main program and the sub.VI llb file .
    Now when I run the main program, the graph does not show any current or noise signal, but it shows a straight line plotted along '0' along the x-axis (that is, against time or voltage)
    Please help.
    Best Regards,
    Poulomi Das.
    Institute for Microsystems Engineering.
    University of Freiburg.
    Freiburg, Germany.
    Attachments:
    VI Measurements_v4.vi ‏45 KB
    kei6517v6.llb ‏1213 KB

    Hello Mike,
    I was on leave hence the late reply. I have attached the entire LV main vi with the sub VIs llb file to the very first message on this post. I have attached them again to this message.Do you mean something else?
    Best Regards,
    Poulomi Das.
    Institute for Microsystems Engineering.
    University of Freiburg.
    Freiburg, Germany.
    Attachments:
    VI Measurements_v4.vi ‏45 KB
    kei6517v6.llb ‏1213 KB

  • GPIB Communication between multiple devices

    Hello, 
    I am trying to build an application in C# which will be able to send commands to more than one device on the GPIB BUS.
    For example I have 3 devices connected to the computer with addresses as:"GPIB0::18::INSTR","GPIB0::19::INSTR","GPIB0::28::INSTR"
    Now, I know how to communicate with a single device. 
    But is there a way I can send commands to multiple devices. So far I have the following. 
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Ivi.Visa.Interop;
    namespace Step_Attenuator
    public partial class Form1 : Form
    ResourceManager rMgr = new ResourceManager();
    Ivi.Visa.Interop.FormattedIO488 ioobj = new FormattedIO488();
    object resources = null;
    string address1 = "GPIB0::18::INSTR";
    string address2 = "GPIB0::19::INSTR";
    string address3 = "GPIB0::28::INSTR";
    public Form1()
    InitializeComponent();
    private void PsaComm()
    private void Form1_Load(object sender, EventArgs e)
    private void button1_Click(object sender, EventArgs e)
    ioobj.IO = (IMessage)rMgr.Open(address1);
    ioobj.WriteString("*RST");
    But now If I want to send a RST command to say device on address2, do I have to again open the session and send it?
    There are going to be a lot of commands to these devices. I am sure there is a much simpler way to do it. 
    Please pardon me if this seems to be a silly question. 
    Thank You. 

    Hi nmedelec,
    I made a research about “Ivi.Visa.Interop.FormattedIO488” and it seems that it is related with Ivi.Visa.Interop which is a third party product. If you have any issue about a third party, I would recommend you go to the office site for help.
    Thanks for your understanding.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • LabWindows/CVI 5.5 for GPIB communication

    Hello!
    I'm a GPIB rookie and can't get my GPIB devices to talk with LabWindos/CVI:
    For the GPIB devices I am using (FWBell 7030 Gaussmeter, Keithley 6514 Electrometer) are no instrument modules available (at least I can't find any).
    How can I talk with these devices, using the IEEE488(.2) functions in LabWindows 5.5?
    If I use these functions (i.e. Send / Receive), I allway get error messages and the devices don't redspond and sometimes they show error messages.
    How do I address a device on the GPIB Bus?
    Every idea is welcome, I need all the help I can get.
    Thank you!"

    Unfortunately I was unable to find a driver for this instrument either. This leaves you with one of a couple options. First, I would like you to submit a request for this driver at:
    http://zone.ni.com/idnet/other.htm
    We develop drivers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://zone.ni.com/idnet/development.htm
    There may be a similar driver on ni.com/idnet that can be used as a model.
    We also have a syndicate of third party vendors that specialize in National Instruments'
    products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance

  • GPIB communications are lost after windows7 sleep

    If I leave a Labview program running long enough for Windows 7 to enter sleep mode, on awakening, the program no longer has communications with the GPIB instruments. Scanning for instruments in MAX produces the message "There was an error...", which says it all.  It happens with more than one GPIB instrument.
    When re-booted, everything works fine until the next sleep.
    This has happened on several computers, all using the same version of Windows 7. It can be avoided by changing the sleep mode to 'never'. The program being run is an executable built on a pc running XP, and LV8.5.
    Is there some other way to fix this, other than eliminating sleep mode?

    Dekay wrote:
    If I leave a Labview program running long enough for Windows 7 to enter sleep mode,
    This has happened on several computers, all using the same version of Windows 7. It can be avoided by changing the sleep mode to 'never'. The program being run is an executable built on a pc running XP, and LV8.5.
    Is there some other way to fix this, other than eliminating sleep mode?
    Not that I have noticed----  Win7 sleep mode seems to shut down a lot of I/O from PCI devices and USB ports.  I think it is related to an attempt to be "Green" and, it does save power.  However, It also presents a problem to running processes that get suspended.
    Jeff

  • GPIB Communication with Lakeshore VSM

    Hello, I am trying to communicate via GPIB to a Lakeshore 7300 VSM. I am using NI-VISA to send commands for testing communication in real time. Unfortunately, none of the commands I send are working. I have tried querying with *IDN?, but the response always times out. Any help or documents on how to use GPIB to communicate with this device would be very much appreciated. Also, if someone could provide an example command with exact syntax to use in VISA for testing purposes, that would be very helpful as well. Thank you in advance!

    You just need to concatinate an End Of Line constant.  In the example below, notice that the botton string constant has the display set to '\ codes'
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Attachments:
    Termination Character.png ‏10 KB

  • New and need help with keithley 2700 GPIB threw labview 2010

    Hello everyone,
    I have the drivers for the keithley 2700 dmm and its ok with labview idntifying the device.
    but when im trying to run the "Keithley 27XX Single Measurement.vi" and take a single resistance measurment
    I always get this error, (pic related)
    can anyone help please?
    btw, where can i start learn from zero how to program in labview in GPIB protocol (not visa) ?
    thanks alot.
    E.
    Attachments:
    Error.jpg ‏500 KB

    Zerez,
    Definately search the forums as I found another forum wher they tried troubleshooting a 2700 that was locking up. Unfortunately a resolution wasn't determined. 
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/keithley-2700-7700-4-wire-Measurement-GPIB/td...
    Can you use max to request values from the device? Using visa test panels. It should reply to the identification command if it is functioning properly.
    Kyle Hartley
    RIO Product Support Engineer
    National Instruments

  • GPIB communication with GPIB (NI PCMCIA-GPIB)card in Visual Basic

    I have a old program in Visual Basic which works fine in windows 98 using the desktop, but using my laptop with windows 2000 on it and NI PCMCIA-GPIB card it fails to communicate and running the program does not recognize the sendIFC command. I am new to VB, so can someone tell me what am I missing here. thanks

    Hello,
    Is the PCMCIA card recognized by the NI-488.2 driver on your laptop? Are you able to communicate from Measurement and Automation with your instrument? What do you mean it does not recognize the sendIFC command? Does Visual Basic give you a runtime or a compile time error? Are you using the latest version of the driver? (Usually 2.1 unless you're on 95 or NT with your card)
    You can try out the Visual Basic language examples in the 488.2 directory under Languages as these will let you know whether or not the driver is installed correctly.
    Let me know if you need more assistance by replying here.
    Scott B.
    Applications Engineer
    National Instruments

  • How to use GPIB communication check in LabVIEW

    There is one power supply in our office from Agilent. How to develop software for that Power supply using LabVIEW we should be able to change the
    voltage via GPIB interface.

    If you have the GPIB commands for your Agilent device in its product manual and a GPIB card, just go to Block diagram functions-> instrument i/o-> gpib and you have a set of GPIB functions.
    Also look at attached VI ( taken from labview examples shipped with labview) to get an idea on how to do GPIB write
    Regards
    Dev
    Attachments:
    LabVIEW_GPIB.vi ‏44 KB

  • GPIB communication slow

    I am reading pressure from a Druck ADTS 405 at about a speed of 8 samples/sec.  This rate seems too slow.  Is there a way to get a faster rate.  I am using the VISA vi's and the NI GPIB card.  THANKS!
    alma
    Solved!
    Go to Solution.

    momof4 wrote:
    I am reading pressure from a Druck ADTS 405 at about a speed of 8 samples/sec.  This rate seems too slow.  Is there a way to get a faster rate.  I am using the VISA vi's and the NI GPIB card.  THANKS!
    alma
    From the published specs found here
    "• Five readings per second remote interface updates."
    Sounds like you are running ABOVE the device's limit already???
    Jeff

  • Keithley 238-Keithley 182 Resistance Measurement

    Dear all,
    I am going to make temperature dependence resistance measurement.I will mak this vi as sub vi and add to basic vi. I built a vi but I have a problem. K238 apply current but K182 is late to measure. As I highlight the exacutaion, there is no problem.
    Structure:
    COnfigure K238
    K238-> apply current
    wait 3 sec.
    K182 ->measure voltage
    K238->standby
    I don't know where I am making mistake. Indeed, trigger lamp is not constant also. Please chekc my vi and help about it and also any addition to my vi is appriciated.
    Attachments:
    Resistance_14.10.2011.vi ‏19 KB
    kei_smu.llb ‏709 KB
    kei182.llb ‏312 KB

    Hi becidea,
    no one willing to help? No one able to help!
    - Missing subVIs...
    - Missing hardware to test your VI...
    Hint:
    Read the manual for both Keithleys. They are old devices and easy to program. Follow the descriptions in the manuals, test all commands step by step...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Communication GPIB avec un keithley 2000

    Bonjour à tous,
    j'essai d'utiliser mon multimètre keithley 2000 en communication GPIB sur mon labview 8.6. J'ai télécharger un vi (pièce jointe) qui est un exemple. J'arrive à initialiser sans pb... mon pb se situe au niveau de la fonction lecture. Le sous vi atteint le time out de 25s et me renvoie l'erreur suivante :
    L'erreur -1073807339 s'est produite à : VISA Wait On Event dans Wait for RQS.VI:1->_ke2000 Wait for SRQ.vi->ke2000 Data Read Single.vi->Keithley channel test.vi
    Raisons possibles :
    VISA:  (Hex 0xBFFF0015) Le délai d'attente (timeout) a expiré avant que l'opération ne soit achevée.
    Je ne comprends pas du tout ce qui se passe, quelqu'un aurait-il une idée !!! Merci à tous
    Attachments:
    Keithley channel test.vi ‏48 KB

    duplicate post

Maybe you are looking for

  • Two different item categories in sales document

    Hi Friends, Can we have two different line items in the sale order by which one item is relevant for billing  F2 and the second line item is relevant for pro forma invoice F5.  And also, I want to use second line item as consignment item so that when

  • MIRO Tax Codes being changed from PO Tax codes

    Hi, When I raise a PO with GL acc assignment to 466001 if I use a tax code other than V0 i get the error message "G/L account 466001 permits only tax code V0; this is correct as the only tax code allowed should be V0 for this GL account and this is i

  • TC not showing up in Disk Utility

    The TC does not show up in the Disk Utility

  • Package javax.servlet doest not exist

    Hi, I just started to learn servlets. But when I am trying to compile my first program, which is HelloServlet , I am getting compilation error saying that Package javax.servlet does not exist, package javax.servlet.http does not exist. I am using j2s

  • Refresh Mviews

    hi all, I have few Materialized views that are dependent on one another.. ex: mv1, mv2, mv3.. I wrote code that will submit jobs to refresh all 3 views at the same time... but it should be in the order mv1, mv2, mv3.. well, i can loop through it in t