Controlling external equipment over GPIB using LabView

Hi All,
I am new to labview and I am trying to control two outputs of HP6624A power supply and one output of Tektronics 2021AWG using labview which I am not bale to do rightly. If some one can help it will be great.
Actually I am trying all this to test an ADC and do some analysis on the results of the same. I have created the VI for analysis and it is working. Now I need to apply supply, clock & data to my device through these equipments. I was initally operating these equipments manually, but now I want to control them using LabView.
I have down loaded the instrument drivers for both of these equipments.
thanks
janit
I am attaching the vi through which I am trying to do so.
Attachments:
Inst_Control.vi ‏21 KB

Basically all of the apps I've had to program have required GPIB communication. I have tried the drivers written by the manufacturers of all the devices, and found it easier to write my own. For instance, to read the value of an Agilent (HP) multimeter, I have the attached vi.
It's easier to use the manual GPIB communication vi's, than it is to have to deal with the ones writting by HP for instance (*In my experience*...it may be different for other people). You have more control over when and what commands are sent.
Attachments:
Read Meter.vi ‏23 KB

Similar Messages

  • Monitoring and controlling of Diesel Power Plant Using Labview

    Respected Sir,
    Our Project name is monitoring and controlling of Diesel Power Plant Using Labview7.1.Here we are monitoring and controlling important Diesel engine Parameters and elecrical parameters.Expecting more ideas andsupport from NI

    it s very difficult to manage each and every generators manually in a diesel power plant.we have done an inplant training in a diesel power plant from where we got idea of automating the plant.in tat plant they are using SCADA software.To reduce the complicity of hardare an unnecessary comp languages v r planning to do the same purpose in LabVIEW software as our final year project.As this s our own idea v r not more familiar with the application areas of LabVIEW in a Diesel Power Plant.Plz suggest more advantages of LabView over SCADA in tis field and also welcome innovative ideas from NI to make project simple and more useful

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • How to control yaskawa varispeed F7 VFD using labview ??

    I want to control the frequency of VFD (Yaskawa varispeed F7) using labview.
     The vi should be like I can know the current freqency and able to change it.
    What are the possibilities???
    Please reply.....
    Thanks & regards
    Naren

    The yaskawa driver has the registers tables in Hexadecimal, i map them in decimal in labview with an offset of +1 so:
    to access register 2h -->        02h = 02d = 400003
                               17h-->       17h = 23d = 400023
    I read and write to this registers:
    To control (RUN-STOP-REVERSE)       01H = 400002
    To set freqency                                   02H = 400003
    To monitor (at_zero-run-reverse)            11H = 400017 addressed by bit 400017.1(at_zero);    400017.2(run);       400017.3(reverse)
    the registers i cannot read are              26H = d38   to read the frequency
                                                             27H = d39   to read the ouput current
                                                             28H = d40   to read the ouput power
    I have tried with all instructions (000026; 300026; 400026) even with the array option and i still cannot read them.

  • Controlling External Captivate 5 swf using flash AS3

    Hi,
    I have created a basic Flash AS3 interface in which I am trying to control the navigation (next slide / previous slide) of an external captivate 5 swf which I have added using a loader, but i cant work out the solution.
    My code is currently as follows:
    import flash.net.URLRequest;
    var Xpos: Number = 96
    var Ypos: Number = 94
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("content.swf"));
    my_loader.x = Xpos;
    my_loader.y = Ypos;
    addChild(my_loader);
    stop();
    nextBut.addEventListener(MouseEvent.MOUSE_UP,gotonextframe);
    function gotonextframe(event:MouseEvent){
    MovieClip(my_loader.content).rdcmndNextSlide();
    Any help would be much appreciated,
    thanks
    Dez

    Thats perfect, thanks for the reply, much appreciated!
    I guess you have tried:
    rdcmndRewindAndStop
    Set to 1 to rewind and stop the project.

  • How to control esp 301 motion controller using labview

    Hi Everybody,
    I am new to Labview. I am trying to connect ESP 301 motion controller from Newport to the labview and control it. But I couldn't find the drivers for it online. How can I connct it and using.
    I am planning to use it with USB connection.
    Could some one please help me in this regard.
    Solved!
    Go to Solution.

    Hello Thomas
    there are existing facilities:
    · Two turntables XY driven by stepper motors 10 microns
    · Central ESP301 command to the decks
    · Central control and data acquisition: Unit PXI
    I want to do the next step
    · Control of stepper motors to perform scans on a large scale wafers two or four inches with a very good resolution of up to 10 .mu.m
    · Programming the ESP unit 301 microstepping mode by dividing the initial step to make scans on small areas at a resolution of up to 1 .mu.m;

  • How to control Arcus Technology's PMX 2 ED motion controller using labVIEW

    Please guide me, for controlling the PMX 2 ED using labVIEW.
    http://www.arcus-technology.com/pmx-2ed-sa.php?osCsid=4cc1dd9c238572468a87a72d16d7fd93
    Please let me know if any one has used labVIEW for this before.
    Thank you. 

    Well, I don't have the instrument or the drivers so can you provide some details into this VI that they provided? Perhaps if you upload it  (assuming the license agreement for the software allows you to do so).

  • How to control darwin op robot using labview

    hey eveyrone,
    i have just started working on a project..
    i want to know how to control the darwin op robot using labview.. want to get a head start....
    thanx...

    Hi Preetisar,
    You can use LabVIEW robotics to start your project.
    You can find some informations from our website regarding this Software:
    Overview of the LabVIEW Robotics Module
    <link no longer exists>
    <link no longer exists>
    Robotics Fundamentals Series
    Regards,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • Advantages of VISA over GPIB

    i want to know advantages of VISA over GPIB in labview when we connect our pc with a device which has GPIB interface
    what could be reason behind using VISA programming 
    i want atleast 5 advantages of visa over GPIB .
    Solved!
    Go to Solution.

    Hi,
    1.VISA Write is equivalent to a GPIB write except the VISA Write returns a VISA Reference Out that is much easier to use. You pass that to the next VISA function instead of wiring a GPIB address to all.This will make your blockdiagram cleaner.
    2.portability:-VISA supports GPIB, Serial, Ethernet, USB, PXI, VXI, and PCI. So, with a single piece of code, you can support all of the interfaces and even GPIB controllers from different vendors.
    3.VISA supports aliases. You can assign logical names to the resources. Instead of trying to remember the GPIB address in a rack full of instruments, you can reference 'DMM', 'Scope', etc.
    4. If you are programming multiple devices that communicate over more than one bus type, it might be easier to use VISA for your entire system.
    5. In VISA, you must always call viEnableEvent() prior to being allowed to receive events, this is required in VISA to avoid the race condition of trying to wait on events for which the hardware may not be enabled.
    6.The VISA Resource Control allows you to pick from a list of available resources.
        Enough
    Thanks as kudos only

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • How do I use LabVIEW to control and vary the voltage on my Agilent Power Supply and simultaneously record temp from 1 DMM and voltage from another DMM?

    I am using an Agilent Power Supply  to apply a voltage to a
    thermistor to heat an Al chassis.  I want to use LabVIEW to tell
    the power supply to apply 5V for 10 minutes, then step to 7V for 10
    minutes, etc.  I am completely new to LabVIEW, so any help would be greatly appreciated!
    In addition to that, I want to place a type J thermocouple onto the Al
    surface and use a Keithley 2000 DMM to monitor the temperature (it has
    a built in conversion from V to Temp for type J).  I will also be
    using another Kelthley 2000 DMM to record the output voltage of a new
    uncalibrated thermocouple.  I would like to collect the output
    voltage for this uncalibrated thermocouple and the temperature reading
    from the type J simultaneously.  How should I go about doing this
    in LabVIEW?  I will be using version 6.1.  The power supply
    and DMMs will be connected to a PC using GPIB.
    Again any suggestions would be greatly appreciated- I have no idea
    where to begin on such a project.  I have taught myself how to
    make a basic VI- converting temp in oC to oF, but  that is as far
    as my knowledge goes.

    What you want to do should be fairly straightward and a good way to learn labview. 
    First off, if you haven't already, I would download the drivers for the Keithley and Agilent instruments.  I found the keithley drivers at the link below.  You will need to find the labview drivers for the Agilent PS at their website.  Drivers are the VI's you will use in your program to control the insturments.
    http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E90B0659CE034080020E74861
    If you open Labview and go to the help menu and click on Labview bookshelf there is alot of information on getting you started coding labview.   This should get you started, if you have anymore questions just ask in this same thread and I am sure you will get all the help you need.
    Brian
    Message Edited by BrianPack on 09-14-2005 05:21 PM
    Message Edited by BrianPack on 09-14-2005 05:21 PM

  • How to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and a novice in interfacing skill ..so plzzzzz explain me in a litle detail

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Sir
    We were able to solve that problem...but now could you advice as to which DC power supply we should use (preferably avalable in India) so that it can be controlled by Labview (through a gpib/rs232/any other port) to give a square wave of desired frequency/other parameters.
    Regards
    Shivam

  • Help Using Labview to control Kikusui power supply with a PIA4850 controller

    HI I need some help using Labview to control 4 Kikusui power supplies. We have a PIA4850 Kikusui power supply controller. I can use the visa test panel and see the PIA4850 but can see any of the power supplies. I have very limited use of Labview and only wrote a couple programs using GPIB. The PIA4850 is a USB controller and can control up to 32 PS. I can get it to work with a Excel demo software that came with the controllers so I know that it is working. Any help will be appreciated. I am using LabView 8.2 and have updated to the Ni-DAQ 9.0. I have a program that I need to incorporate the PIA4850 into once I figure out how to operate it. Thanks in advance.

    HI and thanks for the help. I did get one power supply to work but have another problem. I need to control 4 power supplies at the same time and can only operate the one that is addressed N5!C1. If I set the other to N6!C1 and so on I get an error stating
     “Error -1074135008 occurred at ki4800_2 Configure Voltage Level.vi Possible reason(s):IVI Error in the method "get_Item" in the component "Kikusui4800". E_IVI_UNKNOWN_CHANNEL_NAME: Unknown channel name (N6!C1)”
      I am assuming that I should be able to change the node number and that will change the supply that I need to use. Everything works great if I use N5!C1 I can change any of the supplies to address 5 and can control it with no problem. I can even have multiple supplies with the same address N5!C1 (don’t think I should do that) and change them all at once. I need independent control of each supply.
      I am in a pinch here and need to figure it out but could use some help. Any ideas will be greatly appreciated.
      Thanks
    GBlair
    Attachments:
    KIKUSUI PS.llb ‏179 KB
    Kikusui Ps Controller.JPG ‏63 KB

  • PCI Express interface control using LABVIEW

    I've made my own PCI Express card which is meant for data transmission from external device to PC through PCI Express intergace.
    Everything is being controlled by FPGA chip.
    My qiestion is, how to make Labview be able to recognise the device and send data through PCIe interface?
    Thanks you very in advance for you help.

    Hi
    Meghan,
    Thanks for your reply!
    Basically, this is a signal
    acquisition system. The main part are ADC which is connected to FIFO memory and
    then to PCI Express pins. Cyclone from ALTERA is meant to control all the
    processes.
    Something similar you can find here: 
    http://www.knottsystems.com/cyclone.aspSo, all the system is located on the PCI
    Express card which is supposed to communicate with a PC through PCI Express
    Bus.
    There is a program inside the Cyclone which makes all the necessary
    packages according to PCIe Specification for the data transmission through the
    Bus.
    So the problem is how to get data into the PC using
    Labview.
    Thanks,
    Igors
    Engineer of Electronics

Maybe you are looking for