Usb-6009 high-speed continuous acquisition for slow control loop application

Hi,
After watching a few Youtube videos, I successfully built a control loop in LabVIEW using my USB-6009. Currently, this loop is limited by the speed my actuator can take and respond to commands, topping out at 200 Hz. This is completely sufficient for my application. My question is more regarding the wasted potential of the USB-6009 to acquire samples at a much higher rate than what would be obtained if I used a simple single sample-on-demand during every iteration of the loop.
It seems to me that having the USB-6009 continuously acquire samples and having my control loop periodically check in for the latest data when it is ready to execute would have the advantage of allowing me to average groups of samples together to lower the overall noise associated with the measurement process (I am reading voltages from an amplified photodiode).
1) Does anyone know how I would instruct the USB-6009 to continuously acquire at say 10 kHz, so that on each loop I will have 50 or so samples that can be averaged together for a more accurate measurement of my control variable? Unfortunately, I'm new to this and not too familiar with DAQmx Timing.vi.
2) I've heard that reading into a buffer can increase latency for moving data into the computer. Given the low speed of my control loop, I don't foresee this as being a problem. Is this a correct assumption? I can probably live with an extra millisecond of latency.
3) I goofed around briefly with DAQmx Timing and managed to see a buffer overflow error. Certain rare events will by necessity cause my control loop to take much longer to execute, so I cannot guarantee that occasionally during normal operation I will not overflow the buffer. Can I suppress this error so that the dialog box does not pop up and the program continues to run uninterrupted? If the buffer overflows and old data gets overwritten it isn't a big deal for me since the control loop is only concerned with the latest data anyway.
Thanks for any info!

Howdy Patrick!
Here is a picture of the front panel:
Here is the block diagram:
And I've attached a copy of the VI saved for LabVIEW 7.1.
Regards,
Barron
Applications Engineering
National Instruments
Attachments:
most recent samples.vi ‏73 KB

