Pulse counting with USB 6008

Hello world!

I have a project with USB 6008. I want to count impulses (for special features: count the pulses of the encoder) use USB 6008. I wirite with DAQmx to test a simple. But it do ' t run. Please see and help me to do this exercise. I just borrowed 6008 USB so I don't have any experience with USB 6008. Thank you! It's funny.

Looking at the PFI0 manual (pin 29) is correct and I don't see anything wrong with the code and example should work. I have a M-series card, not a 6008 and it works for me. This error code is meaningless if. Are you sure it's the number?

Tags: NI Hardware

Similar Questions

  • Get incremental counter/sound to work along side with action with usb-6008 with labview tia sal22

    Get incremental counter/sound to work along the coast with usb-6008 with labview tia sal22

    Hi all

    I can get this vi to work if they are distinct from the vi but I can't join them together

    Example of my error:

    If buffers are set to 0 the freq counter increment works, but no sound
    If the buffers are set to 1 the audio works fine but is not increment the Freq counter
    If the buffers are attached to more 1 clicks and pops are coming

    That's what I'm doing:
    (1) have the frequency of increment of my internal sound card to a certain level as .01hz a second until he gets to 20 000 hz

    (2) use my device usb-6008 daq, which is connected to the same machine to measure the voltage at the same time. (I am in a position very low voltages between 1-5volts)

    (3) output to a worksheet text file which will show you:

    time in seconds, frequency, voltage
    0,400.01,2

    1,400.02,2.5

    2,400.03,1

    I'm a bit confused about how connect the increment and the audio during the measurements with the usb-6008 housing on the same machine
    at the same time and in the same VI.

    Anyone have any ideas?  I'm using labview 8.5
    TIA sal22

    Ha ha you have been deceived by a dynamic thread. Insert a convert from Dynamic Data Express VI (Palette to own: Signal handling screw Express) between the daq read and build the array function. Then it won't work. Now the value in the dynamic data is only converted to a numeric value

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

    I want to create another counter for usb-6008 using Labview 8.5, it is necessary to calculate the two gears simultaneously.

    The best way to proceed is to use the meter.  The counter counts
    signals without having to interrupt the system or use the USB bus.
    When you ask the number of ticks that saw the meter, one
    request is thrown from the CPU to the USB line to the 6008, which then
    request counter "ticks how have you seen?  This number is
    returned on the USB bus, goes to the CPU and display on your
    screen.  Given that the DIO lines on the 6008 are software timed, it is
    no way to guarantee that the data back to the central unit is
    deterministic.  The conceptual difference between software-controlled
    DIO (that nondeterministically returns an entire stream) and a
    meter software-tick-application-controlled (which returns a unique number
    with the number of ticks) prevents us from using the DIO lines on the
    6008. the best way to count more edges is buying more 6008 s.
    Another possibility would be to buy a PCI card to counter such as
    the PCI-6602, who owns 8 counters. Most of the counters we offer in the
    USB form factor is 2 per device.

  • Frequency of maximum output with USB-6008

    I have a digital circuit containing 3 exits, 3 inputs digital and analog 1 entry in labview with my USB-6008. When I connect to the entrance (via the DAQ assistant) analog, the output frequency is reduced to a maximum of 27 Hz, but I need 50 Hz. is possible to do?

    Ah.  You'll need a DAQ better than the 6008, to do.

    There is no train generation feature buffering or the pulse on the 6008.  The outputs are all timed by the software, you cannot build a table and tell the 6008 in the output array.  Out of the 6211 must be able to produce this signal.  Series X-series Renault will do what it takes; the USB-6341 is probably your best option.

  • Lack of external input clocked with USB 6008

    I'm a little confused on how to extract digital data without an external clock.  I guess that there is a way to do it, or this device would not do any digital input advertising, but I don't understand exactly how that would work.  Apparently, my only option is ' we demand. "

    I take data frames occurring about every 1 ms with a frequency of 950 kHz clock.  I have this completed with a more sophisticated Board using a clock from the data source.  We now want to translate this to the USB-6008, so we can use the 6008 OEM like a daughterboard for our data source.

    Avoiding him depends on the software you use, the pc, the os, etc. Whenever you want to do a reading of a line, you do a Read DAQmx. Absolutely no correlation with a time given because windows is not even close to deterministic. You may have readings in the low khz range.

  • Loss of communications with USB-6008

    I have a USB-6008 be used to control a couple of valves with its digital output channels. The digital output channels are a relay that energizes the solenoid valves (valves are 115VAC) switching. The USB device is connected to a USB port on laptop.

    The software/hardware was working fine, then some time while it was connected there was a power surge. There was a 2 a fuse on the 115 VAC line that blew.

    After this communication surge was no longer able to be implemented with the box USB-6008. Is it possible for a power surge affecting the USB device, even if his power comes from the power supply of 5V USB?

    Things I checked so far.

    Restart the computer with the USB unplugged and start back up - no connection

    Check the Device Manager for the USB device to be present - not visible in the Device Manager

    Check MAX for device - does not present as gift

    Check the wiring to the son of course drop - no defeated cables

    try on different laptops - connection

    Connect other USB devices to the laptop USB - another fine feature of devices USB slot

    Check the + 5V channel on the USB device and do not read a voltage

    Any indication seems to be that, somehow, the USB device has been damaged during this surge? Is there some kind of diagnosis offline, I do without seeing the unit online?

    Hello the plough,

    It looks like the surge caused a sort of feedback of the valve of your USB device. This USB device is not designed for industrial applications and can easily be damaged in the situation you described. For a USB device with a greater ability to withstand this type of power surge, you should watch the box USB-6525. A better solution would be a CompactDAQ or CompactRIO system with a NI 9401, which is designed to withstand 1 000 Vrms, verified by a 5 s dielectric withstand test.

  • Data acquisition with USB-6008 using C++

    Hello

    I am trying to use USB-6008 to collect analog data without using Labview, since I can't afford the lincence. I searched in the C++ provided with product samples and found "Simple example of analog input.

    The compiler I use is codeblocks instead of visual studio (once again for monetary reasons). The code seems to works since when I run it with the USB-6008 box connected, he wrote "gains 1000 points.

    I have 3 questions relating to the use of this code:

    1. where are stored the 1000 points?

    2. How can I modify the code to specify the time acquisition and the frequency of acquisition?

    3. How can I change this code sample points simultenously with 8 analog inputs?

    Thank you for your help,

    I'll try to add any clarification if necessary.

    Albany

    Your questions are answered in help for c programmers.

    1000 points are in the variable array of points called 'data '.

    The sampling frequency is set to sync.

    The number of points read is defined with the function of reading.

    Read channels are defined with the function channel set. To read multiple channels, use syntax such as Dev 1 / ai0:3 for the first 4 channels.

  • Amplification of Type K Thermocouple for playback with USB 6008 at high temperature

    I'm looking to amplify a K type thermocouple, so that the signal can be read with a bit of precision by a USB-6008. I watched the AD595 chip, but it indicates a maximum useful temperature of 100 ° C and I'll need to read up to 700 C.

    Is there another amplifier chip that would work up to this temperature, or should I resign me to use the unamplified signal and get a very inaccurate (~ 30/division) the temperature reading?

    The AD595 has a range of-200 C to 1250 C, here is the data sheet:

    http://www.MNE.PSU.edu/Sommer/me445/AD595.PDF

    -AK2DM

  • Measures of true bipolar voltage with USB 6008/6009

    The 6008 or 6009 to make true bipolar (positive and negative voltages referenced to GND) measurements?  If not, what is the solution to purchase cheaper data this feature?

    Thank you.

    The question of unipolar vs bipolar vs bipolar Pseudo-aleatoire also was mentioned in this thread.  The 6008 6009 use bipolar-only mode and load the setting differential input or CSR.  Please note that {unipolar / bipolar / Pseudo-bipolaire} is independent of {differential / CSR / Pseudo-differentiel}.

    The 6008/6009 don't use 'Pseudo-bipolaire', which means that each differential input should be positive with respect to the ground.

    Best regards

  • USB 6008 weird analog voltage reading

    Hello

    I use the USB-6008 to measure a voltage of a Lithium battery, 3.66V.

    the battery come with a blocking diode (in series with the battery) of 1N5820, who have a fall of voltage drop of 0, 1V.

    battery with diodes in series (this is the way in which the battery is shipped with)

    -measure with DDM yield 3.66V without you connect to usb6008

    -measure with DDM yield connected to usb6008 (putting OUT VOLTAGE USB6008) 3.59V

    -able with USB-6008 performance 3.59V connected to usb6008

    battery with diode removed

    -measure with DDM yield 3.66V without you connect to usb6008

    -measure with DDM yield connected to usb6008 (putting OUT VOLTAGE USB6008) 3.66V

    -able with USB-6008 performance 3.66V connected to usb6008

    Thus, it seems that the problem is in the led in the series.  This is why the battery voltage has fallen to 0.07V? the series diode will hurt the USB-6008?

    Maybe people who know the circuits inside the USB-6008 can give me an answer.

    Thanks in advance.

    Hi learnerd,.

    The fall that you see is falling forward in the diode.  As an entry class device, the USB-6008 case has a relatively low input impedance (144kOhm) and thus draws a little current of the device.  Looking at the datasheet of the 1N5820 (http://www.onsemi.com/pub_link/Collateral/1N5820-D.PDF), Figure 7 shows that at 25 ° C, a draw of 50mA will cause a fall front of 200mV.  While the figure does not extend the curve below 50mA, extrapolating the given curve would indicate that a drop of 70mV would cause only a few current microamperes.

    A DMM will have a much greater input impedance (GOhms instead of kohm) and won't draw enough current to influence the measure, that's why you wouldn't see the decline with only the DMM.

    The diode will not harm the USB-6008 somehow.

    Good luck with your application,

    The f

  • USB 6008 angle measurement?

    Hello friends

    I need to measure the angle of rotation of the shaft with a precision of 1 degree... is there any simple device can I connect with usb 6008 custom angle...

    Thank you

    180 degrees is very different from continuous rotation. Just wire a potentiometer to one of the analog inputs and try to calibrate it.

    You don't need the LM317.  It will not help you with what you have described so far.

    Lynn

  • Population of list for the NI USB-6008 channel

    Hello

    I use labview version 2011. I have worked with USB 6008 for two months, but I encountered an error constantly even if I restart or shutdown of the PC for a while. I connected to my channel 6008 AI0 asensor and DAQ Assistant is not populating the available analog channels. Please someone help. Since it worked fine for a month, but not today.

    History was end I solved my problem after seeing the "Error in the knowledge base" pecautions on the site of NOR. Now the help data acquisition work.

    But I wonder how MAX data are linked with these DAQ contest. Some can clear me how MAX is related with all these functions of time real Labview.

    By the way, I'm using labview for two months.

    Thank you very much.

  • Generate a binary sequence with the NI USB-6008

    Hi all

    I'm new to LabView and I am trying to generate a binary sequence with a box NI USB-6008. The sequence, I'm currently generate is a counter of 5 bits, i.e. 00000 00001 00010, 00011... 11110, 11111 placing each bit in a different digital IO of the of the 6008 NOR, so that I can use the County as the bits of selection in a decoder/demux.

    I managed to simulate the binary sequence and produce a graphical interface, but I have not found how to generate the sequence of bits with the NI 6008.

    Totally, I'd appreciate any help you could provide. Thank you very much.

    Hi JosephM,

    Good Afternooon and I hope your well today.

    I just tested the code on a 6008 and also released the above code is very complex - I was for some reason any fixed on using Boolean tables.

    Please see the attached code, in LabVIEW 8.6.

    Mind you, I have configured the task as a channel for all lines. i.e. digital single I spent, is the task value should apply to all channels selected in the entry. So if you select only port0/Dev8/$line0 for example, the DAQmx driver will examine the LSB of the digital and work so $line0 must be true from the false. It will NOT update all other channels. So when I select line0:4 - it will update the first 5 lines (bits) in digital. As the code generates a number from 0-32 he emotional generates 00000 to 11111.

    I hope this finds you well and sorry for the first post!

  • USB-6008 LABVIEW 8.2. SINGLE CHANNEL WITH DBL INPUT VOLTAGE OUTPUT COMPARISON

    I AM WRITING A PROGRAM THAT USES A SIMPLE USB-6008 ANALOG INPUT CHANNEL. I WANT TO READ CONTINUOUSLY THE VOLTAGE FOR 60 SECONDS. I WANT TO COMPARE A TENSION FOR THE PREVIOUS OF THIS SAME CHANNEL VOLTAGE, MAINLY FOR THE PERIOD OF TIME MAX VOLTAGE GIVEN, THEN GET A FINAL VOLTAGE READING. THE OUTPUT OF THE VI IS A DBL. I WANT ONLY TWO TENSIONS OF EXPORT TO EXCEL. TO SAVE TIME, I KNOW HOW TO EXPORT. CAN SOMEONE HELP ME WITH THIS ONE.

    VI needs an register shift related to the Max & Min function. The current value would be the entrance is and the entrance of x is the left shift register. The max value gets wired for the shift register to the right. Don't forget to initialize it. The output of the shift register is the max you would write and the value of the DAQmx Read out of the loop of wire will give you the last reading.

    Your waiting for 45 seconds makes no sense since you said that you wanted to read continuously. You also said that you wanted to read 60 seconds and all this logic is missing. A simple function of time elapsed, it's all you need.

  • Compatibility of the Thermocouple K with USB NI 6008

    Hello

    I have trouble choosing what to buy to make temperature measurements with my already purchased NI USB 6008.

    I intend to use LabView to work with these measures of temperature and link them to other measurements with other sensors using the same NI USB 6008.

    After some research, I think I'm going to need a K Thermocouple as this one: http://fr.rs-online.com/web/p/sondes-de-temperature/3428899/

    But my question is: I'll be able to use it, simply cut off the connector and connecting the cables to my NI USB 6008, or do I have to use a special system like this: http://sine.ni.com/nips/cds/view/p/lang/fr/nid/208177

    And if I need such a system, I'll be able to use measurements with other sensors on the same LabView?

    My hesitation comes from this document: http://www.ni.com/pdf/manuals/371303n.pdf

    Page 13, seems, I have to use 2 resistors to bind my Thermocouple K to my NI USB 6008, but the use of such a system will make it difficult to obtain certification (this system will be part of a machine).

    Hoping you can help me,

    Patatelover, Polytech' Clermont-Ferrand, FRANCE

    PS: Sorry for my English, I am not native...

    The 6008 is not appropriate for the measures by thermocouple - see this article for details, but in short, you would be able to measure at a minimum resolution of 8-9 degrees with a precision of 30 degrees.

    You must use either a USB as the connected USB-TC01 thermocouple module, superior performance DAQ (with a range of smaller / more high resolution) or use a C-Series Thermocouple module.

Maybe you are looking for