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

Similar Messages

  • LabView 8.2.1 and DAQmx Base with Linux

    Hey,
    we use LabView 8.2.1 here with Linux. Recently the new version of NI-VISA (5.0.0) and DAQmx Base (3.4) were released and work with OpenSuSE 11.2. But there is no integration of DAQmx Base into LabView 8.2.1 in the iso file.
    Is there a possibility to implement that?
    Thanks in advance,
    Alex

    Hello Alex,
    thank you for posting at the National Instruments Forum. It is not possible, to use the latest NI-DAQmx Base Driver 3.4 with LabVIEW 8.2:
    NI-DAQmx Base 3.4 supports
    - LabVIEW 2010
    - LabVIEW 2009
    - LabVIEW 8.6.x and
    - LabVIEW 8.5.x
    If you need LabVIEW 8.2.x support, you have to use NI-DAQmx Base 3.3, this one supports
    - LabVIEW 2009
    - LabVIEW 8.6.x
    - LabVIEW 8.5.x and
    - LabVIEW 8.2.x
    It is not possible to add LabVIEW 8.2.x compatibility to NI-DAQmx Base 3.4. I hope, this clarifies the version compatibility.
    Best Regards
    MarianO

  • USB 6009 and TDMS write

    Dear all!
    I'm using USB-6009 device to adquire data from a physical channel. In the following vi, the number of samples to be adquired is set to 1000, with a 100Hz rate. Therefore, as I understand, the number of samples that should be read inside the while loop where DAQmx read is placed should be 10 for each iteration. However, I've tried to store this information in a TDMS file and I'm getting less number of samples as expected. I wouldn't like to lose any data.
    I've read overthere that the USB-6009 is a software-timed device, so, can this be the reason of this anomaly? Moreover, if I analyze the adquired samples using DIAdem software, I see some samples are being repeated. In this case, am I overwriting some data and reading past values?
    If I need to replace my data adquisition device with a hardware-timed one, which one should I get?
    Thank you very much in advance,
    Miren  
    Attachments:
    USB6009_TDMS.vi ‏25 KB

    When you run the sample clock in  "Continuous Samples" mode, the # of samples only determines the buffer size.  This is outlined in the help for that function.
    As a result, you have nothing pacing the internal loop: If there are samples available when it reaches the DAQmx Read, it passes out as many as are available in the buffer.  You might get 1, 2, 100; it depends on how long the other operations in the loop take.
    In general, DAQmx loops like this can be paced either by time or by # of samples.  Looks like you want sample pacing: wire the number of samples you want to collect to the "# of samples per channel" input of the DAQmx read.  Then the loop will wait at the daqmx read until that many samples are ready, and then it will proceed.
    -Barrett
    CLD

  • New user DAQmx and DAQmx Base

    I have just started monitoring this list and I have a few general questions. I apologize if they are kinda basic!
    1) My application is somewhat unusual- I am developing a plug-in for my company's product (Igor Pro) to access NI DAQ boards. This product has been shipping for several years using NI-DAQ (now traditional). I am re-writing it to use DAQmx. Development is in C/C++.
    Is this the most appropriate forum?
    2) Igor Pro runs on both Windows and Mac OS X, so I plan to use DAQmx Base on OS X.
    Is this the best forum for DAQmx Base? On OS X?
    Thanks for any advice; I look forward to participating in the future!
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

    Hi,
    Welcome! This is definitely the right forum, so please let us know if you have any questions. You can also purchase one-on-one support from engineers at NI.com. Have a great day!
    George

  • 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

  • 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

  • How to install drivers for Ni USb 6009

    Hi
    I am trying to use an NI-USB 6009 and was wondering if its possible to install just the drivers for this hardware. I know that I can install the NI-Daq base but I would really like to install the minimum amount of software onto my computer that has linux. However, I did try to install the NI daq base and the installation is failing because of an input/output error, (I am not really sure why).
    I would really like to be able to just install the drivers for the USB-6009. I was just wondering if that was possible and where I could find them.
    Thanks

    Hi Cannonball,
    You'll know pretty quickly after installing DAQmx Base and running the lsdaq utility as to if you need different firmware. The 6008 and 6009 must have a different firmware loaded to be able to run DAQmx Base 3.x. This is not a problem though as there is a firmware updating utility that comes with DAQmx Base and it's fairly straigh forward. For more information, see the link below.
    KB 491FPHB9: Firmware Incompatibility With Different Versions of DAQmx Base.
    http://digital.ni.com/public.nsf/allkb/91CBCFE9E171C845862572CF0077D8F9?OpenDocument
    PBear
    NI RF

  • Usb 6009 continuous analog output

    Hi
    I'm pretty new to Labview, so you may have to bear with me. I have a USB-6009 and I want to generate a continuos analog output voltage. I've got the example you have posted 'Gen Mult Volt Updates-SW Timed_LV7.1 (0 to 4).vi' working and it outputs a continuous sine wave.
    In a similar manner I need to generate:
    1. Ramp up voltage (and ramp down voltage): starting with a continuos constant voltage, which after a period of time linearly increases to another constant voltage, and which allows me to specify the 3 time intervals and the rate of increase.
    2. Pulsations: whereby I can specify the amplitude and time interval of each pulsation
    This is so that I can control voltage to a valve which regulates my pipe flow. In the example I have (one stated above), I do not understand specifically:
    i. Why I need both a 'Software Loop Time (ms)' as well as 'Timeout'
    ii. The 'Sinusoidal Pattern' input which seems to generate data for a sine wave- I can't get a description of that and there are no similar VIs for other waveforms; and what is the function of the two numbers it has?
    iv. How do I change amplitude and time period for the wave?
    iii. What does 'Index Array' do?
    thank you

    Hi there,
    I'm guessing the VI you are using is the one from this KB:
    http://digital.ni.com/public.nsf/allkb/6F2C2B49A89D685C8625711D007BDD64
    i. The software timed loop control is to control the rate at which you change the voltage output.  The timeout on the DAQmx Write VI is the maximum time in seconds the VI will wait to output a sample (eg. if the write buffer is full, the Write VI will wait for it to become available for 'timeout' seconds before outputting an error).
    ii. The sine pattern is just an array constant of doubles that make up the sine wave voltage values, and the for loop adds an offset (of two volts) to every single one of those values. You might want to replace that entire array constant and for loop with a Simulate Signal Express VI (just search for Simulate Sig or look in the Functions >> Input palette) and convert the dynamic data output to an array of doubles.  You can configure the type of waveform, amplitude, and time period from that express VI as well.
    iii.  Refer to previous answer.
    iv.  Index array returns an element of an array based on the index input.  You can turn on the context help and move your mouse over functions to get more help on them.
    I hope that helps!
    Way S.
    NI UK Applications Engineer

  • USB-6009 pulse train generation with digital output....

    Hello!
    I've bought a new USB NI-Card (USB-6009) and now I'm trying to adopt an old vi that uses traditional DAQ drivers. I wrote that vi for a PCI NI-Card (PCI-6024E), which has two counters to generate two pulse trains simultaneously. Now I've only one counter and that's why I'm searching for a good way to create pulse trains using a digital output! The pulse trains are both ranging between 100 Hz and 100 kHz.
    I'm sure somebody has an idea how I can solve the probem in the best way
    Kind regards,
    Peter

    You can't do it with this low cost board. Both digital and analog outputs are software timed only. The analog out is rated at only 150  samples/sec and the digital is about the same. You can't even use one of the counters because it is not a hardware timed counter output. It is an event counter only as an input.

  • Separate sampling rate for two different channels for a USB-6009 daq

    Hi, 
    I am using a USB-6009 and incorporating the 'daq assistant' to change the sample rate.  I am trying to find a way to set the sampling rate to two unique values for two separate channels.  I've tried setting up two daq assistants and adjusting the sample rate different for each channel, though this does not work.  Is there any way to set the sample rate high for all channels then reduce the rate for a different channel - or an alternative?  I would appreciate any input on this, thank you!
    - Anthony
    Solved!
    Go to Solution.

    All tasks on a DAQ board that use a sampling clock must use the same clock.  Therefore, you cannot have two tasks on the same DAQ board sample at different rates.
    Alternatives would be:
    1. to combine all of the channels into a single task and just accept the extra data
    2. get an extra DAQ board to use in parallel
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to recognize s-series daq card in DAQmx Base 2.0

    I installed the "DAQmx BASE 2.0", and then installed 3 PCI DAQ boards.  It can recognize PCI-6024E and PCI-6713, but not PCI-6133.
    I followed exactly the same procedure as in the document called "How do I use NI-DAQmx Base with PCI/PXI Devices on Windows?"
    http://digital.ni.com/public.nsf/websearch/9C4E9FD0C7469BC286256F100074EADC?OpenDocument
    However, there is a web page (the link below) having labview example programs using DAQmx Base for "NI 6110 S Series Multifunction DAQ". So I think probably there is a way to recognize the S-series devices in DAQmx base.
    http://digital.ni.com/public.nsf/allkb/722DDAB4E914073D8625708100773677
    Does anybody know how to recognize S-series device in DAQmx Base 2.0?
    Thanks

    Alan,
    Thank you very much for the quick response.
    The reason I explored DAQmx: I want to do RLP and DAQmx Base has a simpler interface and more examples for RLP.
    The reason I want to go RLP instead of DAQmx is a long story.
    Summary of my applications:
    I need to read 4 input voltage (using PCI-6133) and then generate 12 voltages (using two PCI-6713 each has 8 outputs). Since the 12 generated voltages are related to the 4 input voltages, single sample /N channel AD/DA is required. The speed for the overall control loop has to be >100 kHz.
    Summary of my configurations:
    PIII, 700 MHz CPU, 512 MB RAM
    PCI-6133 and PCI 6713, LabVIEW 7.0, and DAQmx 8.0
    I also have PCI-6110 and PCI-6024E cards for comparison
    Summary for 4 channel single point acquisition (See the table below, AD only)
    1) The difference between P3/700MHz computer and P4/3GHz computer is very small
    2) The S-series performed worse than E- and M- Series
         Spec (kS/s)   Tested by me(700MHz P3)   by NI engineer (3GHz P4)
    6024E   200/4            15.7 kHz                    17.36 kHz
    6040E   250/4                                        18.9 kHz
    6251   1000/4                                        23.0 kHz
    6133   2500/1            13.8 kHz
    Summary for single channel single point acquisition (See the table below, AD only)
    1) The S-series performed much worse than E- and M- Series (simultaneous sampling is worse?)
         Spec (kS/s)    Tested by me (700MHz P3)
    6024E    200/1           54.8 kHz
    6110    5000/1           19.4 kHz
    6133    2500/1           14.5 kHz
    Simulated device          135 kHz
    Summary for single channel single point AO (See the table below, DA only)
    The spec of 6024E is only 10kS/s, but the loop can run at 132 kHz (the output from the port was not correct for sure). Using a simulated device (either 6024E or 6713), the loop rate is ~ 134 kHz (probably due to my low speed computer). This means the latency from 6024E devices is virtually zero. However, the latency from 6713 is way too much.
          Spec (kS/s)   tested by me (700MHz P3)
    6024E    10/1             132 kHz
    6713   1000/1              38 kHz
    Simulated device          134 kHz
    From all the above tests, it seems that s-series device (6133) and AO device (6713) perform much poorly in single point mode compared to E-series device (6024E).  I thought the difference might be due to the driver in DAQmx.  So, I want to try RLP to see whether I can gain up control loop speed to 100 kHz for my applications.
    Your suggestions and advices are appreciated.
    Thanks
    Jin-Xing

  • Help setting up USB 6009 for experiment

    Hi,
    I am a new LabVIEW user. I have purchased a USB 6009 and I need it to acquire data from a pair of electrodes and a differential pressure sensor. Below is a schematic of how I think everything should be hooked up. I just have some questions regarding the setup before I run my experiment.
    I will be using the electrodes to measure voltage drop. However, I am wondering whether I need a ground reference connected to the bottom GND pin. This is because I will be operating the electrodes in the +/- 20 V range and according to the user guide, each pin has a maximum voltage of +/- 10 V with respect to GND. I assume this means that if the +ve electrode measures +15 V wrt to GND and the -ve electrode measures -5 V wrt to GND, the DAQ will provide a reading of 15 V instead of 20 V. So if I need a ground reference, what do I connect to the bottom GND pin?
    During this experiment, I will also be collecting data from an Omega PX26-030DV differential pressure sensor, which has a maximum voltage output of 100 mV. It will be powered by a Circuit Specialists CSI3005T power supply at 10 VDC. I believe I have made the right connections, but do I also need to connect the terminal 4 GND on the DAQ to the power supply GND?

    You definitely need grounds!  The internal circuitry of the DAQ device is referenced to the DAQ Ground. Since the device is USB connected, the DAQ ground is also the computer ground.  All grounds should be connected together, ideally on only one place to avoid ground loops.
    1. On the 10 VDC power supply shown in your diagram what is the relationship of + and - to ground? The ideal situation for a strain gauge pressure transducer is +5 V and - 5 V because that reduces the nominal common mode voltage to zero. Regardless, there needs to be a reference connection between the power supply and AI GND.
    2. What is the circuit (or equivalent circuit) to which the electrodes are connected? That also needs a reference connection to AI GND.
    3. What is the source impedance of the electrode circuit? The USB-6009 has a relatively low input impedance (144000 ohms) and it is terminated to a non-zero voltage. I do not have the manual readily available but I think I recall the equivalent voltage is about 1.4 V.  Both of these can cause significant problems for some measurements with "floating" electrodes.
    4. The +/-10 V limit with respect to ground is absolute. You cannot have +15 V to ground on one electrode and - 5 V to ground on the other electrode and expect it to work. The only way a 20 V differential rangs is possible is with one signal at +10 V and the other at -10 V. A 15 V signal will not be measured accurately and could result in damage to the DAQ device.
    Give us all the information about your system so we can provide appropriate answers.  You may need some external signal conditioning for parts of your system.
    Lynn

  • 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, mac OS 10.6.8 and python

    Hello!
    I am using USB-6009 under mac OS 10.6.8 and python.
    I am trying to run the following commmand:
    analogOutputTask = nidaqmx.AnalogOutputTask(name='MyAOTask')
    I get the following message
    File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/nidaqmx/libnidaqmx.py", line 180, in CALL
    AttributeError: 'NoneType' object has no attribute 'DAQmxCreateTask'
    Any help would be very mch appreciated,
    Thanks 
    j.

    Hello Jamyamdy, 
    Honestly, I am not too sure about this, but were you able to acquire data before or is this your first trial? 
    From the usb-6009 product page, it says the following. 
    For Mac OS X and Linux users, download the NI-DAQmx Base driver software and program the USB-6009 with NI LabVIEW or C.
     http://sine.ni.com/nips/cds/view/p/lang/en/nid/201987
    Regards,

  • 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

