NIDMM.vb and NISWITCH.vb wrapper warning

I am writing an application in VB.net (VS2005 & MeasStudio 8.2.1) where I want to control a PXI-4065 DMM and a pair of PXI-2575 196 channel multiplexers to take various voltage and resistance measurements on a demand basis (table driven).  I've created my vb.net application with measurement studio and added to the project the NIDMM.vb and NISWITCH.vb wrappers as specified in the KB article "Microsoft Visual C# and Visual Basic .NET Wrappers for National Instruments Modular Instruments Drivers".
After I added the two wrappers, I get many warning messages as follows...
Warning 1 XML comment parameter 'Instrument_Handle' does not match a parameter on the corresponding 'sub' statement. XML comment will be ignored. C:\Documents and Settings\georgep9164\My Documents\Visual Studio Projects\QCT01\QCT01\niDMM.vb 80 8 QCT01
Am I missing something that should be added to the project?
Also, I've not used the "XML documentation" feature used in the two wrappers.  How can I "process" the two files to get the documentation?  Will this work properly with VS2005?
Lastly, assuming that I am going about this application in the correct method, are there some examples that would show me how to set a specific switch channel(s) and then take a voltage or resistance measurement with the DMM?  I've been looking around but Ihaven't found any examples.
Thanks!

OK, going back to the NIDMM.vb class that NI provides, the first instance of the warning comes from the line "<param name="Instrument_Handle">"  in the XML comments listed below.
    '''<summary>
    '''Creates a new IVI instrument driver session.
    '''Opens a session to the device you specify for the Resource_Name parameter.
    '''If the ID Query parameter is set to TRUE, this function queries the instrument ID and checks that it is valid for this instrument driver.
    '''If the Reset parameter is set to TRUE, this function resets the instrument to a known state.
    '''Sends initialization commands to set the instrument to the state necessary for the operation of the instrument driver.
    '''Returns a ViSession handle that you use to identify the instrument in all subsequent instrument driver function calls.
    '''Note:  This function creates a new session the first time you invoke it for a device. If you call niDMM_Initialize on the same resource, the original session is returned. You can use the same session in multiple program threads. You can use the niDMM_LockSession and niDMM_UnlockSession functions to protect sections of code that require exclusive access to the resource.
    '''</summary>
    '''<param name="Resource_Name">
    '''Contains the resource name of the device to initialize.
    '''Valid Syntax:
    '''-NI-DAQmx name
    '''-DAQ::NI-DAQmx name[::INSTR]
    '''-DAQ::Traditional NI-DAQ device number[::INSTR]
    '''-IVI logical name 
    '''Caution  All IVI names for the Resource Name, such as logical names or virtual names, are case-sensitive. If you use logical names, driver session names, or virtual names in your program, you must make sure that the name you use matches the name in the IVI Configuration Store file exactly, without any variations in the case of the characters in the name.
    '''</param>
    '''<param name="ID__Query">
    '''Specifies whether the driver performs an ID query. When this parameter is set to VI_TRUE, the driver verifies that the instrument is of a type that this driver supports.
    '''Defined Values:
    '''VI_TRUE (1) - Perform ID Query (default)
    '''VI_FALSE (0) - Skip ID Query
    '''</param>
    '''<param name="Reset_Device">
    '''Specifies whether to reset the instrument during the initialization procedure.
    '''Defined Values:
    '''VI_TRUE (1) - Reset Device (default)
    '''VI_FALSE (0) - Don't Reset
    '''</param>
    '''<param name="Instrument_Handle">
    '''Returns a ViSession handle that you use to identify the instrument in all subsequent instrument driver function calls.
    '''</param>
    Public Sub New(ByVal Resource_Name As String, ByVal ID__Query As Boolean, ByVal Reset_Device As Boolean)
        MyBase.New
        Dim pInvokeResult As Integer = PInvoke.init(Resource_Name, System.Convert.ToUInt16(ID__Query), System.Convert.ToUInt16(Reset_Device), Me._handle)
        PInvoke.TestForError(Me._handle, pInvokeResult)
        Me._disposed = false
    End Sub
I noticed that the XML comments specify four parameters, but the SUB only has three parameters defined.  Hence, the warning!  A question for NI... Why the mismatch?  Has NIDMM.vb changed?
I would still like to know how to print the XML comments for the class documentation.

Similar Messages

  • I am trying to manage family sharing and I get a warning "invalid apple ID" that accounts can participate in one Family at a time.  How can I add my daughter when I can't even access my account?

    I am trying to manage family sharing and I get a warning "invalid apple ID"  accounts can participate in one Family at a time.  How can I add my daughter when I can't even access my account?

    Your best bet would be to try resetting the password to the account that you would like to use via iForgot
    Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
    After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account.

  • I clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup dis

    i clicked the download all button at the end of the list of my library iTunes which i believe is in the iCloud, i have iTunes match also, many downloads were reported as occurring over several hours and then received the warning startup disc is full (activity monitor shows 3.99 of 4 GB used) and then another stating the download had not occurred due to the disc being full. most of the tunes still appear to be in the cloud but the disc is said to be full, spent a good period of time trying to investigate what has happened but failed...I'm not well up on all of this as an old chap so any help would be wonderful.....

    unclefossil wrote:
    Thanks Michael, what is the best way of backing up, should buy a cheap standalone external hard drive rather than relying on the Time Capsule which is quite sensitive...
    If you read the link I provided you'll get an idea of one way to maintain a backup of your music files, use Time Machine, and not take up as much room on the internal HDD/SSD.
    unclefossil wrote:
    i live in the Scottish Highlands where Broadband is frequently intermittent disrupting backups.
    Your internet connection speed has no effect on Time Machine/Time Capsule backups. Since that is all done locally, over your wireless network you actually do not need an internet connection at all.
    unclefossil wrote:
    Also I wondered if I could increase the memory on the setup disk by replacing the 4GB card already in the MBP with 16GB cards, if I upgraded would that affect anything I have stored already like my iTunes?
    You're asking about the computer's RAM. Increasing that will not increase the size of the internal storage available to the computer. You'd need to replace the HDD/SSD of the Mac, which, depending on what model you have may or may not be possible (with new models of Macs).

  • Hi there, I cannot open bridge and I get this warning, "Adobe Bridge Cannot be Opened because of a problem. Check with the developer to make sure Adobe Bridge CC works with this version of Mac OS X. You may need to reinstall any updates for this applicati

    Hi there, I cannot open bridge and I get this warning, "Adobe Bridge Cannot be Opened because of a problem. Check with the developer to make sure Adobe Bridge CC works with this version of Mac OS X. You may need to reinstall any updates for this application and Mac OS X" although bridge has been running on my Mac for over a yera. I have installed all current updates for Mac and reinstalled Bridge again from CC and still get the same issue? Any advice?

    Would you please provide details about your setup?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Advantages and disadvantages of wrapper classes

    Hi ,
    will you please let me know what are the advantages and disadvantages of wrapper classes.
    please do needful ASAP.
    thanks in advance

    Hi Anil,
    Wrapper classes are classes that allow primitive types to be accessed as objects.
    Refer the foll Link:
    http://www.cs.wustl.edu/~schmidt/PDF/Reactor1-93.pdf
    http://whitepapers.silicon.com/0,39024759,60104914p,00.htm
    Regards,
    Sunil

  • Advantages and disadvantages of wrapper class

    Hi ,
    will you please let me know what are the advantages and disadvantages of wrapper classes.
    please do needful ASAP.
    thanks in advance

    Hi Anil,
    Wrapper classes are classes that allow primitive types to be accessed as objects.
    Refer the foll Link:
    http://www.cs.wustl.edu/~schmidt/PDF/Reactor1-93.pdf
    http://whitepapers.silicon.com/0,39024759,60104914p,00.htm
    Regards,
    Sunil

  • HT1476 Hi, I have an iPhone 4s running iOS 7.0.4 and the phone keeps going of whenver battery level drops to 20% and it give the warning. It turns off immediately after I dismiss the warning message. I LOCKED THE PHONE AT 21% and I was able to play music

    Hi, I have an iPhone 4s running iOS 7.0.4 and the phone keeps going of whenver battery level drops to 20% and it give the warning. It turns off immediately after I dismiss the warning message. I LOCKED THE PHONE AT 21% and I was able to play music to 4% which means there is no problem with the battery, this seems to be a programming error.
    Earlier suggestion include that the battery has a dead cell but it wouldnt keep playing music for over 2 hours it it had a dead cell.

    My issue with IOS 7.1 and higher is my Bluetooth for the phone still works...no problem but the music does not work with bluetooth...I have an Acura TSX 2010...Acura said there are no incidents reported, but me...I just upgraded to IPhone 6 and still no good....as soon as i hit the AUX button it say USB...not bluetooth...ugh

  • I have a macbook air late 2010 and keep getting a warning that my hard drive is full and to delete things so I purchased a external hard drive (1TB) but I'm just not sure what the correct way to transfer and store files to the external drive is. First MAC

    I purchased a macbook air about 5 months ago and lately i keep recieving a warning that the hard drive or disk is full and that I will need to move items to trash in order to free up space on it. I purchased a external hard drive 1 TB but I'm very new to mac and ios and unsure as to how I'm suppose to transfer my files (video, pics, music etc.) from my mac over to the external hard drive in the correct way so I won't end up deleting them permenately or screwing anything up with my mac as far as the applications and programs being able to run. Am I supposed to just copy to the external hard drive and then move to and empty the trash? That's pretty much all I could come up with, but then what if i need or want to access that file again at a later time. Also, I have an i Phone and i pad so with i cloud it automatically syncs all my purcheses and if i delete something from itunes on my mac it deletes from my ipad.
    I'd appreciate any kind of input i think im just a little lost here. I have to say i love my Mac and wouldn't trade it for anything (except maybe a macbook pro w/more memory)... Is there something I'm missing???

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • Photoshop CS4 crashes and shuts down without warning.

    I have installed the new CS4 upgrade, and I have disabled the GPU. I have just upgraded to 2MB of RAM. However, PSD CS4 will suddenly shut down without warning at unpredictable times - yesterday it happened when I zoomed in past 200% - today it happened when I hit Save For Web. Really annoying. Any ideas?
    Thanks
    Charles

    Look in the Photoshop forum. This is for Premiere Pro.

  • Soft proofing and Out of Gamut warning

    I like to use Blurb for a perfect photo book. I am an amateur photographer but like the most of my pictures on paper.
    What's the perfect workflow for soft proofing ?
    A friend of me has calibrated my screen (Thunderbolt Apple screen).
    My current methode :
    I take a picture in RAW with AdobeRGB profile setting, i adjust a few parameters in Lightroom and then go to Photoshop and start de soft proofing with the Blurb-ICC profile.
    The result with soft proofing is like there's a white mist over the picture. Then i try to optimize this with various parameters.
    When i try the soft proofing with the Blurb ICC profile + out of Gamut warning option .... there are many colors out of gamut .
    My second methode :
    When i import the raw picture in photoshop cc and i convert the picture to the Blurb profile, then there are no out of gamut colors but everything is in CMYK.
    Is this a good way for perfect photo books in Blurb ?
    Or must i ignore the out of gamut colors ?
    Is it better to make my pictures in sRGB ?
    When i want to save the end result in Photoshop cc ( jpeg for Blurb )  must i enclose the Blurb ICC (when in CMYK) , Adobe RGB or sRGB profile (when in RGB)  ?
    Please help me make a perfect photobook 
    Mario

    Since I don't know what "Blurb" is, I'm going to assume that's your printing service somewhere, and that they have provided you with their target printer profile.
    What you describe under current method is absolutely normal, expected behavior.  Adobe RGB simply is a much larger color space than whatever this Blurb profile is.
    If you care to let me know how or where I can get a hold of this Blurb profile, I can in a matter of seconds prepare an illustration of how the two profiles compare to each other.  From where I sit, it would appear you're throwing away a lot of image quality by using Blurb.
    There are two wacky ways of getting around your seeing the out of gamut warnings.  The first is not to soft-proof at all. (Duh!  )  The other one is an unorthodox workflow which works just fine PROVIDED you are aware that the image files as an end product are only good for Blurb and for no other purpose, and that is to set your WORKING COLOR SPACE from the get go to the Blurb profile.  Of course that is not the recommended or even kosher workflow.  It is only a workaround to the deficiencies of this Blurb profile.
    I cannot comment on your "second method" until I know more about this Blurb phenomenon.  If they print on a CMYK press, then they are throwing away a lot of colors, even if you send them images in sRGB.  Nothing you can do about that.
    The one thing I can say is that if the outfit doing the printing is the one that sent you the profile, then they will know how to deal with an sRGB file.  The profile they sent you is just what their printing process uses.  No need to attach a copy of their own profile. 

  • NEEDED? makepkg.conf.pacnew and/or yaourt-git: WARNING: Unable to copy

    Hi....
    ISSUE:  when I try to install CERTAIN things via yaourt on my up to date system.
    At the end of the yaourt process I will sometimes get  the:
    ==> WARNING: Unable to copy WHATEVER PACKAGE to /tmp/ directory
    I'm pretty sure I deleted  makepkg.conf.pacnew.
    I am certain to have gone through the big 3.2 pacman upgrade a while back.
    I assumed the pacnew was a pacsave ...I guess.... can't assume of course.
    The only post I could find was this one...
    http://bbs.archlinux.org/viewtopic.php?id=53040
    As I very likely threw out the    makepkg.conf.pacnew
    and missed the merge thing.... could someone post it... or tell me the fix....
    OTHER FIX/ISSUE I READ ABOUT:
    yaourt-git needed instead of the release version ????
    I'm not at all sure if I need yaourt-git and the doing of the recommended MERGE with the   makepkg.conf.pacnew and the old one.
    After this gets resolved I will hopefully add t omy knowledge of AUR usage... and add the other install techniques!!  great!
    thanks!!!!!!!!
    Last edited by yvonney (2009-01-24 08:50:36)

    anonymous_user wrote:Pacman is 4.1 is not released yet. The wiki is just telling you about the new feature in the next pacman.
    I see, but I do not understand why I already encounter PKGBUILDs written with the aforementioned "style".
    For instance, giving a look to pacman-git, I find:
    source=(git://projects.archlinux.org/pacman.git)
    sha1sums=('SKIP')
    pkgver() {
    cd pacman
    git describe | sed 's/^v//;s/-/./g'
    build() {
    cd "pacman"
    ./autogen.sh
    ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --enable-doc \
    --enable-git-version \
    --enable-debug \
    --with-scriptlet-shell=/usr/bin/bash \
    --with-ldconfig=/usr/bin/ldconfig
    make
    make -C contrib
    As I said, my makepkg cannot handle that source and there is not an official way to fix it, apparently.

  • Delete of functions and void * accepted without warning by compiler

    Program:
    extern "C" int sync();
    void f() { delete sync; }compiles fine.
    This also compiles fine (CC -c s.cc +w2):
    void f(void *p) { delete p; }
    void g(void *p) { delete [] p; }gcc4 gives for first program:
    t.cc: In function 'void f()':
    t.cc:2: error: cannot delete a function. Only pointer-to-objects are valid arguments to 'delete'
    For the second program it gives:
    s.cc: In function 'void f(void*)':
    s.cc:1: warning: deleting 'void*' is undefined
    s.cc: In function 'void g(void*)':
    s.cc:2: warning: deleting 'void*' is undefined
    I am not a language lawyer, but gcc treatment seems better.
    Some refactoring of our code had left a delete sync; in our code after the pointer sync had been removed. It was some work to find out why the program crashed.

    According the the C++ Standard, the program results are undefined if you attempt to delete a pointer that was not obtained from a corresponding "new". The compiler is not required to detect errors.
    But attempting to delete a function pointer can never be correct, so gcc is being more helpful than Sun C++ in telling you about it.
    If you file a report at bugs.sun.com, you can track progress on getting this enhancement into the compiler. If you don't want to file the bug, let me know, and I'll file one myself.

  • ITunes opens and re-opens without warning

    Here's the deal.  This has been going on for a while now but it's now starting to become a problem.  Every time I close iTunes, it decides to open itself up again and the only way to keep it closed is to ctrl+alt+delete and close it via the processes tab.  But now a new, rather irritating issue has come up.  Now it decides to open at will every time I go into my itunes folder.  No warning and no explanation, it just does.  I have looked for fixes and nothing has worked.  I have no widgets or gadgets that would cause make this happen and I have done several tests reguarding my keyboard and related apps (including shutting off the apps and unplugging the keyboard) and the same thing happens so I have reason to believe that is not the confliction.  I have tried doing a clean install but that was a bust as well.  If anyone knows of why this happens or knows how to prevent it, please let me know.
    If it helps, I have the latest version of itunes x64 (or whats claimed on the apple site as the 64 bit version but windows still reads it as a 32 bit executable) and all the updates for windows 7 Professional x64.

    wow.  I don't quite understand why keyboard software would make this happen, but that is a darn shame that this is the exact case.  especially when all the other media players I have on my computer, even Windows Media, doesn't act like this.  Guess I'll just have to make due and live with it because I really like the software.  Thanks for clearing this up for me.

  • I'm having the same registry issues with my CDROM, getting the warning when iTunes starts up.  I've followed the article on how to add the upperFIlter to the registry and it solves the warning message but the DVD/CD writer disappears completely.

    I'm having thet same registry issues with my CD-/DVD as is talked about in one of the fix articles I've found here. I added the UpperFilter entry to the registry since it was not there and restarted.  This fixes the warning message but then there's no CD/DVD device shown at all in windows.  I can put it back to normal and vice versa and get the same results, but I can't get this issue fixed. When I get the registry warning on starting iTunes, I can still rip from CDs and my DVD burner works just fine using other programs.
    Any more ideas?

    This fixes the warning message but then there's no CD/DVD device shown at all in windows.
    That symptom suggests the afs.sys issue ... but there's some other things that might cause it too.
    We'd better check to see if we can find what's going on.
    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • I have big problem with battery, It's not working good just two hours and stop without any warning when the battery in 50% then reach 30% in the same moment, then the iphone stopped,what I can do for that and I live in Egypt???any help

    My Iphone 4 is very good until last Thursday, I used it from sep 2011 without any problems, My problem is the battery is down without any warning and working after 100% then 82% then 50% then 30% and down these things throw less than two hours
    what can I do with that??
    Also, I live in Cairo,Egypt
    waiting your recommendations

    Hi,
    "But it didn't work it's just turning them to black gray scale colors not what i was thinking about."
    If you want it to be colored, you'll need to create a color-palette for the 8bppIndexed bitmaps. The keyword for this process is "Color-Quantization".
    The whole yellow-green pie you get is from the wrong format. If you convert the 32bpp bitmaps to 24 bpp bitmaps, you loose the alpha channel ("transparency"). You can manually set one color to "transparent" with the mMakeTransparent-method
    of the Bitmap class, or simply use gif-images (they are 8bpp with a transparent "key"-color)
    Regards,
      Thorsten

Maybe you are looking for

  • How to use Abap Editor(SE38) Test Plan Management Option

    Hi, I am trying to use the Test Plan Management option in Abap Editor. I could not find any articles/forum postings about it. Please guide me on the same.

  • Where is my operating system?

    Before you ask I want to ask forgiveness for my English. I used a translator. I bought a Macbook pro 2011, along with pre-installed OS X Lion. There was no disk with the operating system in a box. When I went into a Mac App Store, I found that OS X L

  • Help needed for Mu

    . The pause/play button no longer functions at all; battery must be removed to start and stop player. I've reformatted and reloaded firmware to no effect. Help! 2. The unit is stuck on pause -- at least, I think that's the symbol to the left of the t

  • Songs Play for 4-5 seconds then skip to next in Win 7 64 bit

    I installed a clean version of windows 7 64 bit then itunes 9. Songs are able to be imported but only play for 4-5 seconds then will skip straight to the next song and again and again... Is anyone else having this problem or know of how to fix it?

  • Beep in an applet

    Hi ! I would like to find a portable way, if possible without an audio file, to make a "bip" in an applet. Is printing the character with code 07 to standard output, or standard error, could work and be portable enough ? Thanks, -- Alexis