How to Optimize SCXI 1600 for speed with Thermocouples

I'm working on a data acquisition system for my engineering firm and I'm trying to find a way to use our new thermocouple system as fast as possible.
The requirements for the DAQ process are:
Read 32 voltage channels from a PCI-6071E card
Read 32 thermocouple channels from a SCXI-1600 with an 1102C accessory
Complete the entire operation in under 5ms (this is so other parts of the program can respond to the incoming data quickly and trigger safety protocols if necessary)
Using LabVIEW 7.1 and MAX 4.4, I've got the voltage channels working to my satisfaction (with traditional DAQ VIs) and the rep rates I measure when I run the program are around 1ms (I do this by putting the DAQ code in a loop and reading the millisecond timer every time through that loop, then calculating the average time between loop executions).  I have been trying to get similar performance from the thermocouple channels using DAQ Assistant and DAQmx.  Some of the problems I've encountered are:
Very slow rep rates with 1-sample and N-sample acquisition modes (300-500ms)
Good rep rates when I switch to continuous mode, but then I get buffer overflow error -200279.
When I attempted to correct that error by setting the DAQmx buffer to overwrite unread data and only read the most recent sample, the calculated sample rate went to 20ms.  It was around 8ms when I left the error unhandled and continued acquisition.
At this point I'm out of ideas and am just looking for something to try and optimize the DAQ process for speed, as much as is possible.
Thank you for any help.

I guess I would be interested in checking out your code to see if there is anything I can recommend on changing.  However, I do have a few general Ideas of how to improve your performance.  These recommendations are purely based on what you could be doing to slow down the speed of the program because I am not sure how exactly you have everything set up.  
-Are you setting up the task and closing the task each time that you read from your daq card?  the way to get around this is to only have the DAQmx read vi in the while loop so you do not have time alloted for opening and closing the task each time.
-Try using a Producer/Consumer architecture.  This architecture uses queues and splits the aquisition with the post processing.  Here is a link to how to set up this architecture and some information on when to use it.
Application Design Patterns: Producer/Consumer
http://zone.ni.com/devzone/cda/tut/p/id/3023 
Message Edited by Jordan F on 02-06-2009 04:35 PM
Regards,
Jordan F
National Instruments

