USB-6009 DAQmx parallel devices

Hello, im using a NI USB-6009. And I have to read two analog Inputs, write two analog outputs and two digital outputs. All this in parallel.
It works if I connect them successively, but then the VI is too slow for a good measurement.
So my question is, can it generally work if the dataflow isn't given trough the hole chain, but rather coincidently trough the single parts of the VI?
Now it doesn't work.
Solved!
Go to Solution.
Attachments:
NI_USB_2.vi ‏36 KB

Hi there thanks you very much for the fast answers.
Now it works very well. First I had a error with the AI's but now I take them together and the error is gone.
regards
Moritz
Attachments:
NI_USB_3.vi ‏42 KB

Similar Messages

  • USB 6009 DAQmx Deployment

    Hi.
       I have created a 4 channel differential data logging scope with a NI USB-6009. I would like to deploy this 'easily' to many of my colegues. I have app builder and the ability to build apps, but I would like to include the correct drivers for the 6009 in with the installer (although I have selected NI_DAQmx Core Runtime and NI_DAQmx MAX config support).
       For the running of the app, I have created a Task that consists of 4 channels. I would like it for my end user not to have to configure this. Does anyone know how I might acheive this? My experience of deployment is limited.
    Many thanks, Alec

    Hi Alec,
    It's also worth installing DAQmx MAX Configuration Support from the install builder if you still want to be able to modify the tasks from MAX as well.
    Best Regards,
    Chris
    National Instruments - Tech Support

  • USB-6009 Daqmx Base 3.3 Cannot creat 2 or more channels on Windows mobile 6

    Hello,
    I have USB-6009, PDA iPAQ 214, WM6, Daqmx base 3.3, Labview 2009. In order to create new mobile project I use wizard and standart dynamic example: Cont Acq&Graph Voltage-Int Clk.vi. All works ok, but if I add more chanels in VI "Create Channels" or place new VI block and enter "Dev1/ai1", exe on my PDA cannot work correctly. Exception after RUN. I have no idea how build correct application with 3 channels without this exeption...  On PC all works. Whay right way to create channels? I attach VI which don't work, for examle. I read daqmxbase cannot support WM6, but 1 channel work ideal!
    Attachments:
    diagramm.jpg ‏113 KB

    Vital000,
    I forgot to mention that, yes, Windows Mobile 6 is not supported along side of DAQmx Base. That means you might be able to get some  of the same functionality(limited) that you would with Windows Mobile 5, but most likely not 100% functionality. This could explain why 1 channel works and multiple channels do not. I will try and help you out, but as this is not supported my ability to help is limited.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • USB 6009 and DAQmx Base Concerns

    Hello,
    I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:
    1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.
    Thanks in advance for the assistance,
    - Aaron

    Aaron T. wrote:
    Hello,   I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:   1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.  
    **The Task Configuration Utility is not necessary, except that there is significant functionality missing from DAQmx Base but present in the utility. That includes a lot of what DAQmx calls "proerties", and includes things like the convert rate for AI scanning.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?  
    **I don't use CVI so I don't know anything about this. It strikes me that even if you have such a panel reading the documentation is a good idea
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.  
    **Well, the ReadMe file says that USB-6008/9 is supported with both Line I/O and Port I/O. On the other hand, the documentation for DAQmxBaseCreateDOChan and DAQmxBaseCreateDIChan say for the lineGrouping parameter, "Always pass DAQmx_Val_ChanForAllLines." So your question is a good one! Perhaps one of the NI engineers can comment on this.
    - Aaron
    Thanks in advance for the assistance,
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • USB-6009 AI and AO

    Hello,
    I have an USB-6009 DAQmx device. I would like to measure analogue input with the possible highest sampling rate (48kHz) . At the same time, I need to ramp a voltage analogue output from 0 to 5 Volts, lets say during 2 minutes. These two tasks do not require close syncing. Regarding to the spec, the highest rate of the AO is 150 Hz. It is ok for my application.
    So the AI measurement will use device internal clock, and the AO can only work with software timing. Is it possible to independently ramping the voltage output and at the same time, reading the analogue input? If not, is there a workaround for this device?
    Thanks for advice!
    Regards,
    Solved!
    Go to Solution.

    I have made a test version (the final solution will do measurement for 2 minutes, so I will need to ramp up the analogue signal from 0 to 5 Volts in 2 minutes, and I think 10 msec will give a sufficiently smooth ramp curve --> 24000 steps over the 5V range).
    In this test VI I do measurement on two analogue inputs using internal timing, and in parallel, I do the ramp signal with software timing (I guess it is not advised to go below 10 msec because Windows can slow down too much?).
    Additional question: when I use DAQ on the two input channels, I understand that, the available highest rate is half of the maximum. But when I plot the two channels, the points are at the same time on the XY graph. How does  LabView interleave data from the two channels during measurement?
    Thanks for help and advice,
    Regards,
    Attachments:
    Test1.vi ‏213 KB

  • USB 6009 thermocouple noise

    I'm using NI-DAQmx 7.5, Labview 7.0, and a USB-6009.
    I'm trying to get a more accurate reading from my j-type thermocouple.  It is now distorted with noise and jumps rapidly +/- 20 degrees around room temp without any heat being applied.  When heat is applied, it climbs as it should but with the same variation.  I haven't moved to the labview side of it yet, I'm still trying to get a usable reading in MAX.  I have it wired as a differential input with a floating signal source.  I've installed 10k ohm resistors for bias current return as instructed.  Installing the resistors helped but still leaves me with the readings shown in the attached pic.  I've also tried grounding my USB 6009 with no results.  Please help. john
    Attachments:
    thermocouple reading.jpg ‏41 KB

    Hi John,
    What you are running into is a problem with the actual voltage resolution of your USB-6009.  This device has 14-bits of resolution over a minimum range of +/- 1V.  That means that the voltage resolution is (1 - (-1))V / (2^14) = 2V / (16384) = 122uV.  While this is an excellent resolution for such a low cost USB device, you will still notice problems when trying to make a thermocouple measurement.  The reason for that is that Thermocouples make a very small output voltage (see image below).
    Common thermocouple types have the following response:
    K type: 41 microVolts per degree Celsius
    J type: 56 microVolts per degree Celsius
    T type: 52 microVolts per degree Celsius
    There are a few options for ways to get around this limitation.
    Good: You could read the signal in as a voltage and then manually convert that voltage into a temperature.  This would be the least accurate method, but it should allow you to average out your signal and then use the Convert Thermocouple Reading.vi to show the voltage as a temperature.
    Better: If you want to keep using the USB-6009 to measure thermocouple, what you really need to do is first amplify your signal before you connect it with your device.  This should increase your resolution of the thermocouple allowing you to get more accurate temperature specs.  This will require some more complex programming to properly scale your measurements, but it will give you more accurate readings for relatively little cost.
    Best: Opt for getting a USB device that is designed for taking temperature measurements such as the USB-9211A.  This device would give you a voltage resolution of 160mV/2^24 = 9.54 nV!  That's over 12500x the resolution of the USB-6009 that you currently have.
    Hopefully the above information helps you better understand what is going on and why.  If you have any other questions feel free to post them here.
    Message Edited by Otis [DE] on 01-13-2006 11:37 AM
    Message Edited by Otis [DE] on 01-13-2006 11:38 AM
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments
    Attachments:
    761029-Thermocouple_Voltages.GIF ‏10 KB

  • USB-6009 device not found problem

    Hello all,
    So my VI and USB-6009 have been working fine until recently.  I noticed the VI was not reading or graphing information from the analog input channel correctly.  My firmware is up to date, but I noticed a problem.  In Isdaq, it will recognize that the USB-6009 is connected, then when I run my VI and stop it, i check Isdaq for my device again, and it does not recognize any device.  I have to unplug the daq and replug it for Isdaq to recognize the usb-6009 again.  But each time I run my VI, it does not seem to collect any data, and it makes the device unrecognizable.  Do you know what the problem might be?  Attached is the VI I have been running in case you want to look at it.  Its been working fine until now.  
    btw, I am running Labview on a Mac OS X
    Thanks for the help!
    Solved!
    Go to Solution.
    Attachments:
    AO:AI Data Aquisition.vi ‏39 KB

    Hello Solis,
    I would recommend making changes to the parallel tasks to use the error cluster to force the order of execution, since NI-DAQmx Base is not multi-thread safe (review NI-DAQmx Readme). Please verify if this alleviates the issue.
    Best regards,
    Ali M
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Usb - 6009 Device Recongition Problems

    Hi,
    I just got a USB-6009 DAQ. I have labview 7.0, drivers software and the supplied software installed with no problems. In the measurment nad automation explorer (MAX) the device is recongnised and declared problem free. I tried to test the device in labview using help tutorials which suggests the DAQ assitant block. After selecting Analogue input and then voltage I am told that no device is detected i.e. Where I should be selecting my terminal(s) I am not giving any options.
    If anyone has had the same problems or know how to fix them I would be thankful of your help.
    Kyle

    Hi Kyle,
    The USB-6009 device works on DAQmx base. This is a restricted version of NI-DAQmx which is used on some of our products. Unfortunetly it is incompatible with DAQmx and the DAQ Assistant uses DAQmx. Therefore you can't use the UDB-6009 with the DAQ Assistant.
    To use the device, load up the USB-600x Interactive Control which should be located in the following directory.
    C:\Program Files\National Instruments\LabVIEW 7.0\examples\daqmxbase
    Take a look at this and figure out how the code works. If you want to configure it to do your own specific functions then I would suggest that you use this program as a base and customise it for your purposes.
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.

  • Having trouble to comunicate to the USB to Parallel device

    Hi
     I have a USB to parralle device for my laptop since it does not have a parallel port on it. The device I am using is a Tripplite and it show in my device manenger as USB printer. I use the Visa Driver wizard to create an INF file.  I went back into my device manerger and it list it as NI-Visa USB Device which show me that I created the INF file proper. I went into Measurement & Automation Explore and open up the device and interface, which showed the USB as a raw device. When I place a meter on pin 2 and pin 18  of my USB device, The meter will show 5 VDC I then sent a comand on the test panel of a value of zero to turn off the data line and the meter will drop to zero. I then send a value of 8 to turn al lports back on and the device will not respond. I am new to this and I can usual figure out a problem but I am having trouble and I feel that I am missing something. I am hoping some one can point me in the right direction. I would like to use the port to control a device by using the 8 bit port.
     Thanks
     John

    Maybe if you would explain what test panel you are talking about?
    For USB Raw, you should look at the series of nuggets written by Intaris. The first one is here.
    Before you reconfigured the device so that it's not a parallel port, did you try a VISA Write or Read to LPT?

  • USB 6009 lock-ups?

    Hello,
    I'm having a strange problem with my newly aquired USB 6009. I've written an app to read the temperature from a temperature controller using the 6009 and that all works fine. However, the problem comes when I port this code into another application. The code is intended to run in a parallel loop to the main execution loop, to continuously read the temperature whilst other data is captured and process (all done in the main loop). Both applications run quite happily when separate. When I bring them together the applications sometimes, but not all the time, refuse to quit and just lock up. I have no idea what is happening as it is not a case of one loop remaining running (I've tried separate stop buttons) and they will run together quite happily. The problem only comes when I hit the button that terminates the main loop (this also triggers the other loop to stop - I'm sure this bit works as I've used the same method in another vi).
    The main loop should, in theory, just close. The loop with the USB reads (using DAQmx Base) will stop and then clear the task (DAQmx Base Clear I think). Sometimes the DAQmx Base Clear runs and the program stops fine, other times it runs and the program locks, other times it locks as soon as I hit the quit button.
    Any thoughts as I'm completely stumped on this one? Like I say, apart from the one button triggering both loops to terminate there is no link between the two loops.
    My only thought is it could be a USB issue as the PC also has a USB keyboard and mouse. I know from my home experience, when for instance plugging in my camera, it can cause the USB to lock if, say, my USB modem is running.

    See the thread
    http://forums.ni.com/ni/board/message?board.id=250&message.id=13722
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • USB-6009 labview 7.1

    Hi can anybody tell me if they have had any problems running USB-6009 with Labview version 7.0? I can't get it to recongnise my device and it's behaving as if there is nothing there. Do I need version 7.1 or is there a more sinister problem afoot?
    Kyle

    What version of DAQmx Base are you using? The latest version, 1.4, is supported on all versions of LabView 7.0 and higher. It can be obtained using the following link:
    http://digital.ni.com/softlib.nsf/websearch/941677622E793A2686256F8C0083641A?opendocument&node=132050_US

  • USB-6009 digital input change detection

    Hi,
      I am trying to acquire digital signals from an ni usb-6009 device using daqmx on labview 8.0. I need to write the signals from a port of the device to an output file only when there is a change in the signals and I am not able to do this successfully. I created a digital task in MAX and was able to select acquisition mode as '1 sample (On Demand) ' only. Any other selection for acquisition mode would result in error 200077 with the following message -
    Measurements: Requested value is not a supported value for this property.
    Property: SampTimingType
    You Have Requested: Sample Clock
    You Can Select: On Demand
    I selected '1 Sample (On Demand)' acquisition mode and was able to see the channel values on running it in MAX as I rotated a device connected to the usb-6009 device. As expected the hex values on MAX were showing up as FF,7F,3F,BF and this pattern was repeated everytime I provided the input by rotating the device.
    Next, I created a simple vi to use the digital task I setup on MAX. I want to be able to record the signals only when there is a change in the digital pattern from the channels.That is when there is atransition from FF to 7F to 3F and so on, the vi should write to an output file and if no change happens, it should not write to file. To do this, I explored the Timing vi and tried using the 'Change detection' mode, but that produced the same error as above. 
    Can anyone please suggest a way to accomplish what I am trying to do ? Any guidance will be a hugely appreciated.
    Thanks
    ~Sej

    All of that effort with sample rates, timing, change detection, etc ciuld have been avoided if you had read the specs. As you finally found out, the device only supports sftware timed i/o and no change detection. You wll have to do your change detection in software this is done with a shift register/feedback loop.

  • USB 6009 Up/Down Counters

    Hello to everybody,
    I'm going to buy a USB 6009 for a low cost application and it fits my requirements except the counter.
    In fact, I would need an Up/Down counter while USB 6009 has an event counter type only.
    Do you know whether is possible to create the count direction by using one of the DIO bit?
    I have been thinking to design an external circuit for creating the right signal but I have no idea for a while.
    Please, let me know any suggestion.
    Thanks in advance.
    Regards 

    Hi,
    These device can be used only for simple event counting using PFI 0 as an event counter input. The counter gate is not accessible on the USB 6008/6009 devices.
    No Quadrature Encoder Capability is available: USB-6009 has counter. However, in DAQmx Base, externally controlled count direction is not supported. Notice that for a CI input task in the NI-DAQmx Base configuration utility, you can only specify count up. You cannot select "externally controlled." or "Count Down".
    I hope it helps,
    Marco

  • USB 6009 - mysterious problem

    Have mysterious problems with my new USB 6009.
    I'm using LabView 7 on MacOS-X 10.3.8.
    All vi's of DAQmx show "ERROR 15 - Ressource not found".
    Then I tested:
    - "lsdaq" shows the device
    - "nidatalogger" works
    - "mxbaseconfig" doesn't recocgnize it!
    I realy have no idea know what to do now?
    Thank you for helping.
    Greetings,
    Stephan

    I happend to stumble over the same issue and found a solution.
    The problem really seems to be the firmware in the USB-device. There is
    only one way (I think) to make USB600x devices work with linux:
    You have to start MAX (on a Windows-box) , go to tools - NI-DAQmx configuration - NI-DAQmx USB Driver Selector.
    Press "Switch" and select the BASE-Driver for your USB-Device. This
    seems to write something into the device's flash memory. After this
    procedure you can use the device with linux and DAQmxBase
    Funny thing is, mxbaseconfig still can't see it, but nidatalogger finds it.
    Hope that helps, even though this thread seems to be rather old...
    -DB

  • Usb 6009....mx base....and other musings

    I've recently received a few usb-6009 devices, and, like most of the other people here on the boards, have had my share of problems getting the things up and going.
    If I understand correctly....
    I can create an empty task in LabView with a VI.  This VI however doesn't give me the option of choosing differential or single ended analog in measurements.  To do this, I need to use the config utility to create a task, and then import it into my program. 
    What isn't clear is HOW I get the task I create in the config utility into my program.  Thoughts?
    I will admit that I'm a bit disappointed that the devices, while convienient in size and price, have so many idiosyncrasies in the software.  Not having the full arsenal of VI's or compatability with MAX makes getting these up and going a bit painful.
    Brandon

    Hi
    I've been trying to get a USB-6009 to work for a few days now. I was using DAQmx 7.4 and DAQmx Base v 1.4. Max Explorer would show the device  under USB Devices but I couldn't get any of the Tasks from the DAQmx Task Configuration Utility to show up in Labview. If I used the intermediate vi's to create a task and a physical channel name I did get to take measurements with the device.
    Since I realy needed to use global channels and tasks set up in Max Explorer I was hoping that the new upgrade to DAQmx 7.5 would solve the problem. I removed DAQmx Base and DAQmx 7.4 and loaded 7.5. Unfortunately I'm still unable to use the 6009 device. Again the device shows up in the USB devices and I'm now able to give it an alias but when I try to set up a global channel it says I have 'No supported devices found'. If I look at 'NI-DAQmx for USB Devices Getting Started' which I think was included with the 7.5 update that suggests that it should be seen in the DAQmx devices, but in my case it doesn't.
    I guess I've missed out some crutial stage but as yet I can't figure out what that might be. Has anyone been able to use the USB-6009 with DAQmx 7.5 (or v7.4 for that matter)?
    Ian S

Maybe you are looking for