How to use IVI Driver in Labwindows

I want to use IVI drivers in LabWindows/CVI, but I don't know how! I know that it necessary to load the class driver. But how can I include the specific driver??? It is possible to add functions into a class driver? And what I have to do when the instrument should change?
Thanks for your help!!!

Hi Chris,
If your goal is to create an interchangeable application, you do have to use a class driver. National Instruments provides Measurement and Automation Explorer (MAX), a Graphical User Interface for configuring IVI. MAX is usually installed with one of NI's Application Development Environments such as LabVIEW or Measurement Studio, or with one of NI's hardware product drivers such as NI-488.2 or NI-DAQ.
The IVI configuration utility allows you to interchange instruments without recompiling or relinking your application source code by configuring logical names. The user defines which specific instrument he wants to associate with a logical name and IVI takes care of the rest. If at a later time, the user decides to swap the instrument and use a diff
erent one, all he has to do is change the entry in the configuration utility so the logical name points to a different specific instrument driver (driver session).
So, the important point is that you have to have both, IVI class and specific driver installed on your system, and then you need to configure them in MAX. MAX 3.0 now has a built-in help to guide you through the configuration process. In the case that you still do not have MAX 3.0, you can find an application note about the IVI configuration in MAX 2.x on NI's Developer Zone: http://zone.ni.com/devzone/devzone.nsf/webproducts/E2947DB2FF0DD9FE862569FD006EB939?opendocument.
As for the adding functions into the class driver, the answer is no, that is not possible. You can certainly use the specific driver functions in the application which is written using the class driver functions but then your application will not be completely interchangeable in the future. However, this way you will just isolate a small portion of y
our code that you will need to change later on when you decide to change the instrument.
I hope this makes sense.
Regards,
Vesna Jadric
Instrument Drivers/IVI