Maybe you are looking for

  • How to stop a rman backup in progress?

    OS: AIX 5.3 L and Oracle 10g R2 I got panic when my scheduled rman backup (incremental level 0 plus archivelog) run too long and I want to stop the process. I could not find the rman doc mentioning how to use any rman command to do that, instead of j

  • How to make double column of submenu items?

    Hello, With DWCS3, I've used the Spry menubar to make a vertical menu and it looks great! Most of my items have only 2-3 submenu items to choose, and it works fine. However, I have one menu item that has maybe 20 or 30 submenu items to choose from, a

  • Graphic files are embedded instead of linked

    I have a CS3 illustrator file done by a co-worker that has eight, color .jpg photos placed into it. When checking the file before sending to the printer, we noticed that the photos showed up in the links palate, but had no file names listed and each

  • MDM Custom attributes

    Hi gurus, I'm working with SRM-MDM Catalog 1.0 I'm facing this problem. I have imported some item with custom attributes (MDM Import Manager), i have mapped fields and values. In MDM Data Manager items are present but the custom atributes are not pre

  • PM's see only a few resources in All Resources view of Build Team

    Our PMs (and me, as an administrator) get different names when we use the All Resources view while building a team from PWA.  Both PMs and Admins have the My Organization category, and the view is in there too.  My Organization is set to cover all cu