PWM control through USB 6008/09

Hello all
I have already read a thread regarding the topic but i am not satisfied with the replies.
I have discovered few programs that can run PWM in LabView, but they all are for DAQmx. So, will those programs run through USB 6008? and i also read that the output will be a sort of slow response output?
I am aiming to power a micro-pump rated at 12VDC. So, i want to run the program in LabView, use the USB 6008 to connect to a the DC motor. I know that some amplification will be required because the output of the USB 6008 is rated as 0-5V.
But, my question is can i successfully control the speed of the DC micro-pump ( motor) using the USB 6008??
Regards
Nikhil
Many more kudos to give  
Many more Kudos to give

Thanks for the reply.
If you just need to output voltages(not PWM) then you can use the Analog outputs of the 6008,
Analog Output
Analog outputs........................................2
Output resolution ....................................12 bits
Maximum update rate .............................150 Hz, software-timed
Output range ...........................................0 to +5 V
Output impedance...................................50 Ω
Output current drive................................5 mA
Power-on state ........................................0 V
Slew rate .................................................1 V/μs
Short circuit current ................................50 mA
Absolute accuracy (no load) ...................7 mV typical,
36.4 mV maximum at full scale
So yes you could output a voltage between 0 and 5 Volts. You could only change the voltage level every 10ms or so. 
In answer to what your device (pump) requires I don't know. 
"So, this got me thinking, do i really need PWM control for the micro-pump (DC motor)?"
Have you got a specification datasheet (website) of the pump? - I dont mind taking a look. 
Have you looked in the NI Example Finder to VIs that generate PWM and AnalogOutput (AO?). In the example finder (help>>Find Example) it gives you information on what devices can use the examples - simply look for the ones which say usb6008. 
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help!

