ConexiOn microcontrolador labVIEW por usb

Buenas tardes, estoy realizando una aplicación en la cual debo comunicar un microcontrolador (jm 60 de freescale) con labview por USB. Quice hacer primero un programa sencillo que permitiera enviar y recibir un byte, pero cuando lo corro me aparece un error. Este error está numerado como -1073807302, del cual no encuentro solución. Anexo mi programa y agradezco mucho la ayuda que me puedan brindad. Muchísimas gracias.
Adjuntos:
ComunicacionUSB.vi ‏14 KB

Hola  AndresAGA77,
Efectivamente como te comenta pcortes, este error se debe a una mala inicialización del puerto USB, sería cuestión solamente de realizar la configuración adecuada.
Otra opción, dado que por lo que comentas deseas hacer pruebas iniciales, puedes utilizar el ejemplos de USB Raw - Interrupt.vi, este VI lo puedes encontrar abriendo: Help >> Find Examples (se abrirá una ventana llamada NI Example Finder) >> Seleccionamos la pesta Search >> Esbribimos "USB" en dónde dice "Enter keyword(s)".
A la derecha encontrarás los ejemplos de USB, te recomiendo pruebes con USB Raw - Interrupt.vi y más a la derecha encontrarás información adicional del ejemplo.
Sin embargo, es necesario que configuremos nuestro dispositivo USB, te dejo el siguiente link que explica cómo hacerlo:
http://www.ni.com/white-paper/4478/es/
David P.
National Instruments
Ingeniería de Aplicaciones
www.ni.com/soporte
David P.
National Instruments
Applications Engineer
www.ni.com/soporte

