Usb communicat​ion

Hello,
I wonder if it is possible to communicate with a microcontroller and a computer using usb. De controller had the usb function on board. I just wonder if it is posible with labview to show the data transmitted over the usb port.
Can someone tell something about it?
Tnx for helping me

VISA manual
Instrument control Tutorial
Instrument Control with the USB Hardware Bus
You could have found this info by searching the NI website.
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

Similar Messages

  • Labview : No USB communicat​ion with the DLN-2 adapter board.

    Hi,
    I am trying to use a Diolan DL2-N USB to I2C/SPI/GPIO adapter (https://diolan.com/dln2). This manufacturer provides Labview drivers for the board as well as example VIs. I just want to use them to access to all interfaces via Labview. After that I will design a test setup for our last product line using this adapter board.
    What i did:
    1) Fresh install of Labview 2014 (evaluaton version). System: DELL Precision M6800 (i7) , Windows 7 Professional SP1.
    2) Install NI VISA drivers and NI-488.2 drivers (14.0).
    3) Install manufacturer drivers as explained in NI website.
    4) Run Labview.  I can see instrument driver VIs under the Function Palette and run example VIs. So far, ok (I guess)
    5) Run NI MAX. No USB ports listed. Only COM1 and LPT1 (printer port).
    6) I ran some windows test apps provided by the manufacturer to access to all the interfaces of the NXP microcontroller in the DLN2. Everything works. I can read analog/digital inputs, force digital out values and use the SPI and I2C (I see the SPI/I2C frame sin a scope).
    I have spent one day going through different links in NI website (have watcheing almost every demo video on the site) and still are not able to guess why Labview can't see my USB device.
    Any hint?
    Regards,
    Jose
    Solved!
    Go to Solution.

    Hi again:
    I' m putting pressure on the manufacturer to provide support, but still I have some very basic questions that I think a Labview expert should be able to answer.
    Attached are the driver files provided by the manufacturer along with install instructions (which I do not fully understand). I assume the iinstall description is based on a standard procedure to install third party instrument drivers , but still don't know what to do with the dln.net.dll file (I just copied it in the /Labview 2014/instr folder). Any hint?
    The manufacturer website says that the driver has been developed for Labview 2012 . I' m using Labview 2014, and assuming backward compatibility. Is that correct?.
    One more question: Is there a way of seeing within Labview which third party instrument drivers do you have installed? 
    Regards
    Jose
    Attachments:
    DlnLibrary.Net.llb ‏574 KB
    readme.txt ‏2 KB
    dln2_drv.zip ‏338 KB

  • USB Communicat​ions specificat​ion and monitoring

    I want to debug my legacy HP USB printer and want to understand the USB traffic.
    Does anybody have a USB protocol monitoring tool or communications specification or know anything about how to go about this.
    I am looking for C/C++/C#/VB code Visual Studio for a project under Windows XP/Vista/7 so I can drive the printer myself.
    This is purely a I want to know how to do this project. Any help in getting started would be helpful, otherwise I am going to waste a lot of time sending instructions and seeing what kind of response I get, and I would rather skip over that stage and get to the interesting part.

    Chris,
    I checked the names in MAX, they appear to be idential to the ones on the old machine.
    Brad,
    The NI 9472 ditital module turns its ditital channels on and off when commanded by the executable VI.
    The NI 9265 current output module does not output any current when commanded by the executable VI.
    The NI 9203 current input module does not return any values to the executable VI. All indicators read NAN.
    The VI runs fine - there are no error messages.
    All three modules work fine in MAX.
    Thanks in advance for helping me out with this one... it's driving me nuts.
    Attachments:
    Capture.JPG ‏49 KB

  • Using existing c code for usb-hid communicat​ion in labview

    Hello,
    I want to write a simple temperatrue logger using labview and a external hardware which communicates over usb-hid. The external hardware uses an ATMEL 90USB162 µC and DS18B20 sensors.
    Link to the hardware:
    http://www.diamex.de/dxshop/USB-Temperatur-Sensor-​Tester-fuer-DS18B20
    The source of a a simple command line tool is available (see attachement), which reads out the temperature value of the connected sensors.
    Is it possible to include this c-code in the labview application to simplify the communication?
    Thanks a lot and best regards,
    Michael
    Solved!
    Go to Solution.
    Attachments:
    CMDLINE.zip ‏17 KB

    I'm not that experienced at this personally (in terms of compiling C code into DLLs), but I believe the process you need to go down to call your C code in LabVIEW is to compile the C code into a DLL which you can then call from LabVIEW using a Call Library Function node (or you can try to use the "Import Shared Library" wizard to automatically generate SubVIs).
    There's more information here:
    http://digital.ni.com/public.nsf/allkb/DCB90714981​A1F148625731E00797C33
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • USB RAW Control Communicat​ion in LabVIEW

    Iam trying to open the zipped file by NI "USB RAW Control Communication in LabVIEW".The VI is attached below.It recognized my raw device in VISA Resource Name.Iam using a pendrive.But while running it shows an error 'VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.'I learned this problem from some discussion forums in labview,but can't find a solution.Plz help.Post your valuable suggestions........Also in that example how we will give the request,request type,value,index etc:-.What does it indicates?
    Thanks as kudos only
    Attachments:
    USBRawControl.vi ‏152 KB

    STOP creating multiple posts for your question!
    http://forums.ni.com/t5/LabVIEW/Requirements-to-re​ad-from-a-USB-port/td-p/1959445

  • Gamry potentiost​at and USB 6008 communicat​ion

    I dont really ever do any labview programming from scratch so my understanding of it is very basic. However I need to do the following and I was wondering what would be the best way to go about it.
    1. Run Gamry potentiostat (ref600) which at the end will send a digital signal out.
    2. USB-6008 used to read the digital signal
    3. Put a delay of around 10seconds.
    4. Run "motor control" VI.
    5. Put a delay of around 10seconds.
    6. Send a digital signal out.
    7. Gamry reads the digital signal and goes back to step 1.
    run this N number of times.

    rudresh wrote:
    Hi Wes,
    Thanks for the reply. It looks like I need something very similar to Simple state machine. However, I am using labview8.6 and was wondering if a similar example is available for the older version.
    Thanks again,
    Rudy
    Downgraded to LV8.6 for you.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    State Machine Example Project.zip ‏23 KB

  • Comment créer une communicat​ion entre labview et "usb-1208l​s"

    Je viens d'installer le logiciel de "USB-1208LS" sur mon ordinateur mais j'ai envie et j'airéussi à voir des signaux mais seulement j'ai envie de communiquer entre mon logiciel et labview en gros j'ai envie de récupérer ses données sur labview je ne sais pas comment procédé mais je sais quand même qu il est compatible avec labview. Merci!

    Hello,
    You're in the english part of the forum, next time make sure your posting on the french forum.
    To acquire Data from your USB-1208LS device with LabVIEW, you'll need to install the driver API for LabVIEW here:
    ULx for NI LabVIEW
    http://www.mccdaq.com/daq-software/universal-libra​ry-extensions-lv.aspx
    And there a link to learn how to use it with LabVIEW :
    DAQ-Software-Quick-Start
    http://www.mccdaq.com/PDFs/Manuals/DAQ-Software-Qu​ick-Start.pdf (refer to p29)
    And another documentation to implement different functionnality and programming in LabVIEW
    Getting Started with NI LabVIEW Student Training
    http://zone.ni.com/devzone/cda/tut/p/id/7466
    Hope you'll find every information you need
    Best regards
    Victor F. | Application Engineer
    Certified LabVIEW Developer | Certified TestStand Architect
    National Instruments France

  • USB 8451 SPI Communicat​ion

    Hi All,
    I am tring to write SPI 16 bits command to TI TLV5638 DAC.
    Labview examples are for 8 bits only. can anyone help me?
    Thanks,
    Eliran. 
    Message Edited by Eliran11 on 06-29-2008 02:44 AM

    Hi Eliran,
    The USB 8451 supports only 8 bit communication.
    This KB has a suggestion on how to implement 16 bit commands. "The approach you would take when writing or reading a 16 bit number is
    to write or read a byte array of length 2. You can use a Type Cast to
    convert back and forth between arrays of 8 bit integers and arrays of
    16 bit integers."
    Hope this helps!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer

  • Remote testing of USB Peripheral Communicat​ions

    There are products that do USB loopback testing or do USB diagnostics from a DOS mode boot. If I could run a utility from a DOS prompt that provided diagnostics I could parse that'd be better. Microsoft also has a utility USB View which sounds promising, but it provides status with screens and nothing parseable from what I can tell.
    My challenge is to connect to an embedded system's various USB ports from the host PC conducting the tests and determine whether each of the ports is working. I need something more like an API that I can call functions from within LabView and determine programmatically whether each port is functioning. Sending some simple commands with responses would be enough. Has anyone any ideas on whether this could be done from LabView or am I facing some lengthy API function calling to accomplish this? Other approaches are also worth considering if they meet my limitations.

    How about plugin a thumb drive, wait a few seconds and let LabVIEW scan your computer for a file on the root of the drive.  If it finds it then port works, if it doesn't then it doesn't.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Can Ideapad Lynx k3011 micro USB port use for data communicat​ion?

    Greetings,
    I would like to connect on one end an VAG-Com USB dongle (http://www.ross-tech.com/vag-com/hex-usb+can.html) via a Micro USB adaptor to the tablet and the CAN bus to my car on the other end to turn some car features on and off. Can the Micro USB port on the tablet be used as communication device to achieve this?
    Thanks,

    Just check ebay or http://www.parts4repair.com/brands/Sony.html
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Communicat​ion USB

    Bonjour ; 
    S'il vous plais ;  je developpe une interface LabVIEW pour controler un variateur de vitesse (0-100hz ) et affiche la frequence courante , j'ai pas compris ce qui manque ce programme  (Attachments: ci join )? , il m'affiche ERROR à chaque fois  !  
    Attachments:
    question furom.png ‏59 KB

    Help >> Explain error >> -1073807346
    Il semble donc qu'il y a un soucis avec le port sélectionné ou avec le périphérique.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • 6500a e710 a-f - Scanner Communicat​ion Error Windows 8.1

    We have been experiencing issues with scanning whilst connected via USB, using the HP Scan software. The software returns an error message saying scanner communication cannot be established, half way through scanning. Then HPScan.exe fails to load again. The printer just says “scanning cancelled” on its display.
    This is only effecting one model of PC and that is a HP 8300 Ultra-Slim PC.
    We are running Windows 8.1 64 bit from an image install. However, I have tested this with a fresh Windows 8.1 retail installation and get the same problem.
    We have tried various actions to fix this:
     - Various accounts, admin accounts, domain admin accounts, local accounts etc.
     - Uninstall and reinstall. Basic and Full driver packages including the latest versions
     - Removed all other HP software from PC including registry keys
    - Used built in Windows 8 scan software with basic driver
     - All USB ports tested including 2.0, 3.0 and powered / non-powered
     - Replaced cables
     - Re-isntalled USB bus drivers for 8300
     - Followed the print/scan doctor which shows a driver error - scandriver unable to communicate with product
     - Run HPScan in compatibility mode for 7/XP
     - Updated firmware on printer
     - Installed latest Windows Updates
     - Checked WIA service and dependencies are running
     - Semi and Full factory resets on Printer
     - Shell hardware detection service set to manual
     - We have replaced the printer for an affected user - same issue
     - Also replaced PC for an affected user - same issue.
     - Updated PC BIOS
    I have tested connecting the printer to the router with a network cable and then installing printer as a networked device rather than USB and then the hpscan.exe works. So this is only an issue with USB (though it wouldnt be practical to try and talk 200+ users through networking their printer).
    As you can see, we have tried almost everything. Interestingly we havent been able to replicate this issue in one of our main offices - despite collecting the same PC and Printer from an estate and bringing it back to an office.
    We have also sent out a working PC and Printer combo to an affected estate office and it has not worked there.
    Our Estate Offices connected via an ADSL Router and "My Documents" are re-directed to a network location. Could a failure in accessing this network location cause the problems? I have tested connectivity to network store from PC and it accesses the files fine.
    Any solutions would be greatly received, I have spoken to HP After Sales support but not received an working solution yet.

    Greetings, @Scammell29
    I have read through your post and have very ideas left for you, as you've tried quite the load of troubleshooting!
    I am thinking the issue could be power related, so try a power reset and plug the printer in directly to the wall outlet. Avoid power bars, surge protectors, etc. Just a direct plug in to the wall to test the power. Afterwards, see if you still receive the communication error.
    If the issue continues, next try a disk cleanup, the instructions are included in this guide: A 'No Computer Detected' or 'Connection Error' Message Displays during Scanning for HP Officejet 650...
    If the error still persists, perform a Clean Boot and restart the PC and then disable the Firewall and Anti-Virus scanners.
    Please let me know the results!
    Good luck
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Problem with serial communicat​ion PLEASE HELP

    Hello everybody !
    I'd like to ask You for some feedback on my wierdo problem that I got with my program.
    I have built a device that detects changes in magnetic field. It is used for detecting vehicles passing it on a highway. Generally the main components communicate with each other by RS-485 protocol, but I would like to connect the device to a PC. To do so I am using a RS-232 protocol (I have a RS485=RS232 hardware converter).
    Now, I made the program (even two), which generally works, BUT some wierd things are going on sometimes; it happens that I have a problem to get a communication (after that, resetting the device by un-powering it helps, sometimes I have to restart the PC as well) but overall it happens quite not so often. The project itself is for passing one of my subject on the university - so I have to run the whole thing over there, here comes another problem : the program did not work on all of the bunch of PC's that are there. Same thing happens on my notebook. The effect of 'non working' is : I am recieving same data packet that is beeing sent... BTW : notebook does not have a RS232 port and I am using a USB-RS232 calbe converter (to count it out from the reason of problems I have checked it on my main PC and it works almost fine - almost because ocasionally I am getting the same sympthomps as I mentioned before ).
    Other problem is, when it works, that I am loosing communication for couple of hundreds of miliseconds and then it comes back to normal (i can see it on the osciloscope).
    I alredy looked for some answears here and there, and I found some suggestions about using 'buffer cleaning method', unfortunatelly I kinda do not know how to do it, and might that help anyways ?
    I also thought about using VISA drivers, but I am having trouble with it as well - the damn thing just does not work.
    My very bling guess is that everyting that I am expierencing is about using the communication protocol and seting it right. I am attaching both of the programs, PLEASE anyone pretty pretty help I totally ran out of ideas and knowledge and day after day I am turning it on and off on my PC and notebook hoping some miracle will occour ... 
    Many many thanks in advance !
      Best regards
                    Tom
    P.S. the program is very unfinished (man things are just put in), the main thing I am struggling now is getting, and setting the communication protocol right.
    Attachments:
    detektor_3_2.vi ‏141 KB

    The biggest problem I see is in the sequence:
    Write out a string.
    Wait 50 mSec.
    Ask how many bytes have been received.
    Read that many bytes.
    Can you guarantee that the data can make a round trip in 50 mSec?
    You should know that the SERIAL PORT WRITE completes NOT when the data has been sent out the port, but when it has been BUFFERED for sending. In other words it returns and starts the timer BEFORE it is actually sent.
    Also, given that there are 232 -> 485 --> USB conversions involved in both directions, I would bet that you are sometimes not allowing enough time for the data to get back.
    If you can control the protocol of what gets sent back, I would change your receiving logic. I think you should check for a carriage return or some other delimiter, and not react until you get that character (or until a reasonable timeout expires).
    In other words, try synchronizing the two ends. Something like:
    N = Get # bytes at port
    Read N bytes from port (flush any characters waiting).
    Write out command string.
    TimeLimit = NOW + 1000 mSec (or whatever)
    S = ''; (Working string)
    repeat
    N = #Bytes at Port
    If N > 0
    S = S + Read N Bytes
    Found = Search String for Delimiter
    until Found or (Now > TimeLimit)
    If Found, parse string S
    You are also re-initializing the port (SERIAL PORT INIT) every time thru the outer loop - that's unnecessary.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Help with HID communicat​ion

    Hi can anyone help with this. Iam new to labview. I have recently purchased a transmitter for an oxygen sensor. this transmitter appears to connect to my PC as a HID device. Iam having difficulty gaining any information from the manufacturer up to now apart from that in the instruction manual it says that real time data is streamed via the USB. can you give me any advice on how to initially connect to the device and read what ever data is being streamed ?

    Hi
    I finally recieved some communication information from the manufacturer of the transmitter (previous version though) i am trying to communicate with. just a little bit limited in my opinion. And confusing to me. Could you point me in the right direction if that is at all possible. I have attached the information.
    Thankyou.
    Attachments:
    USB Port Communications.doc ‏51 KB

  • Communicat​ion failure

    My printer used to print properly until 15 days ago. Now everytime i try to print something I get the error message "
    Communication Failure: The computer is no longer able to communicate with your printer. Turn the printer off, check your printer connections and check for printer errors, and turn the printer back on.
    Paused."
    I tried everything follwing the same steps I found in the support comunity regarding the same error but no success! Please help!

    Hi Renata1974,
    Welcome to the HP Forums!
    I understand that you are getting a communication failure with your printer, and I am happy to help you with this communication issue!
    For further assistance, I will need to know:
    The Product/Model Number of your printer. Follow instructions in this link. Finding Your HP Product Model Number.
    If you are using a Windows or Mac Operating System. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, Ethernet, or USB.
    If the printer is able to make copies by itself.
    If the power cable plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    In the meantime, if you ar eusing Windows, please try our HP Print and Scan Doctor, and let me know what happens.
    Hope to hear from you, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

Maybe you are looking for

  • Photoshop CS4 stopped launching, no error message. Mac os 10.5.8 on PPC

    Hi all, I´m using Photoshop CS4 on this computer (Powerbook G4 PPC with OS 10.5.8, 10 GB HD free, 1.5 Gb Ram) without problems since 3 years ago. 2 days ago it stopped suddently working. It just doesn´t launch, without error message. On that days I w

  • OBIEE11g Implement Security on Value Based Hierarchy

    Hi All, I have a requirement to implement a security on hierarchical values on parent child hierarchy. Ex. Manager -> Employee -> Employee. Here, based on security requirement, Manager/Employee can see the respective hierarchy. If user is at 2nd Leve

  • How to get request throughput, requests waiting data ?

    i'm trying to get the request throughput and requests waiting data real-time data through management mbeans... but i couldn't find any mbean that has methods relate to requests data... if you know how to get these data, please help...thanks a lot in

  • Strange Box Around Flash File IN PC I.E.

    I have a strange box that appears around my flash file when viewed using PC Internet Explorer 6.2. Thhe box appears when the page loads and does not go away until you click on the flash, once you do that you can access the buttons and the box goes aw

  • ABAP tcodes for PM consultant

    hi i am new to plant manitenance modules .. what are the transaction PM consultant should be well aware of from point of view of development abap