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

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.

  • 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.

  • 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

  • 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.

  • 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. 

  • Are USB-6008 drivers available that make it compatible with LabVIEW 6.1?

    I'm using a USB-6008 Multifunction DAQ, but it is not compatable with teh version of LabVIEW I'm using, 6.1. I may be able to upgrade to LabVIEW 7.1 to solve the problem, but I wanted to know what alternatives I have. Are there any available drivers or patches that allow the USB-6008 to be recognized by LabVIEW 6.1?

    Unfortunately, no. The driver for the USB-6008, DAQmx Base 1.5 is only compatible with LabVIEW 7.0 or newer.
    -Alan A.

  • Control a usb missle launcher with Labview

    I have bought a toy named "usb missle launcher"
    The control software have a dll named "hiddog.dll"
    how coul i use the hiddog.dll with labview  
    that is mean
    how coul i control the usb missle launcher with labview
    Attachments:
    Missile Launcher.zip ‏2384 KB

    The Call Library Function Node will allow you to call a DLL. To do so, you need the documentation on the DLL. This documentation would list the functions as well as the arguments for those functions (i.e., inputs and outputs). There does not seem to be any documentation in what you uploaded. Actually, I have no idea what you uploaded, aside from the fact that one of those files was the actual DLL.

  • 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

  • Controling heating/cooling element with labview and usb 6008 DAQ card

    Greetings All
    I'm looking for a heating/cooling type of element that I can control with labview and my usb-6008 card. Heating/Cooling will just be for clean water and the temperture range will be from 0 C to 100 degree C.
    Thanks
    The heating and cooling elements can be seperate products. Any recommendations

    A simple kettle element will of course be sufficient for upto 100°C
    To get the temperature down you need a cooling system, what springs readily to mind of course is a refrigerator.
    Just a note of warning, water and electricity are dangerous bed fellows.
    On that note perhaps one of those vortex air units would be safer - they blow hot in one direction and cold in the other, nominally to 100°C
    see: -
    http://www.airtxinternational.com/how_vortex_tubes_work.php

Maybe you are looking for

  • 2nd Monitor

    2nd monitor switches itself off after approximately 30 minutes and then goes on/off intermittently every 10 mins. No particular pattern, but wonder whether heavy graphics work in Photoshop CS4 is a pointer? Unable to use the EIZO monitor for work. Al

  • ABAP code and konfiguration for consuming secure web services

    I need some help/links on how to create an abap program (on 4.6 or WAS 620, or 640 if not possible in older releases) to consume a web service with authentication using certificates based on WS security  (<a href="http://www.oasis-open.org/committees

  • Problems using ClassSelectionParser

    Hi folks, I have 9iFS on SUN SOLARIS on a 9i Database usend webui from WIN- NT. I have problems in parsing with the ClassSelectionParser. I used the examples on pages 9-15 - 9-17 Developer Reference, but when I upload a file via browse through webui,

  • HT1386 Why do I have duplicate songs after syncing?

    Whenever I sync my phone, I notice some of my songs are duplicated? Also, my playlists dont transfer to phone but are still on my computer

  • 2004s - Opening Report in New Window

    Hi there One of the buttons on our toolbar is a button to open the report in a new window. This provides functionality to allow the user to open the report without all the menus that EP adds on. It should be really simple, all I need to do is add tar