Similar Messages

  • High-speed data acquisition and DMA

    Hi, I have a custom home-made 4 channel, 16 bit data acquisition board that has onboard memory of 2 GB and can sample at 250 MSPS. The daq returns data in 1 MB data block size. The Labview wrapper allows us to operate this board in two modes (continuous and acquire once). In acquire once mode, I can use the circular buffer architecture and stream data to the disk (difficult to view data in real-time). The continuous mode work in a way that arims the daq board acquires the data, rel-arms the daq for next 1 MB data and can return data for real-time display. However, during this arm/re-arm time crucial information is lost. The solution would be to access the DMA data as fast as we can and process it. Can you please show me an example to achieve this in simulation mode?
    Thanks
    RY

    Then you say the DAQ time take 1 sec, and the processing time about 4 second. How do you know this? Without having any VIs. And why do you have to read your DAQ unit every second. Also are you sure your processing part of your program is optimal. It is quite easy for a beginner to write Labview code that is very slow then dealing with arrays.
     I am quite sure you have some Labview program. But you for some reason do not like the thought of posting your code. Just post them and let us take a look. Hard to help not knowing any thing
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • High speed DSL is very slow

    Hi I am barely getting dailup speeds (Verizon speed tests 74k download and 14k upload) on my HS DSL. I've put up with slow speeds for a while but I just can not put up with it any longer. If things do not improve soon I will be forced to go to cable. Youtube is unwatchable, downloads take forever.  I am using a westell 327 modem.  Any ideas on how to get the promised bandwidth would be apprecated.
    jim s

    Step one: Visit http://www.giganews.com/line_info.html and post up the Traceroute the page shows, if you wish. Be aware that the final hop (bottom-most line of the trace)  might contain a hop with your IP address in it. Remove that line. What I'm looking for is a line that mentions "ERX" in it's name towards the end. If for some reason the trace does not complete (two lines full of Stars), keep the trace route intact.
    Step two: Can you provide the Transceiver Statistics from your modem?
    Which means
    Visit http://192.168.1.1/ for me and do the following:
    a) If you see a Blue and White Westell page, mouse over [b]Troubleshooting[/b], go to [b]DSL[/b], and choose [b]Transceiver Statistics[/b]. Copy and paste the information on that page.
    b) If using the Red and Black Firmware: Go to [b]System Monitoring > Advanced Monitors > Transceiver Statistics[/b]. Copy and paste the information on that page.
    c) Try visiting http://192.168.1.1/transtat.htm which is a direct link to the Stats on older modems.
    d) If you need a Username and Password, try the following:
    admin/password
    admin/password1
    admin/admin
    admin/admin1
    admin/[b]Serial Number[/b].
    By [b]Serial Number[/b], I don't mean type in the words [b]Serial Number[/b]. I mean find and type in the serial number found on the bottom of this router.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • U410 fan running at high speed continuously

    Hello,
    I updated to Winows 8.1 yesterday on my U410 and noticed that the fan has been louder than when it was running Windows 8.
    I've tried to look for maybe a BIOS update for U410 but I wasn't able to find it.
    Has anyone else come across the same issue and know how to fix it?
    Any input would be appreciated.
    Best,
    Jay

    jaykik wrote:
    Hello,
    I updated to Winows 8.1 yesterday on my U410 and noticed that the fan has been louder than when it was running Windows 8.
    I've tried to look for maybe a BIOS update for U410 but I wasn't able to find it.
    Has anyone else come across the same issue and know how to fix it?
    Any input would be appreciated.
    Best,
    Jay
    There is a new version for power management for win 8.1 (8.0.2.20). Try downloading and install it.

  • DAQ Assist Continuos High Speed Display

    I am using the DAQ Assist to read in voltage data and display it as a scrolling chart. When I set it to take "N Samples" it works well, but wont display that data until the N samples have been collected. When I switch it to a continuos mode and set it to take 1 sample buffer at the same rate (20kHz) it actually samples much slower. Any suggestions about how to get a continuous chart that still shows the the data at full speed?
    Thanks

    The DAQ assistant, while it is great for getting a quick and dirty DAQ task up and running, isn't really designed for high speed data acquisition with precise control.  You will likely need to use the lower level DAQmx functions.  Start a task, acquire chunks of data in a loop, end the task.  You may need to pass the data off to a parallel loop for data processing, display, or logging using a producer/consumer design architecture.  Take a look at the DAQmx examples in the example finder.
    If you right click on your DAQ assistant and select Open Front Panel, it will turn the Express VI into a subVI that you can open and see how the underlying DAQmx code works.
    It may even be a matter of selecting continuous samples in your DAQ assistant, a small number of samples to read, have it in a loop that iterates enough times until you have collected your larger number of samples.

  • Pushing the limits of continuous high-speed DAQ + processing, with PXI-6115 + PXI-8360

    Hi all,
    I'm trying to do continuous high-speed data acquisition + processing. I currently have:
    Chassis: PXI-1042Q
    AI card: PXI-6115 (x2)
    Link: PXI-8360
    PC CPU: Intel Xeon W3503 (dual-core, 2.40 GHz)
    RAM: 4 GB
    The idea is to continuously grab 8 channels' worth of analog inputs, scan for "events", and if found, log the events to disk.
    My client would like to use the maximum sample rate of 10 MHz, but I found that above 5 MHz, DAQmx Read.vi can no longer keep up (e.g. at 6 MHz, it takes 110 ms to read 100 ms' worth of data).
    Im thinking of getting beefier components, but I'm not sure where the bottleneck is. Here are some thoughts:
    1) The MXI Express link
    The PXI-8360 is rated for a sustained throughput of 100 MB/s.
    I'm not sure how big the data is. PXI-6115's ADC is 12-bit. Does that mean each datum transferred through the MXI cable is 1.5 bytes? Is the data padded? Or is it 8 bytes per datum, because Dbls are being transferred?
    2) The CPU
    In Resource Monitor, I notice that the CPU usage is 0% at 60 kHz, 8% at 61 kHz, and 50% at 70 kHz (meaning that one core is maxed out). I'm surprised that it keeps up all the way until 5 MHz though.
    What causes this high CPU usage? Is it due to the conversion of the data into 1D array of waveforms?
    3) Something else?
    Have I missed something completely? Is what I'm describing even possible?
    Thanks in advance for any advice!

    Hello,
    Each sample will take up 2 bytes, 12 bits data + 4 empty bits. so the PXI-PCI 8360 is only able to transfer a maximum of 50S/s in this case.
    Also, because the PXI bus is shared among all of the cards, two PXI 6115 cards will be trying to transfer 80MS/s or 160MB/s.
    Finally, since the PXI 6115 are DAQ family cards, their specifications aren't really written for continuous data acquisition at the upper end of their sample rate, but I'm interested to know if you can get up to 10MS/s with only one card operating at a time?
    -Jim B
    Applications Engineer, National Instruments
    CLD, CTD

  • MacBook Pro can't recognize battery, fan is at high speed and computer functions really slow

    My MacBook Pro suddenly won't recognize it's battery so I tried rmoving it's battery and put it back again. I can use it but there is still an (X) sign instead of the battery percentage on the upper right corner of my desktop. After this I turned on my laptop and all of a sudden the fan turned on on high speed and it became slow (by slow I mean really slow) even if I don't open/use anything on my computer because of this I went to an Apple Service Center and they tried to check if its because of the hard drive, RAM and all that stuff. They told me it's not because of those things but they also told me that maybe the wiring or the cable of the battery that connects to the computer is not working so I have to replace it. But for the fan and the slowing of my computer they don't know what's happening.     
    I really need help. Pleaseeeeeee. Thanks in advance.
    MacBook Pro 13"
    OS X - 10.9.5
    Processor 2.4 GHz Intel Corr 2 Duo
    Memory 4 GB 1067 MHz DDR3

    Perform a SMC reset:
    http://support.apple.com/en-us/HT201295
    If no change, run an Apple hardware Test:
    http://support.apple.com/en-us/HT201257
    Ciao.

  • Usb 6009 not recognized in simulink/matlab 2012b

    i have matlab 2012b and when connect DAQ ni usb 6009 matlab recognize it but when i open simulink library and Data Acquisition Toolbox and when add analog input it belongs "winsound Michrophone...'
    so any body can help me to simulink/matlab recognize usb 6009
    thanks

    Hello,
    The Data Acquisition Toolbox that you are using is supported by MathWorks®. It is supported under the version of the software that you are using. Please contact The Mathworks, Inc. for further troubleshooting steps.
    MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.  All other trademarks are the property of their respective owners.
    Wear
    National Instruments
    Product Support Engineer

  • Opening & closing a solenoid valve using ni usb-6009

    Hi,
    I am very new to labview so any help would be apprciated.
    I am using the ni usb-6009 as a power source for my solenoid valve. The valve is 12vdc but because the max output voltage for the ni usb-6009 is 5v i have designed and build an op-amp circuit which will amplify the voltage. I want to create a vi that will give a +5v digital output when a push button is pressed and 0v when the push button is off. What would be the most efficient way of doing this? Thank you.
    Solved!
    Go to Solution.

    How much current does the solenoid draw? You say that you are powering the solenoid from the USB-6009 so just converting the voltage from 5V to 12V will not work - there is a current limit of 8.5mA on the 6009 which will not be enough to power the solenoid. You will need to use an external supply that can provide sufficient current to drive the coils of the solenoid and then use a transistor circuit to switch on the supply from the digital output of the 6009 (which can't draw more than 8.5mA).
    Once you've got your circuit right, you can use MAX Test Panels, the Data Acquisition Express VIs or the DAQmx palette in LabVIEW to control the digital output. There are lots of examples in LabVIEW on how to do this
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Shoot 720p 60 for Slow Motion on PAL DVD . . ?

    Ever since I became interested in shooting slow motion, I've been quite envious of NTSC users because they enjoy 30 fps rather than PAL's juddering 25 fps.
    Interesting to note that the +'grass is always greener'+ syndrome has kicked in though. A great many NTSC video makers are desperate to achieve the +'film look'+ while many over here, want smoother footage.
    Personally, I fail to understand why anyone would want juddery footage, but then I detest the wavy camera phase that film makers are going through at the moment. Now I'm showing my age.
    With the galloping technical advance of 'prosumer' camcorders, we now have a choice of formats and this has led me to wonder whether shooting in 720p 60 fps and then converting this to PAL DV could achieve a nicer slow motion than shooting 720p 50 fps.
    I'm not in a position to run any trial just at the moment, but the idea's been in my head for a while now, and I wondered if anyone has any thoughts or experience on this.
    Because of the nature of my subject, I cannot predict with much accuracy which scenes will be required at normal speed and which will be slow, so I shoot everything at 50 fps and then I can choose.
    +PS. I'm not very technically minded so forgive me If I've overlooked some obvious flaw!+
    I should add (although it's surely obvious) that I shoot in HD in an attempt to 'future proof' my footage. The vast majority of my audience has only recently converted to DVD, let alone HD.
    Message was edited by: andynick

    Sorry, did kind of lack technical details but then there are precious few to consider, after all, overcranking (running a camera at a higher recording framerate than the intended playback framerate) has been the way this has been done for years, and the new video cameras that allow 60p recording make an ideal poor man's high speed camera, especially for 24p and 25p playback. Also its much easier just to tell folks what they want to hear

  • Is high speed needed

    Is high speed internet needed for the airport extreme to work? I want it for the other functions and only have a slow dial-up connection. Can it function fully with having an internet connection?

    The AirPort Extreme base station (AEBS) can be used without any connection to the internet.
    The AEBS does NOT have a built-in modem of any kind and therefore it will not be able to directly connect to any dial-up ISP.

  • Logic analyzer using usb 6009

    i am having 4 LEDs which are flashing in sequence to the decade counter. i want to observe the flashing sequence of these LEDs on LabVIEW using usb6009 such as 0000, 0001, 0010, 0011 and so on...
    how can i view them on a digital waveform graph...making it a simple logic analyzer... please help..

    First, the USB-6009 is not very suitable for a logic analyzer because it only has software timed digital inputs. So you are limited to how fast you can acquire the data and  the timing between successive samples will have significant jitter.
    Within those limitations you can somewhat demonstrate the concept of a logic analyzer with the USB-6009 for slow signals. If the flashing sequence of the LEDs is slow enough to be perceptible to the human eye/brain, then you can probably get something like what you want.
    Start by looking at the DAQ examples to see if there is one which is close to what you need. Find the best example, copy it to a new name and then modify the copy as needed.
    If you want better timing accuracy and resolution, consider using analog inputs. They are hardware timed. With four channels you could probably get 10 kHz or slightly more.
    Lynn

  • High speed event counting

    I am looking to count events where an event is defined by 1 ttl pulse of 30ns (A newer device allows for 3V 9ns)  I prevoiusly used the6602 but am looking to make a standalone singleboard rio application.  When talking to some engineers this I was told that this was possible, but looking at the spect there needs to be a 100ns min pulse width.  Are there any work arounds?  Is it possible to add sme chip as a prescalar to the input (divide by 10 highspeed counter?)  I am stuck and am ready to meke some hardware decisions.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

    falkpl,
    As I am not certain if a moderator can move a post, the best way would probably be to re-post the question on your desired board. Be sure to post a link here to the new discussion. You generally want to avoid double-posting, but as long as it is clear that this discussion was moved to another place, most people will forgive you. 
    Now, assuming you have not posted elsewhere, I will comment on your issue. The sbRIO's have IO pins that allow you to connect right into the FPGA. As you have found, the manual guarantees a 10 MHz rate and states you can get a bit faster if you are acquiring a single 3.3 V signal.
    To get even faster, you may have a few options.
    Use a deserializer to break up one high speed signal into multiple slower signals.
    A similar idea which will not require external hardware, but maybe a bit more programming is to read the same channel on several inputs with slightly staggered start times. This post discusses the idea a bit more.
    Good luck, let us know your thoughts and how it turns out.
    Peter Flores
    Applications Engineer

  • USB-6009 DAQ

    Hi;
    Would you please advise which NI-DAQ software version is for USB-6009 using LabVIEW 7.1?
    Regards

    Hi;
    I have downloaded NI DAQ MX 8.9 which is supports LabVIEW 7.1, but it can not detect the NI USB-6009 driver and still asking for the driver.
    Can anyone help please?
    Regards

  • Measuring temperature Via Thermocouple and USB-6009?

    Hi,
    I am trying to perform temperature measurements using a k type thermocouple and the USB-6009 DAQ. I tried to use the Cont Acq Thermocouple Sample.vi from LabVIEW's example list, but unfortunately I don't know how to fit my DAQ and thermocouple in the vi code. I don't know how to create a thermocouple temperature measurement channel or how to get all the channels in the task, etc.
    Any help is appreciated.
    Thanks.

    bilbeigg,
    It should be noted that the USB-6009 is not well suited for thermocouple measurements.  It has 14 bits of precision with a minimum input range of +/-1V, which means it can only detect a voltage change as small as about 122 microvolts.  This is much too large a change to get a good temperature reading with most types of thermocouples.  Here is a discussion thread on the same topic (Note that the USB-6008 and 6009 are very similar):
    http://forums.ni.com/ni/board/message?board.id=170&message.id=294080#M294080
    Here is a knowledgebase that explains what you are seeing:
    http://digital.ni.com/public.nsf/allkb/8166630BD6965EEA86256FDD0052E89C?OpenDocument
    Chris M
    Message Edited by CMal on 03-12-2008 12:17 PM

Maybe you are looking for