DIO for USB 6008

Hello there folks,
I just need suggestions from everyone.  have 5 digital signals and am using USB 6008 to measure using DAQ assistant express VI ( not DAQmx ), and use the digital binary values from the 5 channels to select a case statements. Attached is the word document .
 Kindly confirm:
1)  if the PIN numbers are correct
2) the labview part will work with DAQ assistant express VI
3) any other example installed in labview which you can suggest to read more about , so that i can program in labview ?? 
Attachments:
DIO.doc ‏49 KB
NI6008.pdf ‏855 KB

Hi Miaa,
The best examples for programming your application without the DAQ Assistant are "Read Dig Chan.vi" and "Read Dig Port.vi" (located under Hardware Input and Output » DAQmx » Digital Measurements in the Example Finder).
The "Chan" VI reads each line as a true/false value and returns an array of booleans, and the "Port" VI reads the entire port and returns an integer. You can use both of these data types to drive your case structure, but I think the integer format will make the programming easier.
Joe Friedchicken
NI VirtualBench Application Software
Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
Senior Software Engineer :: Multifunction Instruments Applications Group
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)

Similar Messages

  • Making another counter VI for usb-6008 using Labview 8.5

    I want to create another counter for usb-6008 using Labview 8.5 as it is needed to calculate two speeds simultaneously.
    Solved!
    Go to Solution.

    The best way to do this is to use the counter.  The counter counts
    signals without having to interrupt the system or use the USB bus. 
    When you request the number of ticks that the counter has seen, a
    request is thrown from the CPU to the USB line to the 6008, which then
    asks the counter "How many ticks have you seen?"  That number is
    returned over the USB bus, goes to the CPU, and then displays on your
    screen.  Since the DIO lines on the 6008 are software timed, there is
    no way to guarantee that the data returning to the CPU is
    deterministic.  The conceptual difference between software-controlled
    DIO (which nondeterministically returns an entire data stream) and a
    software-tick-request-controlled counter (which returns a single number
    with the number of ticks) prevents us from using the DIO lines on the
    6008.  The cheapest way to count more edges is to purchase more 6008s. 
    Another possibility would be to purchase a PCI counter board such as
    the PCI-6602, which has 8 counters. The most counters we offer in the
    USB form factor is 2 per device.
    -John Sullivan
    Analog Engineer

  • Register level programming for USB 6008

    Hi all,
    I am trying to work with USB 6008 in a linux environment without using DAQmxbase drivers. Since Comedi presently doesn't support USB 6008 device, I am considering writing the driver for USB 6008 myself. Is the register level programming of USB 6008 device possible? Where can i find the related documents and examples?
    Greetings
    aneez

    Hi Aneez,
    Via the following links, you can find information about Register Level programming of our hardware. 
    http://digital.ni.com/public.nsf/allkb/1C3988D7D33B925C86256C59007FB4B4?OpenDocument#Hardware Support
    http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&lang=en&node=seminar_US
    Regards,
    Bas

  • Cable for usb 6008

    Hi friends,
    What is the properties of cable which used to connect  Analog I/O or Digital I/O of USB 6008? How must be selected a cable?
    have a nice work

    For most general applications, basic wires will do the trick.  We dont really have any specified wires to use specifically for most of our modules as it is based off the application (current, circuit length, etc.) but if you want to do a more specific choice, there are a lot of resources online and equations to calculate the necessary wire gauge.  Some links to those are here:
    http://www.electricaltechnology.org/2013/10/how-to​-determine-the-suitable-size-of-cable-for-electric​...
    https://www.bluesea.com/support/articles/Circuit_P​rotection/1437/Part_1%3A_Choosing_the_Correct_Wire​...
    Aaron L.
    Applications Engineer
    National Instruments

  • Standalone drivers for USB 6008

    Hello, all.
    So here's my problem:  I am running an experiment that must be on
    a Windows 98 machine for various reasons, and I want to take some
    additional data using a USB 6008 device. I know that NI-DAQmxBase isn't
    supported on Win98, but I don't think I should need the full system, as
    I've already written a portable C executable on an XP machine, and can
    modify it over there if need be.  However, the USB 6008 can't
    locate the necessary drivers to install on a machine if DAQmxBase isn't
    installed first.  My question is whether there is some way to
    install the USB 6008 without having the full DAQmxBase installation
    present, i.e. if there is some sort of standalone driver somewhere that
    I could download, or perhaps a way to do things using VISA or some
    other lower level interface (though I would hate to have to resort to
    that.)  Any help will be much appreciated!

    HEPatUTstudent,
    Unfortunately there is no way to use the 6008 with Windows 98. 
    Even on a supported OS you still either have to use DAQmxBase or the
    full DAQmx driver -- there isn't a stand alone driver for specific
    devices.
    The 6008/9 were recently added to the full version of the NI-DAQmx
    driver in version 7.5, so if you can move to at least Windows 2000 you
    would be able to program the 6008 in the same API as every other NI DAQ
    device that is supported by DAQmx. 
    Hope this helps!
    Regards
    Doug Mumford
    Applications Engineer
    National Instruments
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • Calibratio​n cert for USB-6008

    It doesn't look like the USB-6008 is supported by the basic calibration certificate generator.   I need calibration certificates for several of these units to meet ISO 9001 requirements.  What do you recommend?
    Thanks,
    Treck

    My response did not post everything I typed.  Like Brian mentioned you could probably get a calibration center to calibrate the device and give you a certificate.  I also meant to say those devices would be good alternatives. So your choices would be to look for a calibration center that would do it for you, or to get a higher end DAQ device.   Sorry for the brief and unexplanatory post from before.
    Have a great day,
    Michael D

  • NI-DAQ for USB-6008, LV 2012

    Hello, I have a NI USB-6008 for which I want to create a VI with Labview 2012 for logging one channel at 0-2V from a current shunt. In the our previous version of Labview 2011 I was experimenting with DAQ Assistant which made the job easy, but in LV 2012 this doesn't seem to exist.
    I was reading help files and I should be able to use NI-DAQmx but I can't seem to be able to find it. In NI Max I can see NI-DAQmx is there and can run  NI-DAQmx test panels on the USB-6008, but in LV 2012 I go to blank VI, block diagram, and I'm stuck. Any help will be greatly appreciated.
    LV 2012
    Windows XP
    NI USB-6008

    Hi there,
    Can you check if you have DAQmx functions in Measurement I/O > NI-DAQmx in the function palette?
    If no, did you re-install the DAQmx device driver together with LabVIEW 2012?
    And what is your DAQmx version you're currently using?
    - Ee Lim -
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • Error -200220 LabView 7.1 USB 6008

    I have two PC one with LabView 7.0 another one with LabView 7.1 and NI-DAQmx Base 1.4 installed for USB 6008.
    If I run example VI for LabView 7.0 on first PC it works OK, but  on second one I get Error -200220 occurred at an unidentified location Possible reason(s):
    Device identifier is invalid.
    Can someone explain me what to do with this error.
    I already tried to update LabView to 7.1.1. and drivers to 7.5 but things are getting even worse with it so I reinstalled all back.
    Can somebody give me simple VI example for this device (for examle AI monitoring) and may be you can help me with this error.
    Sergey.

    Sergey,
    If i'm being totally honest, I would ditch DAQmx Base and move to DAQmx 7.5, in the long run this will make things ALOT easier.
    From your previous post, I'm guessing you already have 7.5 downloaded or on disc somewhere. Install this driver instead. The following guide may help you out:
    http://digital.ni.com/manuals.nsf/websearch/5F6EEBAF2522C98B862570120052F35F
    As soon as you run into any problems, let me know by posting here and I will work through them with you.
    One other thing I would mention is that you may be experiencing problems that have arisen due to multiple install/uninstalls, and the registry may have been mixed and that's why you are having the trouble.
    Let me know how your getting on and we can progress together!

  • 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.

  • Will USB-6008 DAQ be able to power and record voltage for UMS T5 tensiometer at the same time?

    I would like to use my NI USB-6008 to provide power to my UMS T5 tensiometer  (http://www.ums-muc.de/en/products/tensiometer/t5.html) as well as take readings from it, but I don't know if this is possible to do properly. The supply voltage for the instrument can be as low as 5V, which I can easily get from the dedicated +5V channel. I am able to power the instrument and connect it to an analog input on the 6008 and measure a voltage in differential mode. However, while reading the support literature for the instrument, I find the following:
    "Potential data acquisition pitfalls: Because the pressure transducer is configured in a Wheatstone full bridge, the input voltage and signal mV output cannot be connected to the same reference (ground). Hence, the signal mV output can only be measured using a differential voltage measurement. Therefore, do not attempt to make a single-ended measurement of the pressure transducer mV output."  (http://www.decagon.com/assets/Uploads/MeasuringUMSTensiometerswithnon-UMSControlandDataAcquisitionSystems.pdf)
    My understanding is that the 6008 can take a differential measurement if I attach the signal "+" and signal "-" to the positive and negative analog input terminals. However, it seems that all of the Ground ports on the 6008 are grounded to the same reference, which would make my voltage measurement invalid according to the paragraph above. So my real questions is: if I attempt to record the voltage using one of the analog inputs on the 6008 in this way, is the measurement valid? Or do I need to find a separate power supply with a different reference ground to ensure that the measurement is accurate?

    The specification sheet for that device is very poor. The manual is not much better. Companies which want to sell scientific equipment should publish decent data sheets or get out of business.
    In section 3.4.3 General requirements the device is described as a "non-amplified bridge circuit."  This information along with the bridge impedance should be in the specifications because it is essential to applying the device under any circumstances other than the nominal behavior at 10.6 V.
    The answer to your question is this:
    You can use it with the USB-6008.  The 5 V power supply will result in output voltages slightly less than half (5/10.6) the voltages specified under nominal conditions. You can use the differential input mode on the USB-6008.  The absolute input voltages will be about 2.5 V with the 5 V supply. That voltage is within the working range of the device. The differences will probably be less than 100 mV. The resolution of the USB-6008 on the +/-1 V range is about 0.5 mV so your pressure resolution will be around 1 % of full scale. The input impedance and termination voltage of the USB-6008 will introduce some errors.  These may be on the order of 5-10%. I cannot predict much better without the missing bridge impedance specification.  Those errors should be systematic and relatively constant. A calibration of the whole system - sensor and DAQ device together should allow you to compensate for much of that error.
    Lynn

  • Amplifying Type K Thermocouple for high temp reading with USB 6008

    I am attempting to amplify a type K thermocouple so that the signal can be read somewhat accurately by a USB-6008. I have looked at the AD595 chip but it states a maximum useful temperature of 100 C and I am going to need to be reading up to 700 C. 
    Is there another amplifier chip that would work up to this temperature, or should I resign myself to using the signal unamplified and getting a very inaccurate (~30 C/division) reading for temperature?
    Solved!
    Go to Solution.

    A heads up- some people have ran into issues using the chip with the USB-600x devices, various solutions. You may want to browse of these posts ahead of time:
    http://forums.ni.com/ni/search?board_id=170&submitted=true&q=AD595
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • 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

  • What amplifier will recomended for my k-type theromocoupler using usb 6008

    I recently do a project about temperature control system using usb 6008, according to the spec, the minimum AI range is +/- 1V and the thermocouple giv the voltages in jz a mV, so what kind of amplifier will be recomamded? is there any amplifier chip set that available ?

    Analog Devices AD594/AD595 Monolithic Thermocouple Amplifiers (Type J / Type K)
    This would give you a conversion of 10mv per degree C using a single +5v supply you could get to a couple of hundred C
    I get 11 bits of resolution available for the +/- 4v range (11 because I can't see a negative supply available so we are only using one side of the differential range).
    That's a resolution of 2048 bits over 4v giving 0.001953 v per bit
    The devices above give 10 mv per degree C so you would have about 0.2 C resolution and a maximum temperature of around 450 degrees C an minimum temperature of 0 degrees C.
    The device draws about 1mW so you should have no problems with power consumption. (Hint Earth / Ground loops might be a problem).
    I should add that whilst I have used this device many hundreds of times, I have never applied it to the USB 6008.
    http://www.analog.com/en/prod/0%2C2877%2CAD594%2C00.html
    Message Edited by Conseils on 05-08-2007 08:51 PM
    Message Edited by Conseils on 05-08-2007 08:52 PM
    Attachments:
    46185785AD594_fbs.gif ‏17 KB

  • Simulated device capability for the NI USB-6008

     I noticed that Nidaq 8.3, does not have simulated device
    capability for the NI USB-6008.  Is there any way of simulating
    this device?
    Thanks

    Hello mmac,
    Unfortunately, there is no way to simulate the USB-6008.  If you would like to see this functionality in a future revision of NI-DAQmx, I would encourage you to go to the Product Suggestion Center and submit a product suggestion.  R&D considers these suggestions when deciding on new features for development. 
    Best regards,

  • PCB mount connector for NI USB 6008

    I am looking for a Right Angle connector that can mate with the NI USB 6008 module... 
    Could you please provide me the connector P/N
    Chandra

    You're aware they make an OEM flavor that's designed to be board-mounted?
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/202751

Maybe you are looking for

  • Problems with Presonus Firestudio and Logic

    I am having problems with compatability with my brand new Presonus Firestudio recording interface and Logic pro 8. I am new to logic but not to home recording, and i cant understand what might be the problem. When i use the firestudio with garageband

  • MacBook whinning...

    Hey there everyone. I have something interesting that might mean something or might mean nothing. I recently bought a MacBook. And it has been perfect so far. Well... the battery doesn't fit quite nicely and the screws for the RAM access have been st

  • Function Modules to Execute Report Painter Report

    Hi Experts, May I know if there is any way to execute the GR55 Report Painter reports, and get the report result back as a table? I need this to write a program to export the result to a external system. Many thanks!!! Regards, Chris

  • Creating a printable template

    Hi there, Firstly let me excuse myself, I am a new user to LiveCycle, so please forgive me if this is a basic problem - I'm not even sure that LiveCycle/Adobe is the best application to use, so any adve here would be greatly appreciated. At the firm

  • Is it possible to upgrade to OS X Yosemite from Mavericks if you don't have a recovery partition?

    For whatever reason I don't have a recovery partition (so if my hard drive dies I'll have to use internet recovery). That said, can I upgrade to OS X Yosemite without a pre-existing recovery partition? I'm running OS X Mavericks 10.9.5. Thanks for an