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

Similar Messages

  • 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

  • Establishing communication with GPIB devices

    I am a newbee to GPIB and a novice at VB (6.0). Have been unable to establish communication with devices from the VB .exe. I think I am not declaring something in the right place? Any suggestions?

    TG,
    What kind of trouble are you having reading data from the instruments? There's information that addresses some of the common issues about why communication with instruments might fail. For more information, please refer to:
    Why Can't I Communicate with My GPIB Instrument?
    A couple of useful tools that you can use to check out communication to the instrument before writing your Visual Basic app are NI-488.2 Communicator and
    Interactive Control (IBIC)
    If you are still having trouble after trying out some of the suggestions listed above, it would be helpful if you capture the ibwrt and ibrd calls using NI Spy, save the Spy capture, and then attach it to this forum. If you are unfamiliar with Spy, here's a link with information about how to use Spy:
    NI Spy
    Hope this information helps with getting data back from the instrument.

  • Errors communicating with my GPIB device in C++

    I am trying to communicate with a GPIB device via a custom C++ program.  I am using ni488-2.h and the associated obj file.
    When I send the commands to the device "manually" through the Measurement & Automation Explorer, everything seems to work fine, consistantly.
    However, when I try sending commands via code, per the example provided ("Show Sample") button.  Some commands return an error, but not all of them, and not always the same ones.
    The Measurement & Automation Explorer seems to wait after I send a command, and displays "Reading..." indicating that it is doing some sort of check to ensure there is data to be read...or something.  However the sample code doesn't do this.  It's the only difference I can find, without actually being able to see the code M&A Explorer uses.
    Any help would be appreciated.
    Thanks
    EDIT: The device I am communicating with: S380 Dual Channel Optometer (UDT Instruments)
    via: GPIB-USB-HS
    using drivers (header file etc.) from May/Jun 2014

    If you installed NI-488.2, it will install sample programs. In Windows 8.1 C:\Users\Public\Documents\National Instruments\NI-488.2\Examples

  • Need urgent help with communicating with the HP 4155B analyser with Labview

    i folks,
    I'm currently trying to communicate with our HP 4155B semiconductor pamaremter analyser.  I do not have experience with GPIB yet. I have installed the NI VISA.
    I was wondering if anyone could help with getting me started on how to start communicating with the device using Labview.
    I'm not certain where to start.
    Kind regards
    Rob

    Hi,
    Thanks for the help. I now have communication with the instrument.
    I was wondering if it's possible to to setup a data measurement (I-V Sweep) and be able to read the measurement data in realtime as it is being measured. So I basically see the graph updating itself on the PC during the measurement.
    Is this possible? Could anyone give advice on how I can go about this or are there any examples that can help me understand how to do this?
    I'm not completely sure how to initialise the instruemnt for communication and handle VISA WRITEs and READs. within LabView
    Best regards
    Rob

  • 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

  • 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

  • Communication with HP4194

    I am having a problem communicating with the HP4194A. I get an time out error when I Querry *IDN?. The HP4194 uses HPIB.
    Is there something I can do to get it to recognize it?

    If you are using a National Instruments GPIB board, then you should have a program called the Interactive Control on your computer (ibic.exe) that comes with the driver.
    Open ibic (it looks like a dos window) and run the commands that are listed on our web site at:
    http://www.ni.com/support/gpib/max/ibic.htm
    If the ibln command says your device is listening, then it may just be that the device doesn't respond to the *IDN? command, but rather to some other type of identification command.

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

  • I'm using the cw gpib control with several

    intruments. Is there a way to find the
    number of listeners and their addresses using the controls, or
    do i have to make calls using the gpib api library?

    You have to make calls to the GPIB API to do bus commands like FindLstn, etc. The ActiveX control is designed for communicating with GPIB devices, not managing the GPIB bus. There is an example that ships with the NI-488.2 driver for Visual Basic called Query4882 that can show you how to use FindLstn from the driver API.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • GPIB Synchonization with DAQ

    Currently I'm in the position of implementing a software-timed solution so that my data acquistion hardware (analog inputs) can be synchronized to an average reponse time for a GPIB query to an instrument. Yes, this sounds like fun! I was wondering, I seem to remember the GPIB analyser software (CVI app) had timing information for the various line state transitions. In general, is there any way to get hardware timing information from a NI GPIB controller?? The reason for this approach is that the DAQ AI samples may be corelated to the instrument data - we don't know at present!

    Hello-
    The GPIB analyzer software does have a triggering menu available. However, there is currently no API for the analyzer available. However, it might be possible to tap the EOI line with a second GPIB cable. Then, a DAQ card can monitor the progress of the GPIB communication. There may be some easier software solutions as well. Try using Datasocket if it is necessary to have interprocess or intermachine communication. There are plenty of Datasocket examples in CVI and LabVIEW.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Installation gpib problems with windows xp

    Will not pass the test Interfaces Squentially Verified..No hardware conflicts..System Device manager indicates that this device is working properly. Computer is running a AMD 1700XP processor..

    Hi Perk,
    Often times this happens when there is an instrument connected to the GPIB device when the test is run. You should be able to remove the cable and pass the test. I would recommend just moving on to communication with the device. Use scan for instruments or IBIC to verify that you care able to talk with your instrument.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I get an error message when trying to install windows 7 on my macbook pro. The message says "windows has encountered a problem communicating with a device connected to your computer. I don't have anything connected to my computer. How do I fix this?

    I'm trying to install windows 7 on my macbook pro. I went through the process of bootcamp telling it to install windows 7. Once the windows boot manager started an error message came up. The error message says " windows has encountered a problem communicating with a device connected to your computer. I don't have a usb connected to my computer. I  am using windows 7 professional install disc. I  can't figure out what i am doing wrong. The same message keeps coming up over and over. Am I doing something wrong or is it something else?

    Well, shucks, i just spent almost 30 minutes trying to find your model user guide to explain it better, I guess they never got around to making it.....
    I would just borrow another Windows disk and try installing it again and if it does it again then you might take it to an Apple Store and see if one of the "Genius' " can figure it out.
    Make sure your internet is enabled and click on your blank desktop and at the top of your screen is a Help menu option, enter PRAM and it should give you a list of things relating to Pram. It may take a few seconds to list anything as it has to connect to Apples severs first. It should list the things you may have to fill back in when your done.
    "P-ram" stores some common information that is used in the background, your date, time, startup disk, etc, that you don't have to re-fill when you restart, it's a little different for each computer.

  • "The software required for communicating with the iPod is not installed..."

    I realize my explanation of my problem is long-winded, so if you want a shortened version, here it is:
    I've followed all the instructions trying nearly everything, and no matter what I do, iTunes gives me the error saying: "The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software." My G5 iPod (60GB) works on two other computers (both without any music on them), so I assume there something wrong with my computer and not the iPod itself.
    Now for the long-winded story of the last eight hours of my life...
    I just got the Generation-5 iPod Video (60GB) a today and I'm having problems already. I followed the instructions and installed the iPod software and then plugged in my iPod (iTunes has been on my computer for a while now). I was expecting iTunes to open after plugging in the iPod, but my device manager only detected and installed "a new device". I manually opened iTunes and got an error saying: "The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software."
    After re-installing the iPod software and iTunes, and restarting my computer countless times, I came looking for help here. I found this page, which seemed to outline my problem exactly. My computer recognizes the iPod as a drive, but iTunes won't have anything to do with it. I have all the symptoms outlined in the heading, so I hoped to solve my problem there. I followed the instructions step-by-step, and after the final restart, I open iTunes to get the same exact error message.
    I decided to determine whether there was a problem with my iPod or if it was my computer. I plugged my iPod into my uncles's powerbook, and got to the point where I can name and configure my iPod. I expected it to work flawlessly on a Mac (which it did) but there is no way for me to continue using a Mac (after tomorrow) for my iPod. This formatted the iPod for a Mac, so I went to another (different from the original) Windows computer, clean of any iTunes and iPod software, and followed the instructions exactly as they're supposed to be followed. After the installations, I plugged in my iPod, and although iTunes didn't open, I was able to format back to Windows and name my iPod (a step in the right direction). I should note that my (anti-iPod) computer is a Windows XP Pro, and the working one is Windows XP Home Edition. This was all well and good, until I remembered there was no music on this computer. So my iPod is completely working there, but there isn't anything I can do with it.
    Next, I came back here and browsed around the discussion boards, hoping to find somebody with a similar problem to mine. There seems to be alot of errors concerning iTunes not recognizing the iPod, but none of the solutions I tried worked for me, including changing the drive letter. I get the "iPod Service Error" while trying to restore to factory settings through iPod updater.
    Of course, I could transfer all 32GB of music from one computer to another, but the second (working) computer isn't mine and I won't have access to it in a couple months. It would be most convenient if I could get my iPod working on my own computer. Any help would be appreciated, especially from somebody who has solved this problem or know how to solve this problem.
    P.S.
    Here are some other minor details that my be important, but I didn't feel they were worth including.
    - My brother has his iPod mini set up on my computer, under a different user login. He gets the same error once in a while, but re-installing iTunes always solves the problem for him. I had him try solving my problem his way, but nothing worked for him either.
    - My computer is an AMD Athlon 64 Processor 3200+, 512MB RAM with Windows XP Pro SP2 installed. My internal hard drive is partitioned, using the letters C, D and H (C being my system files, D used for recovery files and H for my applications and games). My E drive is used as a DVD/CD-ROM Drive, and drives F and G are reserved for virtual drives (none have been running during this entire ordeal). My external hard drive uses the letter I, and I manually set my iPod to use the letter J (I've never used 'J' for anything else before).
    - Yes, I have downloaded and installed the latest versions of iTunes and the iPod software.
    - I'm assuming there is a problem with my computer and not my iPod, since it worked on both other computers I tried. I'm hoping it's as simple as changing a registry file or cleaning out (yet another) temp directory.

    Solution to "Software required for communicating with the iPod is not installed"!
    I battled this same problem for about 5 hours. Going through re-installations, the "5 R's", all these discussion boards. Nothing worked.
    The problem is that iPodService was repeatedly crashing after minute or so. You can verify this by hitting Ctrl-Alt-Delete and noting that iPodService is missing from the process list (sort by image name), or by right-clicking on My Computer and selecting "Manage", then going to Services and checking out the IPodService service - if it gives you the option to "Start", then it's not running.
    Here is what worked.
    1. De-install iTunes and iPod (if you have the updater installed) completely by going to Start --> Control Panel --> Add/Remove Programs. Also delete the C:\Program Files\iTunes and c:\Progam Files\iPod\bin directories. (Don't worry, this doesn't affect your saved music files.)
    2. Log in as an Administrator
    3. Go into the registry (note this is dangerous - you should be careful) and remove the iPod entries that the uninstaller misses.
    3.1 Go to Start menu --> Run.
    3.2 Type in "regedit".
    3.3 Go to HKEYCLASSESROOT --> IPodService.iPodManager.
    There are two keys here, iPodManager and iPodManager.1. In my case, I did not have permission to view either of these. I think this is the root cause of the problem. I think the installer can't properly update these because it doesn't have permission. So you need to change the permissions:
    3.4 Right-click on IPodService.IPodManager
    3.4.1 Select "Permissions..." A warning will appear saying you don't have permission, but that you can change permissions.
    3.4.2 On the window that launches, click on "Advanced..."
    3.4.3 Click on the "Owner" tab.
    3.4.4 Select a valid account (the one you're logged in under) under "Change Owner To".
    3.4.5 Hit "OK".
    3.4.6 Back on the main Permissions window, hit Add and add the same account as a valid user.
    3.4.6.1 Where it says "Enter the object names to select", type in the account name, e.g. "Smith".
    3.4.7 Click on the "Allow" checkboxes for "Full Control" and "Read".
    3.4.8 Hit "OK".
    3.5 Repeat procedure for the "iPodManager.1" key.
    3.6 Now right-click and delete both of these keys.
    I think that's all that's required, but I also searched through the registry and deleted the following keys.
    4. Other keys I deleted:
    4.1 HKEYCLASSESROOT --> IPodManager.IPodManagerUI.1
    4.2 HKEYLOCALMACHINE --> SOFTWARE --> Apple Computer Inc. --> iPod
    I think that's all I deleted, but I'm not positive. I seached for instances of "ipod" using the Find... and Find Next functions under the Edit menu.
    5. Exit out of the registry editor.
    6. Re-install iTunes. I re-installed iTunes and reconnected the iPod, and everything worked.
    I want to repeat that editing the registry can completely mess up your computer if you modify the wrong things, so only do this if you're comfortable, and be extremely careful.
    Hopefully this helps!
    Apple support people: assuming this works, please add it to your solutions page, and feel free to reimburse me for spending half of Christmas figuring this out.
    Mark

Maybe you are looking for

  • Problem in using sum with distinct in case

    Hi all, I want to use a sum function with distinct and also with case. below is the format i am using. Sum( distinct case when a.value='TOOL' then e.value else 0 end) This is working but i don't get distinct records. SO i tried using in this way Sum(

  • How do I customize the login page?

    Hi, floks: How do I customize the login page? Can I just create a page with login portlet in it? what do I put as on Success URL, if I choose to go to the home page? thanks. null

  • I am using i phone 3GS and just upgraded it to ios 6 and it is not reading my sim..please help!!!!

    I am using i phone 3GS and just upgraded it to ios 6 and it is not reading my sim..please help!!!!

  • My iMac Late 2013 is freezing up every night

    I purchased a new 27" iMac about a month ago. 3.5GHz i7 32GB ram 3TB Fusion Drive. 2 Partitions, 1 is my Macintosh HB which has 2.875TB available, second partition of Bootcamp is with Windows 8 and that has 78 of 120GB available (I selected only 120

  • FIFO Query

    Hi Everyone, I have a customer who is requesting a query that would pull the sales price and item cost from the A/R Invoice table.  They would like a list of all items sold by customer that would show the quantity ordered, unit cost and unit price.