Comiucation computer usb with labview

Hi
I want to communicate us computer with labviwe but I don't know how can I do it?
Can you tell me please how can I communicate between computer usb and labview?
Thanks you .

The USB interface on the pcb has to be implemented by something. Do you have a microcontroller, or something like that? If you don't know much about USB communication, then this will be very difficult for you. In addition to the KB article I mentioned before, it would be worth your time to read this nugget: http://forums.ni.com/ni/board/message?board.id=170&thread.id=340676.
If you haven't implemented anything yet in hardware, you may want to consider chips like those sold by FTDI which can provide a virtual COM (serial) port interface for applications via their drivers.

Similar Messages

  • Can I programmat​ically control USB with LabVIEW?

    I have a requirement to test a USB device. The test includes powering several of the devices off and on, i.e., power cycling for several hours. My plan is to accomplish by using a USB hub, breaking out the power circuit and running it through a relay inside of a DAQ. A neater solution would be to programmatically turn the USB device off and on. I know that the computer communicates with the device under test via USB and not the USB port itself. So I’m wondering if it’s possible with LabVIEW to accomplish this.
    Thank you.

    I'm not exactly sure what Eric was referring to as far as ActiveX. If it's with respect to the operating system, you're not going to find any ActiveX interface with the OS to do this. Unless he was referring to software programmability of the hub? Don't know.
    With respect to power-cycling, a USB port can be disabled using OS calls. Thus, if you want to just turn off the whole hub you can disable the USB port that the hub is connected to. On Windows you can use a command-line utility called devcon to do this (search the forum as this has been mentioned before). The limitation is that devcon is not redistributable. This means that you cannot include it if you're giving this software to a customer. If, on the other hand you need to selective turn off the ports on the hub (i.e., to test individual devices), then you'd have to go back to the manufacturer of the hub and find out if they have a software interface to do this. Otherwise, it's the external power on/off approach via a relay or via a regulator as suggested by SnowMule.
    EDIT: Additional caveat: devcon may not work under Windows 7. You did not indicate what operating system you're using. However, the OS calls that devcon makes are still there.

  • Ant+ USB with LabVIEW

    Hello. Has anyone attempted to read sensor info via Ant+ USB into LabVIEW? I have some code that sort of works... regardless of whether I use the Dynastream provided driver or create a VISA driver using VISA Driver Wizard, I get the following errors in the LabVIEW VI "VISA Open":
    "The specified VISA resource is not a USB device"
    "Error -1073807346 occurred at VISA Open. Possible reasons: The given session or object reference is invalid."
    I've tried using both "VISA Defaults" and "Load Configured Settings" for the "access mode" of the resource.
    Any insight would be appreciated. LabVIEW code is attached. The main program is "Ahad_Vectorfinalpstruct_JFA" in JFA_Mod\Jamie.
    Thanks,
    -Jamie
    Solved!
    Go to Solution.
    Attachments:
    JFA_Mod.zip ‏151 KB

    Hi jfalesi,
    This is Roel in Applications Engineering at NI. Some more information about your project might be helpful in assisting you. Are you able to see the device in NI Measurement and Automation Explorer (MAX)? If so, have you done a self-test? If yes to this also, try using the VISA test panels to interactively communicate with your task. Before troubleshooting code, it is best to follow these steps to ensure that the computer can indeed communicate with the resource.
    Best of luck!
    Best Regards,
    Roel F.
    Applications Engineer
    National Instruments

  • Get license manager's computer id with labview

    hello, i want to get, with LabVIEW, the computer ID of the NI license manager (ActiveX?).
    Luc Desruelle | Voir mon profil | LabVIEW Code & blog
    Co-auteur livre LabVIEW : Programmation et applications
    CLA : Certified LabVIEW Architect / Certifié Architecte LabVIEW
    CLD : Certified LabVIEW Developer / Certifié Développeur LabVIEW

    This thread saved us a lot of (further) heartache trying to generate a disconnected license! When I go to "NI License Manager" and click "Display Computer Information", the License Manager crashes. That command line utility was able to spit out my 16 digit ID and give us the info we needed to activate my dev suite.
    In the future, if you are reading this... never hesitate to update old threads with helpful information!
    Thanks,
    Jack
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Can i control a digital photocamera trough the USB with Labview

    i want to control my digital photocamera with labview, so that i can take a picture on a labview command.

    NeoVista (www.nvsi.com.au) has an excellent toolkit for controlling Kodak digital cameras - maybe they could help?
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Usb with labview

    First of all sorry for my English. I would like to use labview for comminication with microprocessor. Until now iI'm using visual basic for this, specifically HID, not DLL. Do you know how can I use HID in labview?
    Thank you very much

    Hello,
    which is exactly HID? Is that a set of functions for Visual Basic to program microcontroller?
    To get started about LabVIEW and USB communication, you can see the following link:
    http://digital.ni.com/public.nsf/websearch/42B604435E3F9604862565E20043CD30?OpenDocument
    Inside, there is another link to Using NI-VISA to control your USB device
    crisR

  • USB with LABVIEW / VISA

    Hi all,
    I am a beginner in Labview. I had to develop a small prototype to read data from RS232. With VISA's functions and labview examples, everything worked fine.
    Now I would like to interface some USB devices by using similar VISA's components. In order to acquire skills in USB programming, I would like to build a simple program which for instance would get information on a simple USB device (as a USB KEY, or a USB mouse...).
    I already succesfully created specific visa drivers with the drivers wizard, installed them, see them with MAX.
    I studied the LV examples USBRawControl.VI and USBRawBulkMain.VI. But I do not succeed in getting any results. I guess I enter the wrong parameters in the example. Can anyone explain me a bit more how it works ? Or give me a set of parameters to test the LV example and get any results ?
    Thanks a lot.
    Jérémy

    No, there is no international standard in order to get/receive data from a USB device. That's exactly the problem. How the vendor implements a USB serial adapter could be completely different than implementing a USB storage device.
    You would need to ask the vendor about the data transfer mechanism - i.e. bulk or control pipe. Bulk is probably the simplest since you can just use a VISA Write or VISA Read so you would need a list of the commands to send and how the received data is formatted. This is what I used and since we wrote the firmware for the USB device, it was fairly simple. Look at the shipping example called USB - RAW Control to see how much information you need to read/write with this mechanism. If you got this to work, you would still need information on how to translate the control buffer data. I've never had to formally request this but you misght want to search the forum for posts regarding USB RAW to see if you can find more information.
    If you are getting a commercial sensor, then it is very likely that they have a dll available that can be integrated into multiple programming environments. In most cases, this is a much better solution than trying to develop your own VISA driver.

  • Usb Data Write in Mcb 2300 with labview

    Hi
    I have mcb2300 board.I want to write datas in usb with labview.How can ı do?
    Thanks for answer...
    Himmet GENCER
    Software Development Coordinator at Teknik Destek Grubu
    [email protected]

    Hi Himmet,
    Here are some examples and documents which may help but you are going to have to use C to program that USB communication through Keil
    http://forums.ni.com/t5/LabVIEW-Embedded/How-to-use-USB-interface-with-LabVIEW-Embedded-for-ARM/m-p/...
    http://digital.ni.com/public.nsf/allkb/1416FED9DA9F212F862576EB0075EDD6?OpenDocument
    http://digital.ni.com/manuals.nsf/websearch/956FF9313C8390E3862574CD00546682
    I hope this helps!
    Sam S
    Applications Engineer
    National Instruments

  • 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

  • Looking for a way to get my Product ID and Vendor ID so I can enable my Radium 49 USB MIDI keyboard to work with Labview 7

    Looking for the Product ID and Vendor ID for my Radium 49 USB MIDI keyboard to work with Labview 7
    Is there a tool to find out the Vendor ID and Product ID for a USB device?
    Example: of what I'm looking for
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The
    USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093)
    (that is decimal 4243).
    Thanks for all the fast responses this newsgroup RULES!!!!!!!!!!!!

    http://digital.ni.com/public.nsf/allkb/335A90747734097886257070006415B9
    How To Find The Vendor and Product ID for USB Devices?
    Primary Software: Driver Software>>NI-VISA
    Primary Software Version: 3.3.1
    Primary Software Fixed Version: N/A
    Secondary Software: N/A
    Problem:
    I want to make an NI-VISA driver that requires the vendor and product ID?
    Solution:
    There is a utility called USBView,
    free from Windows, attached below, which you can use to view what is
    connected to your computer's USB ports. It is necessary to load this
    program and connect the USB device in development. Upon selecting the
    device in USBView, one can then look on the right side of the
    application window to obtain the Product ID and Vendor ID. This will
    allow you to enter in the correct IDs when creating a driver .inf file
    when using the VISA Driver Development Wizard. For more information
    about how to use the VISA Driver Development Wizard see the related
    links below.
    Note: It is necessary to keep the hexadecimal
    (0x####) format. Do not remove the "0x" hexadecimal format preceding
    the ID number. 

  • Connecting Agilent DSO3062A Oscilloscope with LabVIEW using USB

    I am trying to connect Agilent DSO3062A Oscilloscope with LabVIEW using USB but the device is not recognized by MAX. I have installed the drivers for scope and it works fine with the scope software. The problem is LabVIEW dosen't recognize the scope. Please tell me the procedure of setting up the scope with LabVIEW 8.2. I am using Windows XP.

    Hi there,
    I think the issue is that the DSO3062A will not be recognized by LabView as a GPIB instrument through the USB connection. If you check out the 3000 series manual (http://cp.literature.agilent.com/litweb/pdf/D3000-97016.pdf) you'll notice on page 8 it says you can't use the USB for programming, it can only be used with their scope software. You need the N2861 module installed on the back to connect via GPIB, and then a GPIB interface to your computer. I hope that helps.
    -jmart

  • How do i let my iphone connect to my computer wifi with usb ?

    As the title stated,
    How do i let my iphone connect to my computer wifi with USB ?
    The reason is because my iPhone 3Gs wifi having some problem. So i have to use a USB cable to connect to my computer and let my iphone to connect to the internet .
    If i don't do this i would have to keep on running out & in to my room & my living room.
    My iPhone 3Gs allows to connect to the wifi when i am in my living room, but once i enter my room the wifi won't be able any more. So please help me out please people
    I'm not sure about why i can't connect to my Ad hoc even it's so near, but i can connect to my router if i am in living rooms.
    Regards,

    I believe the next time you sync your phone to itune via the cord, you will have to check the box that says sync via wifi and also enable that setting on your iphone.

  • When I restart my computer and hold the option key after creating a bootable usb with windows 7 and partitioning only the original partition shows up. Not the windows one or the bootable usb.

         Okay so first things first this isn't the newest macbook pro. When I open about my mac and go to system report it says it is a Macbook Pro 3,1 and the Boot Rom Version say MBP31.0070.B07. Originally when starting up Boot Camp Assistant there where only two options, the "create windows 7 bootable usb" was not there at all. So after some editing and helpful tutorials I was able to get the option show up and created a bootable usb with windows 7 and downloaded the support software onto a separate flash drive. Finally I did the last step and created a second partition for windows. Once the process is complete my computer automatically restarts.
         This is where the problem is. Once my computer makes the booting up sound it doesn't load up windows it gets stuck on a apple logo as if it's trying to reastart normally and can't. So I shut down and this time I hold down the option key during start up. It brings up the main partition and some recovery thing but no windows partiton and no bootable usb.
         I forgot to mention that I am running OS X 10.9.3. Okay any body want to help me out? Iv'e been at this for hours and can't get an inch closer to having windows. Please and thank you!
    P.S. If I missed a discussion that answer my question just point me to it. Iv'e been looking for a while, but who knows i might have missed one.

    The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.

  • WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable.

    WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable since I dont have rs232 ports. I have two instruments that I want to control in this manner. One is an Imada ZPS force gage with RS232 output. The other is a Panasonic HL-G103-S-J laser micrometer sensor which is RS422. I've done considerable LabVIEW programming using GPIB but I have no experience with devices like these. Any tutorial or examples would be greatly appreciated.
    Thanks.
    Solved!
    Go to Solution.

    I understand that you want to control a device which having RS 232 port as output. If so, you can use an USB-RS232 cable from PC to device and you can control or monitor the device.
    See this link http://zone.ni.com/devzone/cda/epd/p/id/2669
    Also, first check the device in hyperterminal and then continue to program in labVIEW. You can find the serial VI's in Instrument I/O.

  • Req any examples of how to use a USB midi controller​/keyboards with Labview TIA

    Req any examples of how to use a USB midi controller/keyboards with Labview TIA

    Hi,
    To access the MIDI ports you will need to call the Windows SDK. To send MIDI commands is relatively easy, here is an example that shows you how to send data to a MIDI controller or keyboard.
    As far as input goes, this is the hard part. There are a series of functions that you need to call to open up the device, set some buffers and and possibly a callback to get notifications on the incoming data.
    Reading MIDI data will not be an easy task, your best bet will be to implement this in a DLL and call that DLL in LabVIEW, there should be some code available o the web.
    = "http://msdn.microsoft.com/library/default.asp?url​=/library/en-us/multimed/htm/_win32_multimedia_... is a link to the Windows multimedia functions that you could use for MIDI input.
    Let me know if you have any further questions.
    Regards,
    Juan Carlos
    N.I.

Maybe you are looking for

  • Catalog validity period in SRM-MDM

    Hi I am using SRM-MDM v 7.1. In the subtable 'Catalogs' you can create a catalog name and specify the validity dates of that catalog: You can then assign a Catalog ID to each item in the main Catalog items table. The problem is that there does not ap

  • Printing quality problem with Photosmart D110

    The printing quality is very bad after we changed the catridge. The printer keeps saying that there is catridge jam. But after I followed the steps by the printer, the problem is still unsolved. What is the possible reason and how could I solve it?

  • Hyper-V NAT networking

    Hi everyone.. I'm educating myself within IT and I'm going to school at the moment. I've got the task of greating a virtual environment with a Windows Server 2012 and a client with a OS of my own choice (Win7 or 8). I'm using Hyper-V and wanna set up

  • List of tables count and Views count in schema wise

    Hi All, I want to get all tables count and views count in Schema wise, What is the query for that? Thanks in Advance.

  • Gcc 3.3.2 problem:  libgcc_s.so.1 not found

    I am trying to compile a perl module (Math::GMP) on a Solaris 8 platform. We have gcc 3.3.2 installed, and everything appears to go well until I try the following: % ldd blib/arch/auto/Math/GMP/GMP.so     libgmp.so.3 => /usr/local/lib/libgmp.so.3