Similar Messages

  • IOS8 music control through usb in car (Jeep & Volvo)

    after updating both mine and my wife's iPhone5's and to iOS8 our in car controls started working intermittently for actually starting, skipping, pausing, etc.. playback of our iPhones both in my 2011 Volvo S40 and her 2014 Jeep Cherokee (through USB connection, which previously worked with no issue).
    we then upgraded our phones to iPhone6's and same issue (after updating to one the next small iOS8 updates the issue was slightly less intermittently, but still sporadic and very unreliable; 8.1.3 update made no difference).
    control works perfectly through bluetooth streaming in her Jeep, however.
    I assume there were changes made to the music playback control (trickplay) mapping in iOS8, is there a ticket out to fix this or is the issue even know?
    Are others having the same issue?

    I went here: https://rsur.extra.chrysler.com/rsur/Uconnect.do
    You have to have a flash drive to install the image to and plug the USB into your Jeep.  Haven't tried that yet but will tonight.

  • Device control through USB

    I have a customer that has a kiosk that they want to enhance and modify. The original version was done using a program called LabView which communicates with a DAQ module plugged into the usb port. There are five buttons. The first 4 buttons pump dirty water out of their corresponding containers into a holding talk. The 5th button pumps the dirty water through a filter and into a clean water tank. My question - is there a way to control the motors and servos through the DAQ module using Director?

    I found out from one of the company reps that the DAQ Module is controlled by C++ commands, LabView commands, and ActiveX commands. So I should be able to insert an ActiveX control in Director and do it that way.

  • PWM on USB 6008

    I want to generate 50 Hz PWM wave on USB 6008.
    How can i do it?
    Elad

    To create a pulse train output with the USB-6008/9, you will have to write a series of high and low values to one of the digital lines.  The digital lines on the USB-6008/9 are all software timed, so you will have to control the timing in software (LabVIEW presumably) in a loop with a wait function.  Take a look at the digital output examples in LabVIEW.  Go to Help>>Find Examples, then navigate to Hardware Input and Output>>DAQmx>>Digital Generation, then perhaps an example like "Write Dig Chan.vi".
    Hope this helps.
    -Alan A.

  • DC motor closed loop control through labview using usb 6008

    Hello
    i am doing a project in which i want to control the speed of a DC motor (PID control) through labVIEW 2010. I am having a DC motor, a drive unit that regulates the voltage to the motor by getting analog voltage from 0 to 3.3V ( it can be used for both directions) and i also have a NI usb 6008 board. The problem is that i can't feed the usb 6008 with the digital signal from my hall effect speed sensor. Is it posible with this setup to control the motor?? I can also try to use the pulse as analog input and trasform the frequency into rpm's. Then i am thinking of generating an analog signal to feed the motor drive. If you have any further suggestion of a probably better hardware setup would be more than helpfull to me.
    Sincerely
    Jason Chaloulos

    Hello Michael
    Thanks for the reply. I came across those topics before and all of them are trying to generate a PWM signal as output i want to use just an analog signal output so timing on the output is not that important i guess. i am struggling on getting the frequency from the digital input signal that my hall effect sensor generates. Since the maximum speed of the motor is 3000 rpm and with my tooth wheel the maximum  output frequency of the sensor will be 300Hz which i see its way less than the limitation of my ni board. Is there any tutorial documentation that might help me with this one ? Thank you in advance.
    Kind regards
    Jason

  • 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
     

  • 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

  • Controlling direction of DIO ports of USB-6008

    How does a person control the direction of the DIO ports in the USB-6008?  And how does one then receive a signal (if dir = in) and send a signal (if dir = out)?  Sorry, I'm new to Signal Express.

    Hi Tim, 
    In general, the direction (input or output) depends on the type of step you define in Signal Express. As you can see, when you see the Add Step options, you have the option to both Acquire Signals (dir = in) and Generate Signals (dir = out).
    Hope this helps! 
    ~kgarrett
    Applications Engineer
    National Instruments

  • PID - USB 6008

    Hi, everyone!
    I'm Student. I found some example about PID. Reset Counter and make a PWM on Internet, I don't remember those Links. Now I Use them to control motion of DC motor. I use USB - 6008 of my teacher (I borrowed). When I select time to reset counter 20ms but elapse higher 20ms. The purpose of my project only to study, sorry when I changed those Program. Would you please explain for me and help me solve this project . Thank you.
    This my VI and Picture my test.
    Attachments:
    Test PID.zip ‏71 KB

    I'm sorry that I need to disappoint you, but your approach doesn't sound very promising. Low cost USB DAQ devices are the worst choice for closed loop control systems due to the lack of hardware timing for the digital outputs or a counter output. With this approach you will run into multiple problems:
    Lack of hardware timed output results in a PWM signal with a high amount of jitter.
    Compared to other bus technologies like PCI or PXI, USB adds even more jitter in single point output mode.
    Running your control loop under Windows (non-deterministic operating system) adds even more jitter and makes tuning very hard.
    This is really a worst case scenario for a control system and you will probably end up with a poor solution. Here and here are some other threads about the same topic.
    Kind regards,
    Jochen Klier
    National Instruments

  • USB-6008 DIO Lines...

    I have a USB-6008 that I'm using to develop an application with. The development language used is C# (.NET 2003 with Measurement Studio 7.0). Right now, I have the device successfully reading from the counter input. Since this program reads rising edges from the counter input, I can get the frequency of the input signal and cause something to happen should the frequency rise above a certain threshold.
    I'm trying to use the Digital port (port0) to set line 0 high if a condition has been met. I can do this when I select 'Dev1/port0' - I get Port 0 line 0 to go high or low. The problem is that I want to have control over lines 1, 2, 3, 4, 5, 6 and 7 - I only have access to line 0 right now on either Port 0 or Port 1.
    Currently I'm using the following imported functions from the C samples included in the NI-DAQmxBase software:
    int result = DAQmxBaseCreateTask("", out dioTaskHandle); // create the DIO task...
    result = DAQmxBaseCreateDOChan(dioTaskHandle, "Dev1/port0", "", 1); // create DIO channel...
    result = DAQmxBaseWriteDigitalScalarU32(dioTaskHandle, true, 1.0, 0, out reserved); // write a 0 to the channel selected
    Just a note about the third line of code - the documentation states that parameter 2 of the 'DAQmxBaseWriteDigitalScalarU32()' function must be set to false. When I use false as the 2nd parameter, I end up getting a return value of -1073807346. I can't find what that error is in any documentation. So, I set this value to true - and it works (I get a return value of 0 meaning success).
    In my development cycle, I've tested for ways to get access to a single line (other than line 0), and found that when I create a DO channel with the value "Dev1/port0", port 0 line 0 is active. When I create a DO channel with the value "Dev1/port1", port 1 line 0 is active. If I try to create a DO channel with a value of "Dev1/port2" through "Dev1/port7", I get a return value of -200170 (Physical Channel Does Not Exist). The documentation isn't very clear on the ports and single lines for digital output.
    My question is - how can I gain access to ALL of the lines of a particular port?
    Thanks,
    tsc

    I just figured out the lines of the port - of course this will happen once I've posted a question. If others run into the same type of problem, here's how to access each individual line of a selected digital port:
    line 0 - 0x01 (binary: 0000 0001)
    line 1 - 0x02 (binary: 0000 0010)
    line 2 - 0x04 (binary: 0000 0100)
    line 3 - 0x08 (binary: 0000 1000)
    line 4 - 0x10 (binary: 0001 0000)
    line 5 - 0x20 (binary: 0010 0000)
    line 6 - 0x40 (binary: 0100 0000)
    line 7 - 0x80 (binary: 1000 0000)
    all lines off - 0x00 (binary: 0000 0000)
    all lines on - 0xff (binary: 1111 1111)
    // create a task...
    result = DAQmxBaseCreateTask("DigitalPort0 Task", out dioTaskHandle);
    // create a channel - I'm using Port 0 in this example)...
    result = DAQmxBaseCreateDOChan(dioTaskHandle, "Dev1/port0", "", 1);
    // turn off all digital lines to the port selected (I do this when starting up)...
    result = DAQmxBaseWriteDigitalScalarU32(dioTaskHandle, true, 1.0, 0x00, out reserved);
    // if I want to turn on the first line (P0.0) of port0, then I send 0x01 as the fourth parameter...
    result = DAQmxBaseWriteDigitalScalarU32(dioTaskHandle, true, 1.0, 0x01, out reserved);
    // if I want to turn on the fifth line (P0.5) of port0, then I send 0x20 as the fourth parameter...
    result = DAQmxBaseWriteDigitalScalarU32(dioTaskHandle, true, 1.0, 0x20, out reserved);
    I hope this will help someone else out using this device and Measurement Studio for .NET.

  • When connected to my Ford Mondeo, my ipod nano can be controlled through interface.  But after while it comes up with message 'loading data' and then freezes.  Anyone else got the issue?

    When connected to my new Ford Mondeo, my ipod nano can be controlled through user interface in car.  This worksd most of the time, but after a while if I try to change the music or search, it comes up with message 'Loading Data'.  I then have to pull out USB and reinseert, at which point it works again.  Has anyone esle expereinced this/have a solution?

    Does not matter if anyone else has this issue.  You need to contact the Ford dealership.  It's their product you are having problems with. 
    If you really want to know if anyone else has this issue, post on Ford's Mondeo message boards.  It's where the Ford car owners hang out.

  • Como controlar velocidad con un PID con USB 6008 ?????

    Buenas tardes.
    Acabo de adquirir mi placa USB 6008 y estoy comenzando a trabajar para poder controlar la velocidad de un motor trifásico asincrónico estandar.
    Para esto contruí con un microcontrolador y una etapa de potencia la parte del variador. Y logré con esto que mi variador reciba una entrada de 0 a 5 Vcc y con ello varía la Frecuenci-Tensión de salida. Es decir solo necesito entregarle 0 a 5 V para que este actúe sobre todo el rango de frecuencias de salida.
    También contruí una placa de aislación galvánica que separa absolutamente la salida analógica de mi USB 6008 con la placa del variador que construí, como para separar las masas y la señal y evitar inconvenientes en mi Notebook y placa de adquisición.
    El feedback de velociodad lo hago con un sensor óptico y un disco dentado acoplado al eje del motor que me puede dar según mi necesidad 1 , 2 , 4 , 6 , 8 ó 10  pulsos por vuelta de acuedo a como lo ubique ó a mi necesidad.
    Entiendo que la placa USB 6008 no es la mejor alternativa para trabajar a tiempo real, y mi sistema operativo ( windows vista x64) tampoco. Pero mi sistema es bastante inercial desde el punto de vista mecánico, y también lo es por la placa del variador que no tiene una respuesta instantanea por cuestiones de constantes de tiempo que le di al firmware del micro. Es decir que no necesito velocidad en el sistema ni en el VI que necesito desarrollar.
    Resumiendo, necesito entrar a mi placa USB 6008 con pulsos ( los que se necesiten por cada vuelta del motor) y luego salir por una salida analógica ( de 0 a 5 V) con la información de velocidad que va al variador.
    Tengo a mi disposición Labview 8.5 con el Control design & simulation que tiene incluidos subVI con PID's listos para usar.
    En medio de este sitema, necesito generar un VI con el que pueda dar una referencia de velocidad desde un potenciómetro virtual en mi panel frontal, y que el PID en el programa de Labview corrija errores de velocidad por alguna pequeña variación de la carga, etc.
    La verdad que estuve probando hacer un VI con un PID bastante simple, pero a la hora de simularlo, fuí modificando los parámetros del PID y no vi que se haga "mas inercial"cuando aumento el tiempo integral. Tambien probé salir de mi placa con una tensión analógica, y dar una referencia con un potenciómetro como para probar si el PID se hace mas "rápido ó lento" al modificar las variables Integrales ó derivativas y no vi variaciones en la respuesta.
    Por eso es que pido ayuda en este foro, ya que probablemente alguien ya hizo alguna prueba, o me puede indicar como arrancar con este tema.
    Este proyecto es solo con fines académicos, para mi tesis de Ing. Electrónica. Por ello el motor no tiene carga, solo el disco dentado y el sensor óptico, solo lo puedo frenar un poco para ver la corrección.
    He comprobado que saliendo de mi placa 6008 con una señal analógica, pasandola por una placa que simula un retardo en el tiempo de esta señal, y reingresandola a una entrada de mi placa 6008 para luego con un VI generar el PID y tratar de que esta señal de entrada a la placa 6008 sea igual a la de setpoint, solo logro oscilaciones con una media que está lejos del valor del setpoint.
    Espero que alguien me pueda indicar como empezar, ó darme algún ejemplo que me pueda ayudar, ya que no soy experto el Labview, solo acabo de empezar a usarlo.
    Reitero que no necesito velocidad ya que mi sistema es lento, y solo debo variar mi salida analógica con velocidades muy bajas. Es decir no necesito respuesta inmediata.
    La idea es hacer una demostración del uso de un PID en un sistema real con Labview.
    Saludos...!!!!

    Hola.
          Sigue unos links para su consulta.
         http://forums.ni.com/ni/board/message?board.id=240​&message.id=8027&requireLogin=False
         http://zone.ni.com/devzone/cda/tut/p/id/3782
         http://zone.ni.com/devzone/cda/tut/p/id/6951
    Saludos
    Diogo.
    Diogo Aparecido
    Engenheiro de Aplicação
    National Instruments Brasil

  • Reading an encoder with a USB 6008

    Hello DAQmx users,
    I have a USB 6008 and it doesn't work the way I want it to.  I have done no troubleshooting or research and I refuse to give you any more information.  You have 30 seconds to answer my question.   i kid, i kid...
    So here is my real question:
    I have a USB 6008 that we use to do simple analog output.  I'm looking for a way to use the USB 6008 to also get encoder information.  I know that the USB 6008 cannot read an encoder directly, but I was wondering if anyone knew of or had any ideas of external hardware that could be used inbetween the 6008 and the encoder.  I think it would be something like 1) the encoder generates pulses 2) external hardware takes encoder pulses, translates them into a digital value representing the angle and outputs this digital value 3) use the digital lines on the 6008 to read in the digital angle value from the external hardware 4) I don't lose my job.
    I realize that this isn't an easy, optimal, or preferred solution, but I want to look into it before being forced to replace the USB 6008 with another piece of hardware.
    Eric
    DE For Life!

    Oops..  Just realized that this got posted in the Motion Control Forums... Meant for it to go in the MIO forums.  Sorry!
    New thread is here, feel free to respond!
    Message Edited by e-Cash-Money on 03-17-2006 04:30 PM
    Eric
    DE For Life!

  • Can't hear text-to-speech through USB DSP headset

    MBP5,3 OSX10.7.1
    Using a noise canceling Plantronics USB headset (DSP-500), I've noticed that text-to-speech audio disappears (or is badly garbled) when  played through the headset. Interestingly, changing voices among several choices in the Speech preference pane determines whether the voice is completely absent, or badly garbled (very slow). Audio is fine via speakers or via earphone jack, but when played through USB I get nothing. Using CLI "say" command in terminal also hangs. As soon as USB jack is pulled, the command completes.
    I think it has something to do with the DSP in this particular headset (noise canceling) but I don't have a non-DSP headset handy to check this. Strange part is that this was not an issue with Snow Leopard.
    It would be nice to be able to use headset for this audio as I use it for everything else in a noisy environment. Can anyone verify that this is not a problem with other USB headsets before I resort to another purchase?

    Thank you. You're right, I didn't see the exact location you were describing: I went to Dictation & Speech
    I tried to change it again and it wouldn't let me change it back to control + v so left it as control + a.
    I did as you said (below), it spoke in Pages, so thank you.
    But then I went back to Dictation & Speech to make them the same:
    Tested in Pages... 'BEEP!' So I set it back to Control + A.
    So now Control+A speaks as it used to - able to start and stop speech - only cannot be used in iWork apps.
    And Control+S starts speaking in any app, but does not stop speaking unless I press Control+A. So...
    Thank you, I guess you solved my problem, but now I have two sets of combinations for speech.
    Control + A (Chrome, Finder, etc) start or stop speech
    Control + S (Any app) start speech
    I tried inputing 'Stop Speaking' in Shortcuts, but to no avail...

  • Low sample rate with NI USB-6008

    Hello,
    We are working on a project collecting data from a hybrid rocket motor for
    University research. We are using a NI USB-6008, which has a sample rate of
    10kHz. We are using 3 channels and getting a sample rate of ~60 samples per
    second. I have attached the VI. Is this slowed by software, or physical
    computer computation speed? This sample rate needs to be much higher. Any help
    is greatly appreciated.
    - Theo
    Attachments:
    Hybrid DAQ_10.vi ‏73 KB

    Hi Rocket 154,
    You’ve already had some
    great responses, but I just wanted to add a little bit. A great starting point
    to writing good code would be the Getting Started with NI-DAQmx: Main Page,
    as well as the shipping examples (In LabVIEW, Help » Find Examples) already
    mentioned.
    If you navigate a bit
    through the links (Basic Programming with NI-DAQmx » Getting Started with NI-DAQmx
    Programming in LabVIEW) you’ll end up with some great resources. I recommend Learn
    10 Functions in NI-DAQmx and Handle 80% of your Data Acquisition Applications.
    It will detail many of the functions you can use and give you a feel for proper
    code style in LabVIEW.
    I hope that helps.
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

Maybe you are looking for