Similar Messages

  • How to optimize your PC for the 0404 USB and 0202 USB

    This is a guide on optimizing your system for the 0404 USB and 0202 USB.
    Make sure the 0404 USB is using a USB HOST that is on an IRQ alone. This means no other device in the PC can be sharing its IRQ.
    If you are running a hyper-threaded CPU, by turning hyperthreading off from the bios. You can set the latency at 20ms or lower and you will usually not have any latency issues.
    Change Processor Scheduling to 'Background Services' - Navigate to the Advanced page of the System applet. Click on the Performance Settings button, select its Advanced tab and click on 'Background Services' for Processor Scheduling.
    Switch Off Power Schemes - In the Power Options applet, choose the 'Always On' power scheme. Change the settings for monitor and hard disk turn off and System standby to 'Never', so that your PC doesn't unexpectedly conk out during song playback
    Disable System Sounds - Select the 'No Sounds' scheme on the Sounds tab of the Sounds and Audio Devices applet.
    Make sure legacy USB support is disabled in your BIOS.

    Hi everybody.
    This message to share my experience of the 0404 USB under Windows 7.
    I previously operated this sound adapter under Windows XP and it was working fine with my pipe organ simulator (Hauptwerk).
    When I switched to W7 on a Dell Vostro (professionnal series), sound was muting after exactly one minute . The same with a video on Yutube.....
    I did all the adjustments suggested here and there on the web (sampling rate, drivers) , I tried to operate at moonlight, I shot a chicken, etc ...
    After many manipulations, I noticed that, if I was doing "something", for instance moving the sound level up and down, the sound was going on ....
    The solution was in part at the beginning of the topic "how to optimize your PC for th 0404, etc ....".
    The keyword is "interrruption".
    As a matter of fact, the Dell laptop is strongly closed. The BIOS allows no adjustment of nothing.... No way to control interruptions allocation.
    BUT!!! I noticed that the two USB 2.0 ports are located very far away from each other. I supposed there would be TWO controlling chips. And I tried the second one. AND IT WORKED!
    So the E-MU guy is right, the device must get a free interruption line to operate ....!

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • How to creat the Varient for 1099MISC With Holding Tax

    How to create the Variant for 1099MISC With Holding Tax ?

    HI,
    please follow the below steps to create variant at report.
    tcode se38
    report RFIDYYWT
    pass all the parameters
    press save icon
    give variant name
    retrive the variant in report
    tcode se38
    report name RFIDYYWT
    press : shift + F5
    or get varinat icon.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • HT1311 How can I get updates for apps with new Apple ID

    How can I get updates for apps with new Apple ID. I have apps that I got for free, and some that I have purchased. I had to create a new Apple ID because I don't have a credit card now.

    Apps will always be tied to the ID in which they were purchased or downloaded under. You can not change this unless you buy or download the free  app using the new ID.

  • How to Optimize my AirPort for Best Speeds?

    I have several WiFi enabled devices connected to the latest Time Capsule and was hoping for any expert advice on how I can further improve the speeds and reliability of my WiFi network.
    Here is my current setup.
    Time Capsule (latest gen).
    - Radio Mode: is set to 802.11a/n - 802.11b/g/n (Automatic)
    2.4 GHz Channel: 1
    5 GHz Channel: Automatic
    Guest network is enables
    I have my Mac and Apple TV connected to the 5GHz channel (Mac is within Line of Sight of my TC - the Apple TV is not, although the Apple TV settings show it is connected at full signal strength).
    My iPhone, iPad and PlayStation 3 are connected to the 2.4 GHz channel.
    I also have a Sonos WiFi music system which is connected to my router.
    So far I have no issues with my current setup, but I'm always looking for better ways of making it better. Any suggestions would be appreciated (I'm not very versed in WiFi). Just to give you an idea for what I use my network for, I'm always downloading media on my Mac and playing online games, streaming movies to my Apple TV - listening to music through my Sonos system and browsing sites and using email on my iPhone and iPad.

    I would suggest the following:
    Change the Radio Mode to: 802.11n only (5 GHz) - 802.11b/g/n. Even better, if you don't have any 802.11b or g clients, change the 2.4 GHz radio to: 802.11n only (2.4 GHz)
    Make sure that the "Use wide channels" option is enabled for the 5 GHz radio.
    You selected channel 1 for the 2.4 GHz band. If you haven't already, I would recommend that you use a utility like iStumbler or inSSIDer to determine other Wi-Fi operating nearby. Note those with the strongest signal value, and then, change your 2.4 GHz channel to one at least 3-5 channels away. For example, if you find most operating on channel 1 or 6, change yours to 11.
    Also base station placement is important. Please check out the following AirPort User Tip for details.

  • Sending analog signals using SCXI bus to SCXI-1600 for digitizing

    I want to measure a signal generated in the SCXI-1181 custom bread board module.
    Is it possible to send the signal using SCXI bus to SCXI-1600.
    The signal is less than +5V & is positive.
    Is it possible to use AB0+ & ABO- in SCXI bus for this purpose?
    I have a SCXI-1001 chassis installed with SCXI-1600 in slot 1 & SCXI-1181 in slot 2.
    I have 4 more switch modules (SCXI-1160s) installed from slot 3 to 6.
    Will the above has an interference when you want to control the switches?

    see here:
    http://forums.ni.com/ni/board/message?board.id=250​&message.id=20644

  • How Can I Use Bluetooth For Sharing With iPhones?

    Hello, i have an iPod touch 3rd Gen. 32GB, And I'm Wondering How Could I Share Music or Photos With My Cousin's iPhone (Jailbroken iPhone), When I Turn The Bluetooth On, Nothing Shows Up On My iPod Or On Here iPhone,
    So How Could I Share Things With Her I Have ''File Share'' And ''Bump'' Apps
    So what should I Do???

    You can't share music over air or by Bluetooth because of several reasons of which is understandable by apple. Apple doesn’t provide any way for you to copy files from your iPod back to your Mac/ between iPods or iPhones. While there are legitimate reasons for blocking bi-directional copying— which again the word music piracy comes to the mind
    The only thing that I heard that you could share with iPhone to iPhone/ iPod touch is photos&contacts an app called "bump" and "Bluetooth photo share". With those applications you and your friend can share photos/phone contacts and other kind of files.
    "Bump" application link below:
    http://ax.itunes.apple.com/us/app/bump/id305479724?mt=8&partnerId=30&siteID=Tjuc Fgl1Woc
    "Bluetooth photo share" application link below:
    http://ax.itunes.apple.com/us/app/bluetooth-photo-share/id326109583?mt=8&partner Id=30&siteID=TjucFgl1Woc
    Message was edited by: John-macOwner

  • How can I configure labview for communication with Modbus I/O?

    i read a article about configureing Labview for communication with modbus I/O in NI developer zone, but it was written for Labview 6, how can I configure it with labview 7. it seems there are some difference. Thanks!

    In both LabVIEW 6 and 7, you connect to modbus using Lookout Protocol Drivers (LPD) and then communicate to LPD using the tag engine of LabVIEW DSC or through DataSocket.

  • How tune flash player 9 for use with proxy

    I use me browser with proxy. But flash player, when i show
    yourtube etc, use direct connection and not use proxy server. How
    tune flash player (last fersion, 9) for use with proxy. I want what
    all traffic go over proxy

    Will alienate? They've already alienated users a long time
    ago. That isn't the point, though, because it doesn't matter if
    users are alienated, it only matters if the users need flash.
    The only thing that could make flash player better is open
    source. I don't see why they don't do it. They make money on the
    authoring tool, not the player. All of my Linux machines are ppc
    and x86_64, no flash there. I also don't have flash on my PDA, a
    Palm T|X. If the player was open sourced, people would stop
    complaining about how much flash sucks -- because, right now, there
    are very serious, legitimate, complaints against it.
    Anyway, for now I'm hoping that SVG matures quickly.
    Although, I"m sure that once Adobe sees that train coming, they
    will extend Flash (dev.) to export SVG movies containing embedded
    binary data that can only play with their binary plugin.

  • How to call mobile numbers for free with subscript...

    My english is not verry good but i hope you can help me
    I have a month free calling:
    Unlimited World 1 month, 100% Discount
    I can cal no mobile numbers, can anyone tell me how i can call for free with mobile numbers?
    Thanks.....

    when i dial from my corporative mobile number  ##1 calls another corporative mobile number of my company like i was calling an usual number, when i dial ##2 it calls another and so. the number of the mobiles are ##X, thats wy i need to dial ##X, but the uc does not allow to me to do that kind of dialing. calls to a regular number it's ok, it's this kind of dialing i can't do.

  • How To Show Different Artwork For CD With Same Name?

    In 2002, Chris Botti released a holiday CD named December. In 2006 he also released another CD named December with the only difference being track 2 (Ave Maria) & track 7 (I Really Don't Want Much For Christmas which are not included on the 2002 release. These are not additional tracks but replace 2 songs from the original 2002 release. The album art is different for both CDs. So, how can I show these two CDs with the same name and same artist but with different artwork in Cover Flow mode? Help!
    iMac G5 1.8 Ghz iMac 1.8 GHz G5 17" Mac OS X (10.4.8) 1.5 GB RAM   Mac OS X (10.4.8)  

    If you store Album artwork the way i described using Command I (get info) - then the artwork is actually EMBEDDED in each song and is carried with that song wherever it goes.. and in this case it doesnt matter if u had 3 copies of the same album - all identical. You could even save a diff image for each tarck if u wanted.
    If there is no artwork embedded, then coverflow places the image in a separate folder that is only referenced by iTunes for the whole CD.
    You also might want to turn off coverlfow and continue doing what u had been doing in the past - add you won.
    I also think i know what may be happening. You say they are identical except for track 2 - But problem is - I don't think iTunes can handle 2 identical CD's from the same artist.
    Here's an experiment:
    Goto any of the songs.... right-click and select "Show in Finder" the Finder will open and show you the song file and its location. Do you see one album once or 1 album twice?
    If you see 2 of everything, i would recommend the following:
    Rename the first album "December (2002)" and the second "December (2006)" then iTunes will definately separate them out.

  • How to optimize meomry use for PSE 6.0

    I bought an new PC with lots of memory, a fast graphics card and 4-core processor under XP-home. I work with 12.000 pictures in PSE 6.0 and the system is still surprisingly slow. How can I get more use of the memory or CPU? How do I set PSE or Windows XP to use virtual memory or does this happen automatically? Thanks for any hints.
    Uzl

    As far as optimization goes here are a few tips:
    Reduce the number of history states (how many times you can undo something): Edit<General preferences<enter desired number of states to be saved. (Default is 20)
    Lower Image Cache setting: Image cache is saved version of the image at different resolution (thing magnification zoom tool)...helps with redraw speed. Settings 1-8 are available. 1 disables caching the higher the setting the faster the redraw at different zoom levels but the more memory used. (Default setting is 4)
    Number of open files is a no brainer. Keep only the files you need open as each file open is held in memory until it's closed.
    If you have two internal hard drives, set one other than the one that has your virtual memory (usually C) to be used as a scratch disc. If you have an external hard drive, leave it set to the same drive as the virtual memory (usually C) as you should never use an external drive for a scratch disc. Edit<Preferences<Plug ins and Scratch Disc
    Another no brainer, is to run Photoshop Elements by itself.
    You can purge the clipboard to release memory.  Edit<Purge Clipboard. This clears undos...this can't be undone. I read somewhere that you may have to hold in the alt key as you purge all to get the memory to release in E6.
    Use adjustment layers when possible as they don't add to the file size...or at least not much. (Here's one example is adding contrast by using overlay blend mode. Instead of duplicating the image and placing it into Overlay blend mode, add a non color adjustment layer like levels...just okay it to accept the default...and put it into Overlay blend mode).
    Drag and drop when possible. Copy/paste uses memory to store the image you are pasting.
    I've read making the Digimarc plug ins not load by renaming it with a ~ before the file name helps. (The Digimarc plug in scans images for copyright and places a copyright symbol in the top of the document frame if a copyright is embedded in the image. To gain access to the plug in again, rename it without the ~. BTW, you can disable any plug in etc by renaming with the ~ before the filename.
    FWIW, Photoshop Elements can only utilize 2 GB of RAM.

  • How to optimize Mac file sharing speeds over LAN?

    I got a new NetGear R7000, and I find it very fast for LAN transfers wired or wireless between Macs running OS X Mountain Lion or Mavericks. Testing large (multigigabyte) file transfers over AFP, an early 2011 Macbook Pro running Mavericks 10.9.1 connecting to a 2011 Mac Mini running Mountain Lion 10.8.5, Ethernet speeds can hit 6 GB per min (800 Mbps) real world and wireless 2.06 GB / min (273 Mbps), real world performance.
    If I perform a similar test for Snow Leopard on both ends, an early 2011 Macbook Pro running Snow Leopard 10.6.8 onnecting to a 2010 Mac Mini also running 10.6.8, has Ethernet transfers topping out at about 1.72 Gigabytes per minute for Ethernet (228 Mbps) and 1.07 GB / min (140 Mbps) for Wifi, real world performance.
    I am wondering if there is anything I can do to speed up the Snow Leopard AFP networking. (There are some applications that run only in Snow Leopard and I would like to have it network efficiently instead of getting rid of it. The Macbook Pro has a partitioned drive so I can boot between Snow Leopard and Mavericks.)
    I know that Apple made some tweaks in file sharing performance in Mountain Lion 10.8.5, and I suspect TCP IP parameters were altered to speed things up dramatically when there were all the complaints about it being slow on Mac Book Airs with 802.11ac. I am curious what Apple did.
    I am wondering if anyone has any tips on how I can improve AFP file sharing performance in Snow Leopard. Are there TCP IP parameters, or plist entries, or other hidden settings I can change? Parameters I can tune in sysctl.conf? I am hoping a real network guru can come on here to advise on some advanced techniques I can use to speed up AFP on Snow Leopard. It is the Macs running Snow Leopard that need to be tuned, not the router, as speeds are very fast sharing between Mountain Lion and Mavericks.
    Also, for any/all Mac OS versions, are there networking parameters that I can tune to speed up transfers that involve a very large number of very small files? Even recent versions of OS X slow down greatly on this.
    Thanks in advance

    Anyone have any ideas? What kind of speed do others see through gigabit Ethernet, with snow leopard or Lion?

Maybe you are looking for