Similar Messages

  • Problems in using Ivi driver ke230y in "IviDCPwr Measure [MSR].vi"

    Hello all,
            I have a problem in using IVI driver (ke230y) to control keithley2303 powersupply with LABVIEW 2013.
     After I initialize and config ke2303 well and run to  "IviDCPwr Measure [MSR].vi", it ocurrs errors. While lasting about 15 seconds and then reports errors as attached:
    The code (attached) when I test with other powersupplies such as agilent66309d and keithley2306(with ivi driver ke230x), it runs well.
    So I've no idear about this problem with keithley2303 powersupply, can you guys ever meet this problem and may reply for me to fix it.
    thank you for your reading and help!
    best wishes,
    Phil
    Solved!
    Go to Solution.
    Attachments:
    error.jpg ‏36 KB
    code.jpg ‏43 KB

    I don't have the any driver's source code (such as ividcpwr.dll source code), how can I modify the specific driver through labwindows.
    Follow your advice I use I/O trace to get trace as follows:
    1 IviDCPwr_InitWithOptions ("ke2303", VI_FALSE, VI_TRUE, "", 0x0C913064) VI_SUCCESS 14:45:10.675
    2 IviDCPwr_ConfigureVoltageLevel (ke2303, "CHANNEL1", 3.8) VI_SUCCESS 14:45:11.405
    3 IviDCPwr_ConfigureCurrentLimit (ke2303, "CHANNEL1", 0, 3) VI_SUCCESS 14:45:12.104
    4 IviDCPwr_ConfigureOutputEnabled (ke2303, "CHANNEL1", VI_TRUE) VI_SUCCESS 14:45:12.824
    5 IviDCPwr_Measure (ke2303, "CHANNEL1", 1, 0) VI_ERROR_TMO 14:45:16.207
    6 IviDCPwr_GetError (ke2303, -1073807339, 0, "") 0x00000037 14:45:32.991
    7 IviDCPwr_GetError (ke2303, -1073807339, 55, "Primary Error: ..................") VI_SUCCESS 14:45:32.991
    8 IviDCPwr_close (ke2303) VI_SUCCESS 14:45:33.847
    I cannot see any GPIB command in the trace but some IviDCPwr functions.
    Besides, if I know any bug (eg. some wrong GPIB command) in ividcpwr.dll, how can I modify it before I get it's source code.
    Pls teach me anytime in your conveneince.
    thanks!

  • Using IVI driver for Keithley 6485

    I am trying to learn how to use IVI drivers.  I installed IVI drivers for two instruments, an HP34401A and a Keithley 6485.  I was able to get the HP to work in simulation mode (I don't have the hardware).  I am also trying to get the 6485 working in simulation mode.  The attached vi was provided by Keithley.  I configured a logical name in MAX, but this name doesn't show up as an option when I edit the "logical name" control on the front panel.  I changed the Initialize vi to Initialize with Options and added a command string control to set the mode to simulation, manually entered the correct name in the control, and ran the program.  No error was indicated in the Initialize vi.  After the configuration vi runs, however, the following error was flagged:
    Error -1074135023 occurred at IviDmm IVI Error Converter.vi
    Possible reason(s):
    Primary Error: (Hex 0xBFFA0011) Function or method not supported.
    Elaboration: FunctionId: 46,  FunctionName: ConfigureMeasurement
    Complete call chain:
         IviDmm IVI Error Converter.vi
         IviDmm Configure Measurement.vi
         KE6485_ZeroChk_LV86.vi
    This error is being generated by IviDmm Configure Measurement.vi, which is apparently installed NI code.  Specifically, the error appears to be thrown when Call Library Function Node is invoked and IviDmm.dll is called.  I wasn't able to track down any further info as to the meaning of these error codes.
    Thanks for your assistance.
    Attachments:
    KE6485_ZeroChk_LV86.vi ‏14 KB

    Hello,
    3rd party devices will show in MAX only when that device is listed at a specific place within your computer's registry. Non-NI hardware may not show up in MAX.
    As far as the logical name is concened, unfortunately, you will have to contact Keithley to get a better understanding of their code.
    You could download our IVI driver from the link below as you might have better luck with it.  You can find any of our 3rd party drivers at www.ni.com/idnet.
    Keithley 6485
    http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=238
    Regards,
    Shawn S. | NIC
    Instrument Driver/IVI PSE
    National Instruments

  • How to use COM DLL in LabWindows

    Hello
    I have a COM .dll which looks like that when opened with dll export viewer:
    I would like to use the Get4AxisPos function in LabWindows.
    I understood that, as I only have the .dll, the only way of calling these functions are with the LoadLibrary() and GetProcAddress() functions.
    My problem is that the Get4AxisPos function is not of type Exported Function but COM Method so I don't know how to use it in my LabWindows project!
    My questions are: Is it possibleto use this dll in Labwindows? If yes how?
    Thanks
    Solved!
    Go to Solution.

    Hi ,
    I am new to C++ and COM  .
    i need to implement a client application in C(lab windows CVI) , server is a c++ COM object.
    steps followed by me
    ---> accessed the registered COM object with Labwindows CVI active x controller template,output was a c file which is implementation of the class names in COM (interfaces).
    I can use majority of the functions directly from the generated, but i need to implement some event functions like message box events and then use it.
    I have seen one method of accessing in C++ client sample ,
    which implements Queryinterface function...takes the IID_Unknown as input and returns interface pointer(inhereted static_castof the required class, uses static_cast for that) as output.
    when i try to follow up the same in c , i am lost  with the inheritance concept.
    In short i need to send IID Unknown to the Queryinterface function and should get the interface pointer of message box type or other class type ...
    Sorry for the long mail,Please guide me
    Thanks in advance ,
    Satish

  • Using IVI driver for reading delay in MSO6104A

    Hi,
    I have the NI IVI driver for the MSO6104A scope. The driver is functional and I manage to use it.
    My scope has a function of measuring delay between two different channels. But, how can I read the Delay measurement using IVI scope step?
    Is there any other way of reading this measurement?
    Thanking in advance
    Solved!
    Go to Solution.

    As far as I know, interchannel delay is not a supported IVI measurement function. So, you can complain to ivifoundation.org first of all. Or, in a code module, you can use the instrument specific driver to get the measurement. This would make the application 'non-IVI' so most of the reasons for using IVI in the first place are gone. Or, retrieve the waveforms from each channel and calculate the delay in a code module.

  • How to use a driver for two installations

    Hi everyone
    I downloaded from ni.com a driver for my spectrum analyzer (agesa). I had this installed on a LV 8.0 installation, and it worked.
    I have now updated to 8.2. In this installation the driver doesn't show up.
    The problem: I need both installations, and I need the driver to show up on both installations. When I restart the installation program for the driver, I only can repair it (for the 8.0 installation) or remove it (which I don't want to).
    How can I use the driver in both installations?

    Now this is quite embarassing Someone might want to delete this thread.
    I didn't think it was that easy.
    Thank you, works

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!!
    i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

    thank for reply!!! :D
    my project require to use struts 1.2.8 with ODBC (i think so it's type 1) for connect to database (SQL server). i think so it has two step :
    1. edit file struts-config.xml with <data-sources> tag.
    2. programming in file java (which extends from Action class) connect to database.
    but how to programming in file java??? (i think so must use objects DataSource & Connection)

  • How to use 7344 driver with vc under rtx ?

    Hello everyone
     I am using the PCI 7344 card.Under windows system I  use the flexmotion32.dll well with vc,but when I use it under rtx ,it does not work,appering " can not load the driver".The fact is ,as most say,the driver is not suitable under non-windows systems. So I wonder
    if there is driver under the rtx,or how to use the windows driver under the rtx.
    If it is necessary to develop my own motion driver,what can I do?Does 7344 support register lever programming ? If it does, Can I  get the register map of the 7344?
     Hope your reply!!
    Thank you!!

    Hello !
     Presently I don`t have ni motion DDK, and it appears that there is no available link to download the DDK at ni`s web.So I  wonder if there is more detailed information about the pci-7344 card, for example the port of the registers ,how to mapping to the physical memory etc.
    Another question is if  ni can offer the source code of the ni motion driver for us to reference!
    Thank you!!
    Hope your reply!!!

  • How to use iCloud drive on my iPad

    Hi,
    I thought there was an app for iCloud drive, like Dropbox - but there isn't
    So my question is how do I open a document from iCloud Drive or save to it?
    I am from Denmark, so I am a little unsure if iCloud drive is available for me.
    When I open Pages or Keynote I do not get the Document Picker/File Manager we see on
    the screenshots about iCloud Drive. So.... what am I missing?
    I need a step-by-step guide or some screenshots
    Hope someone can help me out...

    Hi again bobseufert
    so there was this update on pages, keynote and numbers... When I opened pages it asked me if I wanted to use icloud drive - but I still don't get this document picker Do you experienced the same? Just want to make sure I am not missing anything..

  • How to use external drive as extra storage for itunes (tv shows primarily)

    I have bought quite a few tv shows and started downloading them on ITunes but realised but I dont have enough space....what is the best way to deal with this. I have a HP pavilion tx1000 with vista....PLS HELP!

    That's easy to fix.
    At pretty much any computer store, you can find
    external hard drives with a variety of disk space,
    ranging up to 750 GB or even more. For example:
    http://www.bestbuy.com/site/olspage.jsp?skuId=8294017&
    st=externalharddrive&type=product&id=1172277308443
    Sometimes it's also possible to get just the drive
    without the outer covering, which you would have to
    buy and assemble separately.
    Anyways, with that all set, connect it to your
    computer's USB port and you can now use it. If your
    computer is out of space, then you'd probably want to
    move the movie onto the external drive instead of
    just saving a copy there, since that won't save you
    space on your normal computer drive. Now, once the
    file is in the external drive, double click it to add
    it to your iTunes' library, and you're all set.
    One thing to watch for is try to keep the external
    hard drive's name consistent. If you first opened it
    as drive J, but when you turned it on the next time
    you already have drive J as another jump drive, then
    the external drive will have no choice but to adopt
    another name, like Drive K. This causes a problem
    because iTunes only recognizes one pathway for the
    files, and you'll get a message saying "cannot find
    file would you like to locate it". If you don't have
    a lot of movies, that's fine, because it wouldn't
    take that long to locate it manually. But if you have
    a lot, it would be frustrating. So just try to keep
    the name the same.
    And since you already have an external hard drive, I
    would recommend backing up your music and library
    too. Copy, don't cut, the folders as they are into
    the external hard drive for back up files. And go to
    File and Export Library... in iTunes to back up your
    library.
    What you are saying makes sense but I think I need more details - I am pretty new at this....
    How do I move just the TV shows from my laptop to the external drive? Or should I just move my whole ITunes library? When I am done, can I use this drive with my other computer too?
    thanks!!!!

  • How to use External Drive for Users Directory

    I just did a clean install on my Mac Mini - I have over 4 TB of storage attached, but the main drive (160 GB) keeps filling up. What is the best way to have the Users directory located on an external drive?
    Thanks for your help,
    Chris

    Think about it for a second. What would happen if that external drive wasn't connected for some reason? Maybe it died the night before, as external drives have a habit of doing. How are you going to log into the system?
    If the main drive is filling up, it says that you aren't making effective use of the attached storage. There's nothing saying you have to keep video files in the Movies folder, and music in the Music folder, etc. Find some things, that aren't your user profile, and move them to your external storage. Or consider putting in a larger internal drive.
    < Edited by Host >

  • How to use thin Driver in WebLogic 6.1

    How to config in "JDBC Connection Pools"
    (platform:windows 2000 server+WebLogic 6.1 + Oracle Enterprice 8.1.6)
    URL:?
    Driver Classname:?
    Properties:?

    Here is a sample:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    LoginDelaySeconds="1" MaxCapacity="15" Name="dbPool"
    Properties="user=scott;password=tiger;dll=ocijdbc8;protocol=thin"
    RefreshMinutes="15" Targets="AdminServer" TestTableName="dual" URL="jdbc:oracle:thin:@dbservername:1521:SIDname"/>
    You can either use the info above configure a db pool using weblogic 6.1 web console or directly paste this into config.xml and change it accordingly. I would recommend you use the console.
    Hope this helps!

  • Error on using IVI driver to control Agilent E4407B

    Hi,
    I'm now using LabVIEW7 to control Agilent E4407B Spectrum Analyzer through GPIB. I can control it properly in MAX by sending GPIB commands. However, I got an error when I program it in LabVIEW by using the IVI instrument driver. The error code is -1073807339 which is timeout expired before operation completed. I just used the Getting started.vi to try but it failed in the initialize vi. I didn't change any setting and the address was mateched. The analyzer indicated that it turned to remote mode but it showed "Query UNTERMINATED" when the program run Call Library Function to access the ivi.dll. Do I miss any drivers or settings? Thanks.
    Bill

    Hi,
    I developed this driver with E4401B and I do not have any troubles. Please can you use NI Spy for VISA and attach spy report.
    NI Spy you can find in Start menu National Instruments>>Ni Spy. Press blue arrow icon. Now you can start Getting started example. In spy window you should see all VISA calls. When getting started example finish, stop capture in NI Spy and save report file.
    Thanks,
    Zdenek

  • How to use hard drives with the new mac pro

    A few quick questions about upgrading to new Mac pro desktop
    I currently have 4 internal hard drives for a total of 8T
    What will the solution be to add storage to the new desktop?
    I assume it will be thunderbolt options?
    Lets say I wanted at least 8TB of storage to add to the computer
    and attached the storage via thunderbolt will it be as fast data throughput
    as the harddrives in my current computer hooked up to the external bus?
    I also have a pci card running my audio plugins for Universal Audio how will those pci
    cards work on the new mac pro?

    Also will the transfer rate with the pegas be as fast as if the drives were connected to the bus in the machines like the old mac pro?
    To answer that, think of this as a Bottleneck problem. The overall performance is as slow as the slowest device.
    At this writing typical rotating drives can produce a momentary burst at 125 MBytes/sec or 1,000 Mbits/sec. Only FireWire 800 is starting to be a limit for that -- EVERYTHING else is faster. Thunderbolt-1 is 10,000 Mbits/sec -- ten times faster.
    The best SSD can produce a burst at maybe 800 MBytes/sec or 6,400 Mbits/sec. There is not a big speed difference in an SSD RAID, because the latency is already low. But the 10,000 Mbits/sec of ThunderBolt-1 is still plenty fast enough for that as well.
    If ThunderBolt-2 devices really can run a single data stream at 20,000 Mbits/sec, that does not make ANYTHING faster -- it just moves the ceiling (potential bottleneck) a bit farther away.

  • How to use hard drive on old laptop for external storage on newer laptop?

    My MacBook's hard drive is chock full. I'm getting messages. I hope to replace this old trouper soonish, but it'll be a while before my finances are up to the job.
    In the meantime, I've got an even older PowerBook.
    Obviously, I"ve got to do some pruning on both.
    But once that's done, what, basically, would be involved in using my PowerBook as external storage for my MacBook (i.e., moving some old stuff off of my MacBook onto my PowerBook)?
    Advice welcome. Many thanks.

    You can do this though file sharing on your network. Here is a link for setting that up. http://support.apple.com/en-us/HT1549 This will not work as well as an external hard drive which is connected to your Macbook. As using an external drive is like having it as an extension of your own computer. You would only need the the basic operating system on the Powerbook.

Maybe you are looking for

  • Question about XY Stage Stats

    Hello my is David Charlot and I'm trying to use a NI 7344 motion controller and a MID-7604 motor driver to control a microscope XY stage. I want to make sure I am controlling the stage correctly. The manufacturer told me that the stage has a 2mm pitc

  • Can't use any apostrophes in mail since switching to Mavericks OS X!!!!

    Someone please help me!!  It's driving me crazy.  Every time I try and use an apostrophe, the cursor either moves back a space and then carries the next letter on or it refuses to add a space when I hit the space bar and two words get stuck together

  • Eeepc 1000h net not work

    Feb 15 16:39:59 localhost PCI: BIOS Bug: MCFG area at e0000000 is not E820-reserved Feb 15 16:39:59 localhost PCI: Not using MMCONFIG. Feb 15 16:39:59 localhost ACPI: Error attaching device data Feb 15 16:39:59 localhost ACPI: Error attaching device

  • Formatting a new flash drive: what format?

    I got a new flash drive and I was wondering how I should format it. My previous one from windows is in Fat32 and I have no problems with it. Would I have any problems if I formatted this drive to HFS+ if I needed to use it on a windows machine? Shoul

  • Tiny amount of kudos for Nokia

    Since I have had a lot of whinges in here about the poor quality of the N97 it only seems fair to mention something good when it happens! Just managed to move to V21 (that was a pain, took for ever and multiple attempts to get SW upate to work). Nice