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

Similar Messages

  • Using gpib-32.dll in Labview 7.0

    Hi there,
    I am relatively new to Labview and I need some help trying to program an old HP3488A switch/control unit using the Call Library Function Node. I would like to convert the existing VB6 code, which uses gpib-32.dll, into Labview. What I have done in the VB code is to call the ibdev function to set up the HP instrument. I would like to do the same in Labview. How would I even go about setting up the .dll files as I am revamping the existing code (running on a Pentium II computer) and trying to create an identical code in Labview (running on a Pentium III computer). Also, after I have set up the .dll files (done any system configurations if necessary), how do I actually implement this file in Labview?
    I have tried calling the ibdev function in the properties of the Call Library Function. I created 6 parameters of return types with ranges of type long. Then I pass integers into the input of this node and when I tried running it I get an error exception within the external code as follows:
    "An exception occured within the external code called by a Call Library Node. This might have corrupted Labview's memory. Save any work to a new location and restart Labview. VI "switch.vi" was stopped at Call Library Function Node 0x1D7C of subVI "switch.vi"
    Can someone please help me? Thanks.

    I actually tried that before. As the HP3488A switch instrument is very old and came out before IEEE488.2 got introduced, it still uses IEEE 488.1, or HPIB commands. When I try using MAX or even my Agilent IO Control, it shows that there is an instrument connect to GPIB address 10, but neither programs can auto-identify the instrument using the *IDN? query. Even so, I tried typing ID? in both programs and I got no data back from the instrument. I'm not too sure as to what the problem is since I always get "\n" back from the instrument's reply. I even tried changing the termination character enable to TRUE and I still got nothing back.
    However, on the front local display of the switch, I can see arrow indicators moving between TALK and LISTEN whenever I perform a write or write/read command. But no data gets sent or received because I couldn't perform any write commands to change the switch. If anyone can tell me what the real problem is that would be great. But if not, then I will have to use the Call Library Node because I know that my VB6 code actually works on the HPIB instrument and I could simply use this gpib-32.dll file on Labview and perform the same instructions, which should allow me to talk to the switch. Can anyone tell me how to properly set up a Call Library Function Node as I have errors using the gpib-32.dll file (please see my previous message)?

  • How To Use PMD Code Checker in Jdeveloper 9

    Hai
    Please Any one tell me How To Use PMD Code Checker in Jdeveloper 9
    Thanks

    Timo
    You Checking file with PMD in **Jdeveloper** possible in jdev 10.1.3
    for the earlier versions you told me to use command prompt
    that's why when iam checking my file with pmd the output is like the below:
    D:\jdev9\OAF\jdevbin\jdev\lib\ext\pmd-bin-4.2.5\pmd-4.2.5\java14\bin>pmd D:/satyas/Test.java xml rulesets/unusedcode.xml -debug
    In JDK 1.5 mode
    Loaded rule UnusedPrivateMethod
    Loaded rule UnusedPrivateField
    Loaded rule UnusedFormalParameter
    Loaded rule UnusedLocalVariable
    Processing D:\satyas\Test.java
    Could not find class Test, due to: java.lang.ClassNotFoundException: Test
    <?xml version="1.0" encoding="UTF-8"?>
    <pmd version="4.2.5" timestamp="2010-08-24T19:02:07.019">
    <file name="D:\satyas\Test.java">
    <violation beginline="5" endline="5" begincolumn="22" endcolumn="22" rule="UnusedLocalVariable" ruleset="Unused Code Rules" class=
    "Test" method="main" variable="i" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedLocalVariable" priority=
    "3">
    Avoid unused local variables such as 'i'.
    </violation>
    <violation beginline="14" endline="14" begincolumn="23" endcolumn="32" rule="UnusedPrivateMethod" ruleset="Unused Code Rules" clas
    s="Test" method="myMethod" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedPrivateMethod" priority="3">
    Avoid unused private methods such as 'myMethod()'.
    </violation>
    </file>
    </pmd>

  • How to use dreamweaver to check scripts.

    I am both new to scripting and in using dreamweaver, I n
    eed to be able to copy an asp code and paste in dreamweaver and c
    ontinue with it, can anyone please help me on how to do this? , I a
    m testing dream weaver cs4

    I don't understand your subject line, "How to use dreamweaver to check scripts".  Can you explain what you mean by this?
    >I need to be able to copy an asp code and paste in dreamweaver and
    >continue with it, can anyone please help me on how to do this?
    You just copy the code from one page and paste into another. If you are having problems, you need to be more specific about what is not working.

  • 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

  • How to use a c file in LabVIEW

    Hi All,
    I have a c file which communicates through serial port and J1850 protocol. I want to use the C file in labview and do the communication through serial port.
    Can any one give me an idea how I have to use the c file in LabVIEW.
    Thank you.!
    ---------------- Be Good. Do Good. ---------------------

    Have you tried reading the LabVIEW Help or even searching this web site? This question has been asked MANY times. There's a section in the LabVIEW Help called "Calling Code Written in Text-Based Programming Languages." There are also several articles written on this. Here's just one: https://decibel.ni.com/content/docs/DOC-1690
    Please do the research and then come back with a more specific question.

  • How to use a C# dll in Labview?

    How can I use a C# dll in Labview 8.2? With the "Import Shared Library" Wizzard I need the header file which I don't have. Is there another way
    to use such .dll to import the functions created in C#?
    Thanks in advance
                                  Norick

    Norick,
    afaik there is no tool which provides you the possibility to create something like an instrument driver for .NET assemblies.
    Maybe we should take a look into terminology:
    - Instrument driver: This is a set of functionality, which provides the user with an easy to use API for a special instrument. Very often, the driver itself is written in C/C++ and provided as a DLL.
    - "Import Shared Library" Wizard: This wizard enables the user to create an own API for any C/C++ DLL (or compatible) for LabVIEW. This wizard requires the information on all exported functions; this info is contained in the header file. The result of the wizard is a set of VIs containing one Call Library Function Node each for each exported function.
    - .NET assembly (extension .exe OR .dll): This can be compared to ActiveX. So the way to program with .NET is similar to ActiveX. Maybe you want to take a look into the examples of LabVIEW regarding .NET...
    - Global Assembly Cache (GAC): All assemblies contained here are registered in the system. Every application can easily work with assemblies contained here.
    - Private assemblies: This would be the way to work with .NET assemblies which are built on your own. You have to select the .DLL-file itself and make sure that the file can always be found in the same (relative)folder of your application.
    hope this helps,
    NorbertMessage Edited by Norbert B on 02-21-2007 02:16 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to use the AUTHORITY-CHECK in ABAP

    I am a security guy but am trying to understand how the AUTHORITY-CHECK works. I have read the help on it but it doesn't answer to my understanding. I want a check in a report so that no matter what the user selects the program goes out and checks the authorization in the users master record and only displays what he has access to. I am sure this is basic but I am not a programmer.
    Thanks

    Hi Greg,
      Basically a AUTHORITY-CHECK is a programmatic way to check a auth object a user has.  This is only as good as the person writing the code makes is.
    Here is a basic example of how it could work.  Lets say you have auth objects for users that limit them to see company code. User A can see cc 10, User B can see cc 20 and user C can see both.
    In the code the programmer would have to first do the authcheck to see what CC the user has access to.  Then they would have to limit his reporting based on the results of the authority check.  So they might do it by saying SELECT * FROM XYZTAB WHERE COMPANY CODE = AUTHCC
    This is what I think you are looking for.  There are other ways to use the auth check.  You can do a check and end the program with a message if they don't have authorization. 
    If you need more info, let me know
    John

  • How to use XVID MEPG4 DECODER in labview

    May i ask how to use Xvid MEPG4 Decoder to compress the AVI file. For this decoder have been installed in my computer but the VI(IMAQ AVI2 Get Codec Names)can not list this code name. So may i ask how can i use this decoder in the labview. For this decoder is relatively has good quality and also small size. Or what kind of other solution can be provieded for the relative small size of AVI file.
    Thanks
    Daniel

    I believe this was answered already in a different thread:  http://forums.ni.com/t5/LabVIEW/LabView-to-grab-and-save-video-to-mpeg/m-p/643864
    www.movimed.com - Custom Imaging Solutions

  • How To Use Exported Function "CallInstrument" of LabView.exe ?

    Hello!
    I want to use the function "CallInstrument" to dynamically call VIs with LabView. Did anyone has experiences with this function?
    All I kow is following:
    The function is used by LabView Internals and its Runtime Library. Its exported by LabView.Exe and lvrt.dll.
    Its prototype is maybe:
    int CallInstrument(CPStr* VIPath, int controlcount, int indicatorcount, int options, [ Variable List of Control/Indicator Parameters ]... );
    ( CPStr Type is a StringArray of PStr (Short PascalStrings) as it is used by LabView to store Path datatypes. )
    I whould be glad, if anyone has information about this function.

    Dear Rolf Kalbermatter,
    Thirst, thanks a lot for your answer! -
    You sure right, It whould be much much more comfortable to use the VI Server.
    And you're also right... using a undocumented dll-function is absolutly no longtime solution.
    Currently I am using VI Server for my problem, but it doesn't fit my interesst so much.
    But I will explain, what I'm trying to do.
    I want to call a VI dynamically from LabView, giving Parameters to its Controls and receive Results from its Indicators.
    Realy no big job, but VI Server only let you do this that easy if you have a VI Typedef. otherwise... with untyped VIs, its not that simple. Ok.. its not impossible, you can use "GetAllControlValues" and "SetControlValue" (functions from VI server) and the call "RunVi". But this can get slow (>100ms per call :/ )
    I'm looking for a alternative function, which let me call a VI dynamically with userdefined Parameters. Maybe you know the ActiveX Interface IVirtualInstrument and its Function "Call2" - it is a nice example, what kind of function i want.
    But this function is not directly available by the VI Server--- i don't know for what reason.
    Then i tried to make use of "Call2" from within LabView, and it took me some time to find out the right Parametersyntax but finnaly i got it and it worked fine ... but it was no long time until problems occur. I cannot tell what really went wrong, but sometimes labview simply crashed or hang into a loop reseting some VIs. And its also impossible to stop a running vi, with has made a call to "Call2", if the call doesn't return by itself.
    Next step is/was trying to take advantage of CallInstrument. So, yesterday... after hours of analysing assemblercode, i finnally found out the correct use of LabView.exe->CallInstrument and i'm very impressed about its speed (0-15ms per call). The prototype seem to be the same as you explained in your reply int CallInstrument(Path path, Bool modal, int32 nInputs, int32 nOutputs, ...)
    But It has the same problem as its ActiveX derivat "Call2".. if you call an endless looping VI, LabView cannot stop your caller-vi. The other bad thing is, that this function is using dynamic paramterlist, which are placed directly onto the stack!
    That means that the paramter count on the stack is NOT FIXED (printf makes it the same). LabVIews DLL InvokeNode doesn't support this.
    At my current position, it looks like i have three possiblities but no one fits into my interesst.
    (continued with next answer)

  • How to use postlv user event in labview

    Hi sir 
     I am sending data labwindow cvi dll call to labview,for that we need postlv user event.please any one knows to use postlv user evenet in labview.
    Below will  be the  structureand i need to update in labview .
    typedef struct
    unsigned
    uDSPIO,
    // uDAQMode,
    // bControllerActive,
    bShutDown,
    bPowerOn,
    bPowerHi,
    bPowerFault,
    bSGIdle,
    bSGHold,
    uBitsIn,
    uBitsOut,
    uCycleCount,
    uCycResidue,
    uBlockCount,
    uLogChannels,
    uCurrentMode,
    uAsigndPhysCh[LOG_CHANNELS];
    float
    fSetPoint,
    fDAQRate,
    fRange[LOG_CHANNELS],
    fReadout[LOG_CHANNELS],
    fMax[LOG_CHANNELS],
    fMin[LOG_CHANNELS];
    char
    sChID[LOG_CHANNELS][32],
    sChUnits[LOG_CHANNELS][16];
    CTRL_CHANNEL_STATUS;
    Attachments:
    GDSCallback.vi ‏12 KB

    AThe fixed size arrays in your structure are inlined byt the C compiler. This means they are not an array pointer (and definitely never a LabVIEW array handle) but rather LOG_CHANNELS amount of unsigned ints and floats directly embedded in the structure. In LabVIEW terms this is most easily represented as a cluster with LOG_CHANNELS elements inside the main cluster.
    So basically your uAsigndPhysCh needs to be a cluster with LOG_CHANNELS elements of unsigned ints and  fRange,  fReadout, fMax and fin are clusters with LOG_CHANNELS single precision float values, and then sChID is a cluster with 32 * LOG_CHANNELS chars and sChUnits one with 16 * LOG_CHANNELS chars.
    However I would personally rethink this strategy. This huge cluster monster is passed into PostLVUserEvent() each time and copied into the event data on every event, causing quite a bit of overhead that way. Is it really necessary to post all this data every time?
    Also you have commented out uDAQMode and bControllerActive in your C structure but included it in the LabVIEW cluster which will certainly throw off your data. Last but not least the b prefix would probably indicate that you are only using that element as a boolean value, so why not consider to use bit fields there? In LabVIEW you can easily seperate those bitfields by either translating the resulting uInt32 into a boolean array or even more efficiently use boolean logic to detect the bits.
    And in order to let LabVIEW react on a user event you have to create that user event with the correct datatype (your cluster monster) and then pass the user event refnum to your DLL. This DLL then calls PostLVUserEvent() with the user event refnum as first parameter and a pointer to a data structure that matches the LabVIEW user event datatype EXACTLY whenever it wants to post an event to LabVIEW. The user event is also registered in an event structure in LabVIEW which will then get triggered everytime your DLL posts an event by correctly calling PostLVUserEvent().
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • "How to use an Appplicom card with Labview and a Seimens PLC"

    Hi, I am using an applicom card type PCI1500-PFB to communicate with a Seimens S7-300 CPU315-2DP plc. I am using this simply to display in a labview front panel the outputs of the plc and may in the future use switches on the front panel to control the inputs of the plc. How do I do the communication? I have setup the applicam card and have comms with the plc I think. I am trying to use data socket to communicate to the plc via the applicom card. Any suggestions?
    Thanks
    Tom

    There�s a fair bit of documentation on NI�s site regarding the Applicom card.
    The following doc does a pretty good job summarizing Applicom's PCCONF and PCINIT, and the use of ReadWait and WriteWait to ensure you�ve got communication with the between the PLC and the Applicom card:
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/5913e03f551de3f786256a32005b4586?OpenDocument
    Since it doesn�t sound like you�re using the LV DSC module, you can stop reading once it gets into connecting to Lookout Objects.
    Once you�re sure you�ve got comm, you can do some quick tests in LabVIEW using front panel datasocket connections as shown on page 11-12 of the following:
    http://www.ni.com/pdf/manuals/323241a.pdf
    From there, it all depends on
    the complexity of your system. If simple, you could just stay with front panel connections, or you could move to programming with the Datasocket Read and Write functions.
    ... and if you get to the point that Datasocket is too slow and cumbersome, you might want to look at the LV DSC module:
    http://ni.com/labview/labviewdsc/what_is.htm?node=10418
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • How to use matlab compiled DLL in Labview ?

    I have LV 8.5, and am unable to use a matlab compiled DLL in my LV code. I have tried the 'import'  command, but it does not list any functions. However, it does not show any errors during its execution. The existing solutions/responses to this question do not work either. I would also like to know of a way to deal with mxArray datatype. What is its equivalent in C (or any other high-level language) ? How do I retrieve an array that is returned from the matlab dll ?

    I'm assuming you have either Matlab installed or at the very least the Matlab Runtime, otherwise the DLL won't work. The "import" command relies on having a header file. Do you have one? You also need to make sure the DLL has been compiled so that it's compatible with LabVIEW. The most likely problem is name mangling, which also occurs when you try to compile a DLL written in C++. See this post, which contains links to useful posts.
    The mxArray datatype is a special datatype which is actually a structure. It's complicated. Your best bet is to create a C DLL that acts as an intermediary between the Matlab DLL and LabVIEW. If you are able to, you can, instead, simply call the Matlab code directly using the Matlab script node.

  • How to use Expression Edit in the LabVIEW control (teststand category)?

    Hi All,
    I am developing the teststand specify module using LabVIEW. I found that is Expression Edit control in the Labview Controls pallete. does anyone have any example?
    I have enabled the expression browser button but I dont know how to link it to the teststand. Pls advise.
    Thanks
    - toko -

    Hey Toko,
    You basically need to refer the button to the sequence context.  For a great description of this and an example, please refer to this previous discussion forum:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=10609&requireLogin=False
    Thanks,
    Andy McRorie
    NI R&D

  • How to use a ps3 controller with labview

    Hello, I am trying to implement a ps3 controller in labview but am having trouble. I was wondering if anyone knew how to do this or had any ideas for me. Thanks for the help

    Hi Keaton
    I'm not too sure how the inputs of the controllers work on a lower level, but Sixaxis offers a driver to integrate the ps3 controller onto a pc. It is available at this website:
    http://dl.qj.net/playstation-3/tools-and-utilities/sixaxis-driver-for-pc.html 
    This may be an easier starting point that having to go from scratch. You can look into using the call library functions in labview and access some of the functions that may be available in that driver. This seems like a better choice then pulling out wires and using a daq device to read value since you wont actually have to take apart the controller. That being said, for support on that driver, you might have more luck on the sixaxis forums here:
    http://forums.qj.net/
    Hope this helps
    Luke W

Maybe you are looking for

  • Text formatting options

    Hi, Is there a list somewhere which outlines more text formatting options than what is shown in the FAQ? In particular I'm wondering how to make text that does not suppress white space other than using the "code" tag. Also, the insert link option a s

  • Mail doesn't show windows

    Setup my brand new iMac 21.5" with Mountain Lion (10.8.4) today and migrated from old iMac (10.6.8) Time Machine backup. The backup was made today just before the new startup so is absolutely current. Searched here and found many entries but they are

  • What does setting "Availability" on my calendar change?

    For each event in the calendar on my iPhone 5 (iOS ver 6.1.4) there is an assigned availability for which the default is "Busy" does this effect what types of notifications i recieve during the times slated as "busy" by these events? Is there a way o

  • Bottom speaker metal mesh is a little bent in...

    Ok. stupid question time. I just got my first iPhone, the iPhone 4S about a month ago, and it is only today that I found that the bottom speakers' metal mesh is a little bent/curved in at the center. It's not that obvious, but I do see a little bit o

  • Iphone 4 warm and battery power lost in half a day

    my iphone 4 has been very warm, lost battery power from 100% to 20% in half a day. its done this twice since i got it in march. i only txted on person today and i didnt use my 3g at all or wifi. please help