Similar Messages

  • Porque no carga el ipad 4 por usb del ordenador

    porque no carga el ipad 4 por usb en ordenador ni adaptadores usb de coche

    Lo tengo enchufado al ordenador todo el dia y da el 100% de bateria.
    aunque el ipad marca ( no se esta cargando ), sera porque le da la alimentacion para el consumo pero no carga la bateria, aunque si cuan lo utilizas en el ordenador no le baja del 100%
    espero que nos haya sido de ayuda.

  • 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

  • PWM por USB-6008 en Labview 7.1

    Saludos a todos, mi problema es que necesito controlar 5 servos de un brazo robot que ya tengo armado y quiero sacar las señales PWM por medio de la USB-6008, solo dispongo de Lavbiew 7.1, ya genere las señales pero no tengo la menor idea de como enviarlos, por favor si tienen algun ejemplo les agradecería que me lo colocaran como imágen pues no puedo ver los ejemplos de versiones mas recientes de Labview, gracias por su pronta respuesta ya que debo entregar el proyecto antes del 15 de noviembre  y es requisito para mi graduación de Ingeniería Electrónica.

    Hola Coky aquí el problema es en sí que estás trabajando fuera de las especificaciones de la tarjeta 6008. Esta no cuenta con un reloj interno por software por lo que tanto las salidas y entradas digitales como las analógicas están controladas por software. El control por software lo mas que te puede dar es un loop de 1ms, por lo que en el periodo de 1ms que quieres madamas podrías actualizar la señal 1 vez. La velocidad que puedes alcanzar por software es de 1khz.
    Mas que utilizar dos tarjetas 6008, te recomendaría utilizar una tarjeta más completa por ejemplo una que utilice contadores, o una tarjeta mas rápida como la NI USB 6211, que además cuenta con contadores y te permite trabajar a 250kS/s, y el timing interno es por hardware.
    Otra opción es que a través de tus salidas digitales controles componentes como un 555 y que con este controles tu servo.
    Saludos
     

  • 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

  • How to generate a bipolar pulse train in LabView using USB DAQ 6211?

    Hi,
    I am setting up a system to generate either a single square pulse or a train of square pulses using LabView, with controls to adjust the frequency, amplitude, number of pulses etc. I have had a lot of help from NI tech support setting up the actual VI itself which seems to be working fine, and outputting the pulses via a USB DAQ 6211 using a square waveform generator and the AO1 channel on the DAQ.
    The problem that I now have is that I need to pulses generated in a train to be bipolar (as they are connected to electrodes so need to be bipolar o avoid salt build up on the electrodes from the voltage going in one direction only, at least that is how I understand it!).
    How can I set up my LabView VI to generate a bipolar pulse train instead of always being positive voltage? I am new to this area and so am trying to learn but there is so much to learn!
    Thanks,
    spamjam

    Hi Shalini,
    Apologies for taking a while to get back to you, I hope I can explain what it is that we need to create with the pulses. I understand what you mean about the existing pulses having a positive and negative on the graph - but we need the pulses to start from a resting voltage and the first pulse to be positive, then back to zero, then the second pulse to be negative then back to zero etc. This is to do with reversing the direction of the current between two electrodes to prevent build up of salts on one electrod from the current always passing in the same direction. 
    I have attached a .Tif file to this post to try to illustrate what I mean - the top picture shows how the pulses are currently generated, then bottom on is what we would like to produce if this is possible?
    Thanks for your help,
    Spamjam
    Attachments:
    Slide1.jpg ‏38 KB

  • Taking a picture in LabVIEW with USB camera

    Hello:
    I am trying to find a way to use a Logitech USB camera (or potentially a different USB camera - perhaps a more expensive Edmund Optics camera) to snap a picture in LabVIEW. I have NI Vision software installed as well as the IMAQ USB extension for Vision, but I'm not sure where to go from here. All I need to be able to do is to snap a photo within LabVIEW and have LabVIEW save it onto the hard drive. Any help would be greatly appreciated.
    Thanks,
    Brad

    Hi Brad,
    Some of the information in the thread linked above may be out of date.
    Check out this article [Acquiring Images in LabVIEW Using a USB or an IEEE1394 (FireWire) Camera] for some advice on how to snap your pictures. If you already have the NI-IMAQdx drivers, you should be able to use these for acquisition (as long as the USB camera is DirectShow compliant).
    If you do not have the NI-IMAQdx drivers, but you do have the Vision Development Module you will be able to download the Vision Acquisition Software which includes these drivers. The vision acquisition software can be found here: http://www.ni.com/nisearch/app/main/p/bot/no/ap/te​ch/lang/en/pg/1/sn/catnav:du,n8:13.79.7820,ssnav:s​...
    I hope this helps!
    Matt
    Matt
    Product Owner - NI Community
    National Instruments

  • LabVIEW 7 USB Camera

    Has anyone tried to use the new USB functions in LabVIEW 7 to capture an image from a USB camera?

    Hey JVS,
    You can try and use the NI-IMAQ for USB Cameras driver to bring the images in, but this driver requires that the USB image device have DirectShow support.
    If this does not work for you, then the hardware that you would like to use has to have some form of API that LabVIEW can communicate with. If it does, then you can just use a call library function node to call into the Pinacle software for it to return images to LabVIEW. Or you can try to use ActiveX to bring in the images. Last, you could check with the hardware manufacturer to see if they have any LabVIEW support or VI's that will allow their hardware to work with LV.
    If the above doesn't work for you, then you might have to save the images to disk and then use the Vision Software to open the images from the files. Or you could display them by using native LabVIEW functions.
    I hope this helps. Please let us know what your final solution is, so that others who would like to interact the same hardware with LabVIEW will be able to find a solution easily. Also, let me know if you have any further questions or concerns. Thanks, and have a great day.
    Regards,
    DJ L.

  • Connecting Labview to USB in Isochronous mode

    hi
    its metionned in the the document "Using NI-VISA to Control Your USB Device" that NI-VISA supports only control, bulk and interrupt pipes,
    what about Isochronous?
    how can i use NI-VISA to ceate a driver for a USB device Using Isochronus pipe?
    is there a way to connect LABVIEW to an USB device without using NI-VISA?
    the device has the ISP1583 from Philips as a USB controller
    your help is much appreciated
    Naji

    Hello Naji,
    No Isochronous transfers are not supported.  See this KB for more information about it.
    Good luck with your application.
    Regards,
    Angela M
    Applications Engineer

  • 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

  • LABVIEW programming USB communication with TDS2004B scope

    Is there anyone who has already programmed USB communication with Tektronix TDS2004B digital scope in LABVIEW?
    If that is the case, could it be possible to send me a basic vi that works?
    Thanks.
    João.

    National Instruments has a great library of drivers for various instruments. Most of these include programming examples.
    The drivers are searchable at www.ni.com/devzone/idnet
    The driver for your instrument is available here.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Does LabVIEW have USB Support?

    Can I read/write to a USB port using LabVIEW?

    Hi
    USB is a bus. You cannot write/read to/from the PCI bus through LV, and the same is with USB. There are no read/write VI's. It's not to compare with RS232, where you have read/write VI's in LV.
    Check this link for further informations:
    http://digital.ni.com/public.nsf/websearch/42B604435E3F9604862565E20043CD30?OpenDocument
    Regards,
    Luca

  • LabVIEW and "USB to 1-wire" (DS2490)

    I have made an "USB to 1-wire adapter" using DS2490. I can communicate with the DS2490 using USB standard requests, but I'm having a hard time getting data from the device attached to the DS2490 (i.e. DS1820). I'm using LabVIEW 7express.

    Hi,
    I did a little searching around on the Dallas Semiconductor website, and from App Note 177, it looks like the driver has a TMEX and OWCOM API. You can probably implement code to communicate to your hardware and then access that code via Call Library Function nodes or .NET calls in LabVIEW.
    Also, I'm not sure how different the 2-wire communication protocol is to the 1-wire, but DS has App Node 215 with example VIs to show how communication to a 2-wire device can be done. If you have the control commands for the device, you can also just write your own VISA commands (as that App Note 215 demonstrates) to communicate to your device. There are also a couple VISA examples that ship with LabVIEW for you to take a look at.
    Hopefully some of this will be helpful. Good luck.
    Kileen

  • Does LabVIEW support USB 2 interface?

    I need to transfer data from the USB port 2 but I'm thinking of using LabVIEW for interfacing. Does LabVIEW support USB2?

    Yes, you can talk to USB devices using the LabVIEW 7e VISA VIs (see the attached image of the VISA USB Function Palette).
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
    Attachments:
    VISA_USB_Function_Palette.gif ‏38 KB

  • Not receiving any signal input with LabVIEW SE, USB DAQ board

    Hello all, good afternoon.
    I am having a little trouble with my DAQ device, I hope that someone will be able to help me.
    I'm plugging a BNC pH sensor to a NI USB 6251 M-series board, to try and obtain the electrical response of that particular sensor, measuring the voltage output for each buffer solution (pH 4 and 7). Have 9.2.3 mx (lastest) drivers.
    The pH sensor (floating) is plugged through a female BNC plug to the circuit board, signal is going through a signal conditioning  circuit (composed by a voltage follower on each of the wires to lower the output impedance of the sensor, and 2 bias resistors from AI+ and AI- connected to AI GND with the board case wired to the power supply ground, as seen in http://zone.ni.com/devzone/cda/tut/p/id/4494)
    I'm measuring in differential mode, as I said both wires of the sensor are going through a voltage follower each, and into the DAQ board. The Op-amps are being powered by +-15v as seen, again, in http://zone.ni.com/devzone/cda/tut/p/id/4494
    I did take the time to read the manuals and tutorials I found, did quite a bit of investigation over the last few days, and wired the system carefully.
    In labview signal express, I choose to take an analog voltage read, and select input range from -500mv to 500mv, because the sensor should output at most -400mv to 400 mv
    Now, much to my dismay labview registers in that channel absolutely nothing, only a little noise (~1 mV). I unplug the sensor and realise that whether the sensor is connected or not, it doesn't make a difference in the presented output - it's as if it the sensor wasn't there at all. And yes, I am measuring the correct channel. I tried connecting the wires to different AI channel pairs as well, could be a faulty one, but no success either.
    If I plug a voltimeter to the wires that are going into the analog inputs (after conditioning), it measures about 50 mV, which is a lot more than the 1 mV the board is measuring, but a lot less than the ~180 mV I should be measuring with a pH 4 buffer solution.
    I know for a fact the problem is not the sensor, and the DAQ board seems to be fully operational.
    I think it might have to do with the signal conditioning I'm doing, or some sort of configuration with the hardware of the DAQ board.
    So, any idea what I might be missing?
    I'm a week behind schedule because of this, hopefully I will find my answer here.
    Thank you very much in advance!

    Good afternoon.
    Yes I have tried all of that. The board responds very well when a flat 5V DC voltage is fed into a channel.
    However after much investigation I believe to have found the problem yesterday, it probably has to do with the operational amplifiers I was using. The input bias current was in the magnitude of nanoAmps, while for pH measurements an IBC of picoAmps or less is necessary due to the high impedance of the sensor. This was causing a drift of over 100 mV on my output which is about 2 pH and thus unnacceptable (even though I had the Bias resistors at the input to ground, like suggested in the NI tutorials, but apparently they were not enough to compensate for the high IBC).
    In the lab all available op-amps suffer from this, even Instrumentation op-amps like AMP04 from Analog Devices. I still haven't had a chance to acquire new op-amps with the necessary IBC but hopefully it will do the trick. Makes sense since I checked the datasheets for every op-amp in the lab, and they all had IBC around 400 nanoAmps (and none of them worked), while every single op-amp for every pH meter circuit I found have IBC's of pico/femtoAmps.
    The sensor I'm using is from AquaMedic, I'm not sure what the model is, but it's a cheap plastic sensor that comes bundled with their pH Computers.
    Thank you very much for your input.

Maybe you are looking for

  • How many kbs (what size) is Photoshop and also Creative Cloud to Download

    Hi Adobe, I have 5gig of internet allowance per month. I want to download Photoshop free trial and wondering how big the programe is to download and how many kbs it would use. Also I want to get Creative Cloud in the future, how big is that to downlo

  • Connecting iPod nano to mic input

    I want to use an iPod nano (1st Gen) for an input into a wireless microphone transmitter. I haven't hooked it up yet. My concern is matching the impedance of the mic level input with the output of the iPod. I don't want to just do it without first ge

  • Can slide objects be customised across slides through one command?

    I have 2 questions regarding editing multiple slides. 1. Is it possible to change the default position and size of the slide numbers? Or if I change the size of the slide number to say, 36 and place it top centre, can I use that as a master for the r

  • How many bytes are transferred for a SQL statement?

    Hello! I switched on a buffer trace. Where can I see how many BYTES were transferred for an executed SQL stmt (if the bufferd table had to be accessed on the database in cause of an invalidation)? What I can see is the duration... Thanks very much, H

  • Nokia N8 - Auto Focus

    Hi, I've just factory reset my Nokia N8. When I press the camera button and take a quick picture (everything default) the image is relatively blurred (less than 1 meter). I have had SE Vivaz earlier this year and  autofocus worked perfect. Autofocus