Comand power supply through GPIB

Hi I am Michele De Santis,
I am trying to command a elind 500 KL power supply through GPIB with a NI PXI. I can easily read the values of current and voltage of the instrument with the VISA read block in LabView environment. The problem presents when I want to use the write VISA block, in other words when I want to put a voltage and current values from my PXI. The instrument put itself, after I send the command, in CCM (current costant mode, before it was in VCM voltage costant mode) at 0 V and 0 A and from this moment on, I can't switch the status of the power supply unless I dont turn the instrument off. Anyone knows why?
Thanks!

Hi Michele,
have you tryed to control yours Power Supply from another GPIB controller?
Cheers, 
Matteo Brunella
Application Engineer
NI Italy

Similar Messages

  • Simple code in VB6 to control Chroma AC power supplier throigh GPIB

    Hi there,
    I am a totally newbie in VB6 (just have a little background in C).
    Anyways, I want to write a simple code in VB6 to send commands out through GPIB to control a chroma AC power supplier. Can anyone show me how?
    thanks.

    Make sure to select Example option while installing. Your install dialog may differ due to version different.

  • Sample programmes in C# for setting voltage in a TDK lambda power supply

    please provide some guidance for setting the voltage of a TDK lambda power supply through GPIB. Any driver software needto be installed?

    If you use an NI GPIB controller, then you will need to install NI-488 and it is recommended to install and use NI-VISA. There will be coding examples installed with the drivers. You don't mention the model number but you might find an existing instrument driver from NI or the vendor.

  • 2253iX California Power Supply USB Communication Issue FIXED

    I figure I would post this in the event someone else runs into the same issue.
    When trying to communicate to an 2253iX California three phase power supply through USB using labVIEW, it would always fail in the initalization block, when asking the unit for the model ( *IDN? ). The display on the instrument would display Error -113 "Undefined Header" Turns out the USB Com port driver doesn't work when registered as COM9 or greater. It has to be COM0 through COM8. Uninstalling a device in that range and reassigning the power supply's COM fixed the issue.

    not surprising... 
    I have been using California Instruments 5001iX AC source and 3091LD AC load for years and communications (RS-322, GPIB, USB)  have always been hit and miss when answering an *IDN? query.
    Even the newer series 2 models have these issues, but seemingly only with *IDN? query.
    I just put a loop in to query it several times before giving up.
    Also I have found Ci's set of IVI vi's are usless crap and have made my own using SCPI that work a lot better.
    What really makes me sad is Ci is still far superior than Elgar when it comes to AC power sources.

  • Always getting errors when trying to control YOKOGAWA 7651 power supply on Labwindows/CVI

    Hi,
    I'm trying to set the voltage on the YOKOGAWA 7651 power supply through labwindows/cvi. I've set up a numeric slide on my userinterface with callback function "yoko7651dcvolts" and constant name "YOKO7651DCVOLTS".
    I always get this error when I run my program:
    "FATAL RUN-TIME ERROR: "DcSource.c", line 53, col 65, thread id 0x00001F3C: Invalid argument type: found 'pointer to double', expected 'pointer to int'."
    This error points to the third argument of the GetCtrlVal function below. The program/compiler wants me pass the variable "yoko1volts" as integer, but I want to (and should) be able to set voltages as floating numbers.
    Plus, even when I declare "yoko1volts" as integer, it stills doesn't work. All I get is zero, zero, and zero...on the power supply meter everytime I press the numeric slide.
    This is the section of the C code that is problemic:
    int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    double yoko1volts;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
    yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
    break;
    return 0;
    This is the related h-file:
    #define YOKO7651_1 4
    #define YOKO7651_1_YOKO7651SWITCH 2 /* control type: binary, callback function: yoko7651switch */
    #define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
    Please help, how can I fix this issue?
    All the drivers (including the YOKOGAWA 7651 power supply) are properly installed and mounted. As a matter of fact, I can successfully turn the power supply on and off with the code below:
    int CVICALLBACK yoko7651switch (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    int yoko7651switchstate;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, &yoko7651switchstate);
    SetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, !yoko7651switchstate);
    yk7651_output (yoko76511Panel, !yoko7651switchstate);
    break;
    return 0;
    It's just setting the voltage on the power supply that is very problematic. Any help is appreciated...Thanks.
    Solved!
    Go to Solution.

    I second Al opinion of a disconnection between the UIR and the variable that holds the panel handle.
    As a side note, I noted that the problematic line is reading the value of the controll whose callback is executed:
    #define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
    int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    double yoko1volts;
    switch (event)
    case EVENT_COMMIT:
    GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
    yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
    break;
    return 0;
    In a situation like this, I would try using GetCtrlVal (panel, control, &yoko1volts); instead, that should get rid of all problems in panel handle / control ID.
    Despite this solution is working, in any case I would deep into the problem as an incorrect panel handle can lead to erratical behaviour in other places of the program.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Vi driver for Varian Dual HV power supply

    hi, I'm looking for a driver for the Varian Dual and/or Multivac HV power supply.
    if anybody has it, please let me know...
    thank you
    Andrea Milocco

    Hi Andrea,
    unluckily the instrument driver for your Power Supply is not available on NI site.
    You can try to search the driver at link: Search Instrument Driver
    Otherwise you could ask information about driver directly to the instrument constructor.
    But if you know the commands to talk with instrument and if you are using Labview or Measurement Studio or LabWindows/CVI 7.x you can easily create the communication with the Power Supply through the Instrument Assistant.
    Regards.
    MarcoC

  • Cryogenic SMS120C superconducting magnet power supply

    Dear all,
    has anyone here experience in accessing the aforementioned
    "Cryogenic SMS120C superconducting magnet power supply"
    over GPIB with LabView, and would be willing to give some hints / maybe
    even share the code?
    For details about the device, see the manufacturer website:
    http://www.cryogenic.co.uk/products/electronics/power_supplies.asp
    It seems to be pretty trivial to send commands to the power supply - "GPIB
    Write" does the job and the device executes the commands (as can be seen
    on its front panel). However I have not managed to get any status
    information / command output back; when I do a subsequent "GPIB Read", I
    always get only an empty line. ???
    Thanks in advance for any hints;
    best, Andreas
    This message is transmitted using 100% recycled electrons.
    Dr. Andreas K. Huettel tel. +31 15 27 88102 (univ.)
    Molecular Electronics and Devices
    Kavli Institute of Nanoscience Delft
    Delft University of Technology [email protected]
    PO Box 5046, 2600 GA Delft [email protected]
    The Netherlands http://www.akhuettel.de/research/
    Please use GNUPG or PGP for signed and encrypted email. My public key
    can be found at http://www.akhuettel.de/pgp_key.php

    Hi Andreas,
    Since you have been successful in writing to the device, it appears that your communication is working properly.  You may need to initiate a response or poll the device in order to read from it.  In order to read, the device needs to switch into talk mode, and the computer into write.  For specific information on this, as well as the exact communication protocol for your device, you will need to consult the user manual for the device.
    You may also want to take a look at the following KnowledgeBase article, Why can I write to my GPIB device but cannot read back?
    Regards,
    Lauren L.
    Applications Engineering
    National Instruments

  • IMac G5 ALS not booting with new power supply and perfect capacitors

    Hey guys. Just got this beauty yesterday for cheap. Came with the box, 2 of 4 Styrofoam inserts, the manual, the power cord, and the keyboard.
    I was told it has a brand new power supply. When I plug it in, LED #1 on the motherboard comes to life. pressing the power button does nothing. I have tried everything: blowing out any dust, reseating all connectors, booting without RAM, adding a hard drive (did not have one), removing the optical drive, modem, and BT/ap card. The only sign of life is when I press the internal power button, and the light flickers. This is promising.
    I did notice when it is plugged in, there is a high pitched whine coming from where the LED is. I hope this is not causing the problem.
    All capacitors are perfect, and not burst or leaking. I had a 1.25ghz eMac with bad caps, so I know what they look like.
    I removed the motherboard, and there is no sign of any fried component on either side. It looks like a brand new machine basically.
    I was thinking of just getting another good logic board for it, as they are cheap, or ask a friend to recap the board anyway.
    Anyone here know what could be wrong with it? I hope I did not just waste money on this. It was relitively cheap though.
    Specs:
    iMac G5 Revision B Ambiant Light Sensor model
    1.8ghz G5
    512mb of RAM
    combo drive
    no HD (had 160gb originally)
    airport/bluetooth combo card

    Hey Lam,
    The only sign of life is when I press the internal power button, and the light flickers. This is promising.
    I did notice when it is plugged in, there is a high pitched whine coming from where the LED is. I hope this is not causing the problem.
    I'm with Miriam on this one. That "new" supply sounds bad. Look very carefully inside the power supply (through the little perforations in the case) I'll bet you see caps w/ the same domed tops like you've seen before. That whine is also a symptom of a bad PSU. It's not even strong enough to power the soft start.
    I've seen 2 20" and 3 17"ers recently. Replaced caps on 3 of the PSUs and got one to work on a 17" that belonged to a teacher so that went back. Swapped the working PSU from one of the 20s w/ a bad GPU into the one w/ a bad PSU. It's working but in a place where I can keep an eye on it since I don't trust it since the caps don't look good.
    I've done this hack:
    http://gallery.me.com/iamkimc#100033&view=grid&bgcolor=black&sel=12
    and can get all the iMacs to work that way. Advantage - cheap, totals 1/3 or the replacement Apple part (used). Con - boxes outside the nice iMac case.
    The auto laptop supply loads the Sparkle down too much for the 20" however. I'm working on finding an auto supply that saps less Amps or a simple voltage doubler for the 12V supply to solve that problem.
    The ATX hack is pretty simple and only requires switching two 12V leads. Oddly one of the early versions of the 17"ers ran fine without the 20V inverter power. Go figure.
    Richard

  • How can i change the voltage of my power supply using my pci gpib 488.2 driver?

    I need to be able to control the voltage outputed by the power supply. I have a pci gpib 488.2 and I downloaded the correct driver. I also don't no exactly how to use the communicator included in the measurement and automation explorer. When ever I type in the commands I get an error. If anyone can help me I would appreciate it.
    thank you

    First see if you can establish communications with the power suppy using Meas and Automation explorer (MAX for short). If you can find your GPIB card in the directory tree choose it and then use the scan for instruments tool. If it can see your power supply it will give you it's address. Choose it and try the Communicate with my instrument tool. It will send a IDN? command to that address and it might return a string if the instrument understands the command. If not you will need to dig through the power supply manual to find the correct commands.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Power supply from iMac through FireWire

    Dear all,
    The user's manual of my iMac G5 writes: "The FireWire port is designed to provide power for FireWire devices (up to a total of 8 Watts)".
    How does this work? Can I operate my DV camera or external HD through it? What do I need to activate this service?
    Lacmac

    Laszlo-
    The only products that I know of that tap into that power supply are flash memory card readers and (physically) small hard drives. You do not need to do anything to "activate" the service-it is just available at all times on a couple of the pins on the six conductor firewire connector.
    Video cameras use the firewire port to transfer video information and control the camera functions. Video cameras use their own power supply brick or battery for juice. I do not think that the 4 pin cable that plugs into the video camera end has juice on it.
    Peace-

  • [Help]How can I power on or power off the specpum through GPIB by VC6.0 ?

    [Help]How can I power on or power off  the specpum through GPIB by VC6.0 ?
    [帮助]如何在VC6.0环境下通过GPIB卡开关频谱分析仪的电源?
    For this is my first programme, thus ,I have no idea how to write code, and don't know the heaer files and DLL files to  be included or imported.
    因为这是我写的第一个程序,所以,不知道如何写代码,也不知道需要引用或者导入哪些头文件或者库文件。
    Thank you !
    谢谢!

    Your question is very abstract, and difficut to understand what you want to do.  Do you wish to control your spectrum analyzer for TURN-ON and TURN-OFF power?
    Assuming your question is so...
    To turn the instrument power OFF, you should look for the GPIB command that can do this in the instrument's operation manual. 
    To turn the instrument power ON, it is very difficult or almost impossible to do so, because your app program will have no way to communicate with your "unpowered" instrument. 

  • Problem with Get the current and voltage from HP Power Supply (HP E3631A), using the GPIB interface.

    my USB device's power support is from the DC Power Supply ( HP E3631A)
    I need to read using current from a DC Power Supply ( HP E3631A),via GPIB interface.
    When I use the follow command.Why can't read the current value.My environment is in vc++ 6.0.
    "APPL P6V,5.0,1.0"
    "OUTP ON"
    "MEAS:CURR? P6V"
    attached the NI SPY File.Please check it.
    Can you tell me what the problem is ??
    Thanks in Advance !
    Hope you can solve my problem !!!"
    Attachments:
    E3631AERR.spy ‏7 KB

    Hi neilchuang,
    A read timeout error is usually caused by an error on the command string sent.
    The first thing I would check is if the instrument requires a termination character at the end of each message (such as linefeed). I noticed in the Spy capture that the commands do not have a termination character attached. This means that the instruments never recognized that you completed the query command, it doesn't execute the requested action and as a consequence of that it doesn't have any data to return.
    One question: Is the instrument detected by MAX when you scan for instruments?. If yes then you can assume that the GPIB software and hardware are properly installed. The scan for instruments sends the *IDN? (terminated by a linefeed). You can right-cli
    ck on the instrument entry in MAX and select "Communicate with instrument". Notice that at the end of the command the linefeed is included (\n).
    Double check with the instrument manual if the commands sent are the right ones.
    Finally, there is an instrument driver available in the idnet library: www.ni.com/idnet. Search for 3631. Since you are working in C you can use the LabWindows/CVI Plug and Play driver. Even if you decide not to use the instrument driver, you can still use it as an excellent reference on how to program with the instrument.
    Hope this helps!.
    DiegoF
    National InstrumentsMessage Edited by Molly K on 02-18-2005 11:05 PM

  • GPIB control of HP 6034A power supply

    I would like to find drivers for GPIB control of HP 6034A power supply (LabVIEW 6.1). There are drivers HP6xxxA for power supplies 6033A, 6035A, 6038A, ... Could anyone give me information how to modify these drivers for 6034A or any other directive. Jokut

    You might post your answer in the Instruments Connectivity >> GPIB section of the NI Exchange forum.
    Roland - LV DSC Exchanger
    PS: Most of the time you might just change the initialisation string of the instrument setup function/command if the instrument is similar to the dirver you already have. But this is all relative to the instrument - Unfortunatly I don't know the driver nor your instrument.

  • Hameg power supply HM7044 ieee 488 (GPIB) device control

    Dear All,
    I have a power supply (Hameg HM7044) with a GPIB interface.It seems that there is no VI to control it in the HAMEG or the ni websites.
    Since i am new to this kind of interface i have two questions.
    -if i connect the device how do i know the address it is in.
    -is there a general VI to interact with GPIB -ieee 488 devices?
    thank you in advance,
    thodoros 

    Well, there is a driver here but it is for RS-232 and for some stupid reason, they have password protected the VI. That should deserve a nasty message to them.
    First, if you use an NI GPIB controller, you will get a program called Measurement & Automation Explorer (MAX). As part of the installation instructions, you will do a 'Scan For Instruments'. This will return a list of GPIB addresses for all of the connected instruments. Second, the information for setting the GPIB address is going to be in the instrument manual. If you don't have a manual, get one because you can't do a thing without one.
    To communicating to GPIB instruments, the recomended API is VISA. The majority of the time, all that you will need is a VISA Write and a VISA Read.
    You can learn some of the basics at the Instrument Control Fundamentals page.

  • Agilent 6632A GPIB dc power supply, 0-20 Vdc Instrument Driver

    Hi, does anyone here has a Agilent 6632A GPIB dc power supply, 0-20 Vdc Instrument Driver???
    Thank you.

    It's available on NI Home > NI Developer Zone > Instrument Driver Network and search for 6632A.
    Or, see attached.Message Edited by TotalAJ on 06-22-2005 07:33 AM
    Attachments:
    hp6xxxa.zip ‏47 KB

Maybe you are looking for

  • BI JAVA Installation require EP CORE ,EP

    Hello, While installation BI JAVA with sapinst ( version 7 )  requires EP CORE ,EP Can we install BI java only by using EP Core  and EP installed on diff. host. ( another system) Thanks in advance. Regards, Tushar

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,   Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise

  • Manually turning off iMac G5 Display

    Hi, I've been searching around and haven't been able to find an answer to this. I have my computer set to turn on the screen saver after 5 minutes of inactivity and turn off the display after 15 minutes of inactivity, and I like it that way. My compu

  • Longtime bug: Table cell strokes disappearing

    I was hoping this would be fixed in CS5, but apparently not. I want a very simple table with just horizontal rules above each line. I want to set this as a cell style, so I can apply and unapply for maximum flexibility. So this is what I want: row 1,

  • Help with a smart object

    While I'm in ps cs5 and have converted a layer to a smart object, when I click/double click on the layer or the icon it will not open into camera raw. I have tried this with jpgs, tiffs and psd files, I have no other problems with raw, bridge of phot