Communicate with a USB port, DLL in Visual Basic, program in LabVIEW

Hello !
I have to write a program in LabVIEW (I'm a novice in this language) to communicate with an interferometer via an USB port. The drivers and DLL for the USB port are written in Visual Basic.
-I don't know if it's possible to use them just so, or if I need to adapt them to LabVIEW.
-And how to do to call a particular function of my DLL ?
Thank you for your answer...
Gaelle

Nakaose,
You should refer to these links:
Tutorial: Sharing code with VB:
==>  http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&5F9B8F1FF859549186256E5C0005457D
Tutorial: Can LabVIEW C?:
==> http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&FD4B480C24A159BD86256E60005B0120
Best regards,
JPR
NIF

Similar Messages

  • How to communicate with HID USB device under windows XP with Labview

              I have designed a EZ-USB FX2 device and I need to communicate with LabVIEW. I mean I just want to send and receive data. I don’t know how to achieve this goal.Someone have advised me to design a HID device,then use VISA Driver Development Wizards to generate driver(inf file).SO I defined it to a hid device .However when I connect my hid device to the computer, it will automatically be recognized as HID compliance device. I can’t to install the inf file driver. I wondered whether all HID devices will be acquiescently installed the drivers contained in the windows rather than use the inf file driver generated by VISA Driver Development Wizards? If so,what should I do next to communicate with HID USB device under windows XP with Labview? HOPE TO GET HELP!
              KIVI

    Hi,
    I am working on a project using PIC18F4550 MCU and USB.
    I would need to send and receive data from the MCU thru USB. I have uninstaled the HID and created a new NI-VISA driver for my MCU. this worked fine, and it did showed up in MAX
    Unfortunately I was not able to receive data from the MCU, Just sending!
    I thought to use HID.DLL but the way I need to use the functions inside the HID DLL is simply too much for me, I am not a PC programmer.
    There is any kind of VI that is able to use HID.DLL to comunicate with external devices conected to PC thru USB?
    Please Help
    Andrei

  • Does anyone know how to comunicate with a USB port using labview 6?

    Does anyone know how to comunicate with a USB port using labview 6?

    Unfortunately, there is no way to communicate directly with a USB port before LabVIEW 7.0 and VISA 3.0. With the new releases, there are functions called "VISA USB Control In" and "VISA USB Control Out" that give you direct access to a USB port.
    You can definitely communicate with DAQ, Serial, or GPIB devices that are connected through a USB port, though. This is done seamlessly through the NI-DAQ, NI-Serial, and NI-488.2 drivers.
    Luke S.

  • I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV?

    I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV? I have a MiniDisplay Port to VGA adapter, but there are two issues with it: The new display doesn't have a VGA port, and even if it did, I wouldn't want to have my mac constantly attached to the display by a cable. I was looking for a way to use the TV as a display without any wires. Is there some type of bluetooth setup I could use? Please let me know if you have any suggestions.

    As I wrote above, I think you should look into the Apple TV yourself. The best place to find information about what it can and can't do and to ask your own specific questions is probably in the Apple TV forum, here:
    https://discussions.apple.com/community/appletv/appletv

  • Should I get a 2.0 or 3.0 USB external hard drive for my 2011 Macbook Pro? I need it to be compatible with the USB ports of both a PC and a Mac.

    Should I get a 2.0 or 3.0 USB external hard drive for my 2011 Macbook Pro? I need it to be compatible with the USB ports of both a PC and a Mac. I was thinking of getting a Seagate becuase apparently it is compatible with both systems, but I want to know which would be a better investment.

    Using USB 3 devices on Mac computers FAQ

  • Since upgrading to Mavericks, I have been unable to sync devices (specifically ipad mini and iphone 4s) to my MId 2013 Imac . They wil rapidly connect and disconnect, and I'm unable to do anything with the device. This happens with both USB ports.  Any su

    Since upgrading to Mavericks, I have been unable to sync devices (specifically ipad mini and iphone 4s) to my MId 2013 Imac . They wil rapidly connect and disconnect, and I'm unable to do anything with the device. This happens with both USB ports.  Any suggestions?
    MacBook Air, OS X Mountain Lion (10.9.1)

    Obviously, syncing an iOS device with iTunes over USB is still supported in Mavericks. Calendar and contact syncing with iTunes is no longer supported. That has nothing to do with your problem.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • What do I need to display whatever I call up on my MacBook running OSX 7.5 on a TV with a USB port?

    What do I need to display whatever I call up on my MacBook running OSX 7.5 on a TV with a USB port?

    There is a VGA adapter to TV S-Video RCA Out Cable for PC Video.http://www.amazon.com/VGA-Adapter-S-Video-Cable-Video/dp/B000Y7T5UU/ref=sr_1_7?s =electronics&ie=UTF8&qid=1316369974&sr=1-7

  • Can I use the instrument I/O assistant express vi to communicate with a USB connected instrument ?

    Can I use the instrument I/O assistant express vi to communicate with a USB connected instrument ? My PC is running Windows 2000 et Labview7 express.
    where can I get information or examples on the assistant and USB communication ?

    Yes you can - the Instrument I/O Assistant communicates with message-based instruments through VISA. VISA 3.0 supports USB instruments and VISA 3.0 is the version of VISA that installs with the Assistant.

  • NB200 running Windows XP - What's wrong with my USB ports?

    I bought a new NB200 recently and have had a problem with my USB ports ever since.
    Independently, both rhs ports operate fine with my Logitech wireless mouse - unless I attach it via a USB hub. When I use the second port to attach another device - in this case an external DVD-RW - the mouse simply freezes. Meantime, the DVD-RW itself is recognised by Device Manager, etc - ("Working fine - with plenty of available power output per port), but it nonetheless fails to work and Windows Explorer is unable to read any disc inserted in it.
    Furthermore, the lhs USB port is pure decoration only; nothing I attach to it (even the mouse) will work, neither will the Sleep & Charge capability (at any of the 4 Modes).
    I've uninstalled the USB controllers and ports using Device Manager which, after re-booting, continues to report that all's well, both with the devices I attach and the ports themselves, albeit i's still patently not!
    I'm concerned that I'm still unable to create a recovery disc should the worst happen so can anyone help me resolve my conundrum, please?
    Am I doing something wrong or, less likely to be the case, I'm sure, is there perhaps a fault with my machine??
    Any advice would be helpful, please.
    Regards
    Bob

    Thanks for the suggestion, Guys, but neither provided the solution. I'd already updated both BIOS and Chipset drivers to the latest available.
    Incidentally, the OS is the version of XP that came already loaded - subsequently updated via Windows Update, of course.
    Any further thoughts anyone??
    Bob

  • Problems with the USB Ports

    Hi there,
    I writing this because I'm having some really big problems with my USB ports.
    A few days ago I plugged in an USB-Hub that was quite cheap. Suddenly a window popped up saying that a USB device was deactivated because it "needed" to much power. Since this happening, two of those windows keep popping up everytime I boot the MacBook. I called Apple and got some help: I had to delete some .plist files and clear some caches. The man who helped was able to find the error and deactivate the notification, he also told me to make a PRAM- and a SMC-reset. The man said that it's just a software problem and that I have to reinstall the system if we don't find a solution. So, one day later I reinstalled the system (Lion) and not only didn't it help, the two notification windows were popping up again...everytime I booted the Mac. So I decided to formate the whole hard drive and install Snow Leopard -> still the problem with the USB ports. After that I installed Lion  -> still the problem with the USB ports. I even tried to extract the .kext files that are important for the USB functionality from an earlier Combo Update, but it didn't help either. The point is, that the Mac doesn't recognize my external hard drive or any of my iDevices. Sometimes it recognizes USB sticks, but only after 20 seconds. The data transfer on both USB ports is also very slow. If I'm lucky and Mac recognizes one of my USB sticks, it takes like an hour for 1GB to be transfered on the USB stick or from the USB sticks to the Mac.
    I really don't know what to do and need help, especially because my backup data is on my external hard drive which I can't access because of this problem.
    I really hope that someone can help me, I'm very thankful for every answer that could help me!
    PS: Sorry for my bad English, I hope that everyone understands what I mean, please tell me if you don't get what I'm trying to explain in the text above.
    Sincerely,
    iLoud
    [UPDATE] I downloaded "USB Prober" and copied the Output file, maybe it helps:
    Timestamp Lvl            Message
        0.698 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7316), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.698 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.735 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.735 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.735 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.739 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.739 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.761 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7320), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.761 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.798 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.798 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.798 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.801 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.801 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.823 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7324), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.823 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.860 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.860 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.860 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.863 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.863 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.885 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7328), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.885 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.922 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.922 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.922 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.926 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.926 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        0.947 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7332), outstandingIO(0), _interruptReadPending(false) - rearming read
        0.947 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        0.984 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        0.984 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        0.984 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        0.987 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        0.987 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        1.009 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7336), outstandingIO(0), _interruptReadPending(false) - rearming read
        1.009 [3]          AppleUSBUHCI[0x4f97000]::UIMCreateInterruptTransfer - root hub interrupt transfer - clearing unneeded memDesc (0x5073080) from dmaCommand (0x506a100)
        1.045 [3]          AppleUSBUHCI[0x4f97000]::UIMAbortEndpoint - endpoint 1:1,1
        1.045 [3]          AppleUSBUHCI[0x4f97000]::RHAbortEndpoint - Interrupt pipe -  noting status change
        1.045 [3]          AppleUSBHub[0x5076c00]::InterruptReadHandler error kIOReturnAborted (expected)
        1.049 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - Host controller resume detected - calling EnsureUsability
        1.049 [2]          AppleUSBUHCI[0x4f97000]::HandleInterrupt - deferring further processing until we are running again
        1.071 [3]          AppleUSBHub[0x5076c00]::DecrementOutstandingIO(7340), outstandingIO(0), _interruptReadPending(false) - rearming read

    Oh, sorry, I meant "I'm writing this...".

  • Can a USB Keyboard/Barcode reader be used with the USB port on the CRio

    Is it possible to use a USB Keyboard or Barcode reader with the USB port on the CRio, I know you can use this port with a USB memory device, but what about other devices?
    I have a project that requires that all hardware elements be connected to the controller and use the HMI purely for display,
    anybody any ideas?? 

    Hi kmoyna,
    The standard CompactRIO range's USB host ports are not suitable for standard USB devices like keyboards or barcode readers - they are intended only for use of mass storage devices. From your description, it seems your project's requirements would be best met by the newer models, cRIO-9081 or cRIO-9082. These two units have Windows Embedded Standard 7 (WES7) and allow the direct connection of a monitor and standard USB devices. We now also have similar stand-alone CompactDAQ models running WES7 - cDAQ 9139.
    I would recommend calling into your local branch to discuss your project further with one of our engineers. If you're in the UK, it's 01635 523 545 - or view contact details for other branches.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Retina 13" macbook pro issue with defective USB ports?

    I have a late 2013 13" macbook pro with retina display. I'm having persistent issues with both USB ports. Connected peripherals like keyboards or external USB drives either will not be recognized at all, or will take a very long time (minutes) to be recognized by the system.
    I'm running the latest version of Mavericks OS X 10.9 (13A2093) at the moment, which includes the keyboard/trackpad firmware fix that addressed initial issues with this series of laptops.
    I took it to the local Genius Bar a few days ago and the Apple Genius was able to get an external USB drive to mount (eventually) on each port, but now it seems that waiting several minutes for the external device/drive to be recognized does no good.
    Is anyone else experiencing similar issues?

    Here is an example of devices you should see in the Device Manager. Can you check what you have?

  • My Apple desktop computer, 2.4 GHz Intel duo core, OS 10.6.8, stopped recognizing the WD My Book connected via firewire. It works fine with the USB port so it's not the drive. Help please.

    My Apple desktop computer, 2.4 GHz Intel duo core, OS 10.6.8, stopped recognizing the WD My Book connected via firewire. It works fine with the USB port so it's not the drive. Help please?

    It can be the bridge. It could need firmware update. or the FW ports may be an issue. LaCie seemed to invent the phrase/tip 'resetting firewire ports' due to the issues with their drive cases.
    You can try an SMC Reset.
    So far I have avoided name-brand and tend to see them mentioned. Often with a new OS (though you are on 10.6.8, but when 10.6 came out there was a common complaint and thread of users: FW or USB worked but not the other interface).

  • HT201210 I tried to update my sons ipod.  It has the itunes logo with the usb port on the screen.  If I restore I will loose all his games and music.  Is this my only option???  Help !!

    I tried to update my sons ipod.  It has the itunes logo with a usb port on the screen.  If I restore it I will loose all his games and music.  Is there any way around this??  Please Help??

    Yes, that is your only option.Yes.  You have to restore.
    Try the following if you have difficulty restoring.
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • Hi need a vi to communicate with a usb connecting to 4 sensors

    hello
              i m working with labview 7... and working on sensors(strain gauge type sensors).... my job is to communicate with a usb cable that is connected to those sensors without the help of drivers.. so i need a Vi for that.... and after that i need to physically look at the incoming data on the computer so another Vi for that... pls help me as my deadline is near

    hi dennis
    yes it uses visa... i m sending u the vi and the sub vi s also....have a look and help me furthere pls... my deadline is till this sunday...i would really appreciate ur help
    Attachments:
    Reset_Com.vi ‏27 KB
    Initialize_Com.vi ‏71 KB
    Close_Com.vi ‏22 KB

Maybe you are looking for

  • Free busy Issue

    I recently setup a lion server and i imported calendar data,  user data via backup and restore,  and wikis via the wikiadmin script.  I am a linux admin mainly butcomfortable enough with macs.  Anyways i noticed that free-busy is not working with the

  • Parameter form not displaying in 9i reports. Works fine in 6i!!

    Parameter form does not show up with any options mentioned in the cgicmd.dat. It works in 6i & surprisingly in 9i reports it doesn't. In 6i reports destype=cache shows the report output on screen but in 9i it doesn't, the report just sits in the cach

  • How do I burn a dvd in Premiere pro cs4

    Hi all, How do I burn a dvd in premiere without having to launch encore? I don't need menus or other dvd navigation features. Thanks for all your help Elio

  • Mp3 **to** wma (Yes, strange request)

    Does anyone know of a free ware tool that would convert an mp3 file into wma format? I'm about to get a new Verizion phone that plays music, but only wma's. Believe me, I'm not happy about this, but it seems that Verizion is not going to play friendl

  • Can't Use An OS9 App. Please help!

    i can't open an os 9 application file (a protools free project ) in the classic mode, and my powerbook g4 apparently doesn't support starting up in the native os 9 regime. what can i do? i need to urgently use the protools material i had once recorde