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

Similar Messages

  • Audio sampling rate issue using USB 6008

    Hello,
             I'm trying to input audio into the analog ports of my DAQ 6008. I'm using labview 8.5, and generated the DAQ assistant (express), used array index to output the 4 microphone channels into the waveform chart IV (i.e. I'm display 4 charts for the four analog microphone inputs). 
    when I run it, the charts, on the screen, update every 1 sec it seems, which is MUCH slower than I would like to sample at (I perfer the max, of around 10K/s).   does anyone know why it's sampling so slow, and how I can improve this?
    thank you,
    dave

    i cannot use waveform graph instead of chart, becuase i'm gathering scalars, and waveform graph requires at least 1D array data.  Also, in DAQ assistant, how do I set these blocks your refering too?  The only sampling options i see are sampling type (i.e. continuous), samples (which doesn't matter for continuous sampling), and rate (which I've maxed out at 2.5k).
    In the DAQ assistant, the rate of data is being displayed at the correct rate, but in the front panel, and in the file I'm writing too, I'm see only about 1-2 data poins per sec....
    below is a copy of my VI  (note, the system automatically insets a dynamic to array converted.
    thank you!
    dave
    Attachments:
    audiosensory.JPG ‏209 KB

  • Low sample-rat​e measuremen​ts on the PCI-6115 DAQ card

    I need to measure an analog signal at a sampling rate of a few tens to hundreds of Hz in sync with the rising edge of an external clock. I have a PCI-6115 DAQ card w/ Labview 6.1 and NI-DAQ 6.9.2. The PCI-6115 is a high speed card and has a minimum sample rate of 10 KS/s. Is there any way of implementing a low sampling rate measurement using the PCI-6115 in sync with an external clock?
    Thanks in advance.

    Kuldeep,
    It is possible to do what you are describing above (in fact I don't think an external clock is required to do this), however, bear in mind that the reason for this minimum sampling frequency is due to the ADCs used on this high speed board. The ADCs used are pipelined ADCs, meaning that when a signal is digitized, it is digitized in distinct stages within the ADC (in the case of the 6115, I think there are 3 stages involved). Data is moved from one stage of the ADC to the next each time a sample clock pulse is recieved. If too much time elapses between these clock edges, the signal to be digitized can actually 'leak' off of the ADC. This can result in improper digitization, which can lead to less accurate measurements. So, while it is possible to mak
    e the device sample below it's minimum rate, it may be advisable to sample faster than the rates required by your application, and either average multiple data points per measurement, or throw away extra points taken.
    I hope this helps,
    Dan

  • Converting Units in LabView and specifying sampling rate with Universal Library functions

    Hi,
    I am having trouble converting units in LabView 7.0 and having it write to a file / output on a chart in Nm instead of in volts.  I can't seem to find any straightforward instructions, eventhough it seems like a simple task. 
    Another task that would seem rather simple is changing the sampling rate with the XAIn program from the Universal Library for LabView (this is version 5.40).
    If anyone could help me out, I would greatly appreciate it - I have tried other sources without much luck!
    Thanks
    Jenna

    Are you really needing to change units or do you need to scale the voltages read from your sensors? If it's scaling, it would be trivial to set this up in mAX or with the DAQ Assistant if you were using an NI board. Since you are not, then you could use the Scaling and Mapping Express VI. The y axis of a chart is just a label. You can use the text tool to change it to anything you want.
    I have no idea how to change sample rate for your board. Have you asked the vendor?

  • NI 5761 with low sampling rate

    Hi,  is it possible to change the NI 5761 sampling rate without programming FPGA? Thank you very much!

    Hi, as mentioned above you can play with the sample rate by using an external Sample clock. Take a look at the picture attach for the general idea. Simply replace the Boolean buttons for digital input ports. I hope this helps
    Alejandro | Academic Program Engineer | National Instruments
    Attachments:
    Capture.JPG ‏256 KB

  • How to sync. 50Hz sample rate with 5Hz external digital trigger signal?

    Hello there,
    I want to sample an analog input at 50Hz, where I further want to use
    the 5Hz PPS signal of a GPS receiver as an external trigger/clock
    signal for the NI DAQ USB-6008 device. However, I do not want to read
    10 samples every 200ms (= 50Hz avg. sample rate), but I want to read 1
    sample every 20ms, i.e. with "real" 50Hz.
    The "natural" way, it seems would be to use a task that waits for a
    rising edge on the ext. trigger input, then reads 10 samples, then
    waits for the next trigger edge, and so on.
    However, it seems that with this approach I cannot read the data from
    the DAQ with real 50Hz, further it seems that every 10 samples the task
    needs to be restarted, which takes longer than the 20ms (corresponding
    to the 50Hz target sample rate).
    I hope the problem description is clear enough....
    Thank you in advance for any advice.
    Regards,
    Oliver

    You have to use the counter together with the analog input to achive this. You could configure the counter to generate 10 pulses with 50 Hz whenever the counter sees a rising edge on the inpput of the counter. The output of the counter would be used as the external clock for the analog input.

  • Counter Problem at low sampling rate

    What I am trying to do is to count the input from the camera and generate the number of pulses depending on the delay and interval. At the rate of 33ms the program works perfectly but if the sampling rate is 150ms it generates 2 pulses at a time. Is there a better solution to my problem ? Am I doing anything wrong ? Is it a problem with the loop timing or acquisition timing? I have attached the program. What puzzles me is that it doesnt work if the rate is lower! Please HELP.
    Thanks 
    p.s. I am very new to LabView so please excuse my ignorance.
    Attachments:
    CoolSnap.vi ‏142 KB

    Hello sha33,
    Thank you for getting back to me with more information. After looking through your code once more, I believe I have found the issue. Since this application is timed entirely in software, it is based on how quickly your operating system can run the program, and thus cycle through loop iterations. Since you have no Timing VIs in the program, this loop is running as fast as possible. Now, in the 33 ms case, you are getting a TTL edge a lot faster, so the DAQ assistant is updating its count faster as well. Lets say hypothetically that your loop is iterating at 60 ms. This means that every time you run through the loop your DAQ assistant will read the updated count value, and since you are counting every 33 ms, your count value will have updated.
    Now let's look at your 150 ms TTL signal. This is significantly longer than the 33 ms signal in the previous case. Lets say hypothetically your loop is running on average at 60 ms again. This time, your edge will come in and the counter will increment, generating a pulse with the second DAQ assistant accordingly. Now your loop will run through again 60 ms later but your next edge on the 150 ms signal is still around 80-90 ms away. This means that your DAQ assistant will return the same count value as the last iteration, and once again a pulse will be generated.
    Obviously the numbers I used for the loop iteration timing are hypothetical and entirely dependent on the operating system and its resources (i.e. it will run slower with an MP3 or Movie playing in the background). My suggestion would be to use a timing VI such as Wait Until Next ms Multiple to clock your loops more consistently. The goal would be to make sure that your loop is repeating faster than your counter is updating. Alternatively, you could account for the possibility of no counter input in your overall application to prevent a false positive.
    Let me know if I can clarify any of the above information, or if you have any additional questions related to this issue.
    Regards,
    Chris Behnke
    Sr. RF Engineer
    High Frequency Measurements

  • Lock-in amplifier, low sample rate options

    Hello!
    I would like to implement a lock-in amplifier in labview (version 8.5).  I understand that there is a developer kit for the LIA available, and have checked it out; however, it is incompatible with my equipment.
    I have a usb 1608fs card that I am using for for digital to analog conversion, which has a max sample rate of 16000 hz for two channels (signal and reference).  The signal I am trying to lock in on is between 5 and 10 hz.  The main contribution to the noise is 60Hz noise from the air, which shouldn't be a problem.
    However, the lock-in amplifier by labview refuses to work at under 50KHz sample rate, so I am at an impasse.  I could put one together myself, but I wanted to see if there were any options available to me; no point in reinventing the wheel.
    Regards,
    MB

    Here it says the minimum rate is 50kHz. Sorry, but ther is no option to change that.
    Also look at Lock-In Amplifier Startup Toolkit Compatibility with National Instruments Hardware.
    Btw, there is no USB 1608fs card from NI.

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

  • Drive higer load with the usb 6008

    Hi all,
    I need to drive a small motor with the analog output of the usb6008 device ... connecting it directly doesn't seem to work.
    Any suggestions how get it working??? what does the 6008 output?
    My motor works on a AAA battery dricetly.
    Thanks a lot

    On Apr 23, 12:40 am, lav21 <[email protected]> wrote:
    > Hi all,
    > &nbsp;
    > I need to drive a small motor with the analog output of the usb6008 device ... connecting it directly doesn't seem to work.
    > &nbsp;
    > Any suggestions how get it working??? what does the 6008 output?
    > &nbsp;
    > My motor works on a AAA battery dricetly.
    > &nbsp;
    > Thanks a lot
    The analog outputs of the USB-6008 are only rated at 5 Milliamps per
    channel. One suggestion for getting it to work is to use an emitter
    follower to get more current to drive your motor.
    Howard

  • Laser operation with a USB 6008 DAQ

    I'm wondering how I go about using the USB 6008 DAQ in conjuction with labView to turn on and off ths laser: 
    http://www.maplin.co.uk/p/1mw-3v-red-laser-module-le07h
    The laser must be turned on using 3V which isn't possible with this DAQ. I was thinking of usinga BC 109 transistor, then have the laser connected to an external power supply which is supplying 3V to the laser. then have the laser connected to the collector of the transistor.
    I set this up and it didn't exactly work out as the laser was drawing to high a current and not working correctly.
    Can anyone help me?

    OK. The problem is that you need to supply about 30 mA to the laser to get it to work. The digital outputs of the USB-9008 are limited to 8.5 mA or less. Furthermore, a laser diode is a current operated device. If you apply a fixed voltage the current will vary depending on the exact doping used when the device was manufactured and on it instantaneous temperature. The curretn rises exponentially with voltage as in any diode. The link you posted does not have any real data about the electrical characteristics of that diode.
    Typically a current regulating circuit is used to drive laser diodes.  The simplest circuit is a resistor in series with the diode connected to a power supply with a voltage higher than 3 V. The value of the resistor depends on the power supply voltage, the voltage drop across thes witching transistor, and how much current you want to run through the diode. If you have applied 12 V to that laser from a source which can provide substantial current (>50 mA), you have probably destroyed it.
    Lynn

  • Has anyone any experience with a USB-6008 and reading a thermistor value

    Labview 8.0 connected to a USB-6008
    I am using 'BC Components' NTC Thermistor. I used the express VI to create a Vex input and entered the A,B,& C values from the datasheet. The thermistor is the 10K version and I placed a 10K resistor in series with it. I wired it as is shown in the connection diagram, and applied 2.5 volts to it.
    I get completly the wrong temperature readings out of it! I called the NI help line in the UK and the engineer confirmed that I had done everything correctly but couldn't understand why it didn't work.
    Any thoughts?
    Steve Lawson

    I had a similar problem, had it working at one point then screwed it up.
    try this:
    Attachments:
    Temp Pressure EXpress.vi ‏92 KB

  • Why LV 6.1 and Nidaq 6.9.3 can't acquire low sampling rate and high frame size

    My platform is LV 6.1, Nidaq 6.9 on win98
    Everytime i want to acquire data with sampling rate 6 Hz
    and frame size 7200, it acquire just 2 or more data (under 10 data), never 7200 data.

    Greetings,
    I assume by "frame size" you are referring to the numbers of samples to acquire. Please launch the "Find Examples" browser in LabVIEW 6.1. Open the example "Acquire N Scans.vi." This VI has only 4 inputs. After setting your device and channel you will set number of scans to acquire to 7200 and your scan rate will be 6. Since you're only acquiring at 6Hz and wanting 7200 samples, this VI will take 20 minutes to run. At that point the graph will be updated with your data.
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Lossless to lower sampling rate automatic?

    I use Apple lossless for many of my imported songs. Will the iPod touch offer to lower the sampling rate on the fly? My shuffle used to do this.

    Okay, I tried to bite the bullet and include lossless ripped music files in a synch. I did a SmartPlaylist and limited it to 10GB taken from my general Music Playlist, not played in 90 days. It is now synching a little over 5.6GB in lossless and the rest of the 10GB 128/256. All told 1,235 songs.
    It is taking forever to sych. Pardon the pun, but this just about rips it I've got to downgrade the my lossless library which comes from CD's I own. I'm reducing the lossless files now. Hope this works without mucking up the sound too much.
    Apple, please add the automatic conversion to a small file via iTunes like my iShuffle!!! Otherwise I've got to manage two music libraries. Any other Apple Lossless Touch users out there?

  • How can I continuous​ly streaming data to disk with 1MHz sampling rate with PCI 6110?

    I can only save 3 seconds data with 1MHz sampling rate using PCI 6110. Is it possible to continuously save longer time data (say 1 minute)?
    Many thanks

    if the binary file is big the ASCII file is very very very big.
    1 measurement is coded in a I16 => 2Bytes ( 4bit is not used 611X is 12bit
    card)
    if you use +/-1V range the quantum is (2 * 1V) / 4096 = 0.0004883V or 0.4883
    mV you need to use 8 digits minimum.
    And If your binary file is 1 Mo your ASCII file is 4 Mo.
    You can use this VI for inpiration you need to add the translate I16 to DBl
    to make a real value before saving.
    For Help you can mail inthe newsGroup.
    I'am a french user and my english is not good Sorry..
    Fabien Palencia
    Ingenieur d'etude ICMCB CNRS
    "StephenZhou" a ?crit dans le message de news:
    506500000005000000A5AF0000-1031838699000@exchange.​ni.com...
    > Hi, Fabien Palencia
    >
    > The program is great.
    Do you happen to know how to convert the big
    > binary file to ascii file? Thanks
    [Attachment recup data I16.vi, see below]
    Attachments:
    recup_data_I16.vi ‏57 KB

Maybe you are looking for

  • New ipod seen in windows and itunes but not in sync diagnostics

    I bought a second Ipod. Oldest one works fine. New one is seen in Windows and in ITunes. Diagnostics "finds" new Ipod, but on Sync diagnostics says "no Ipod found". Ne Ipod looks like it's staring to sync, then just stops after 30 seconds and goes to

  • Loop conversion automatically and timeline markers

    in my old version of soundtrack, when i set the BPM for a project, whenever i listened to any of my loops/wavs in the browser they automatically pitch shifted and tempo shifted to play along with the project so i could hear how they fitted. when drag

  • How do I sync 3 phones on one computer?

    My daughters have new iphone 5's.  We need to connect them to my computer to get their music but I do not want my contacts to dump onto their iphones.  How do I prevent this?

  • Sync Google Contacts with Entourage - Mountain Lion

    Use Cobook and Google Contacts to sync contacts to my MacBook, iPad, and Android phone.  Love it.  Problem is how to get Google Contacts to sync with Entourage.  Before I upgraded to Mountain Lion, I used Address Book sync and it worked fine.  Since

  • What is a domain in WLS

    Hi All, Im currently working on Oracle 10g AS, am starting to migrate to WLS. Can someone refer to some link or document that would have some concepts which are basics that are to be known to start with WLS. Thanks.