Timed Loop timing source - Control Loop From Task is too slow

I'm trying to make a Timed Loop run at a period of 2 ms, with an analog input task running at 50 kHz as timing source. The input analog signal is scaled and fed into a synchronised analog output task on the same multifunction DAQ board. Using the built-in 1 kHz or 1 MHz clock as timing source for the Timed Loop works great, except for a slight time lag between the loop and my AI/AO tasks which over time becomes unacceptable because my task will be running for up to an hour. However, when I use the DAQmx Create Timing Source: Control Loop From Task vi to create a timing source, everything slows down and the fastest loop time I can get is around 20 ms. Any suggestions to get around this would be highly appreciated!
System: LabVIEW RT 8.0 with DAQmx 8.0 running on an NI PXI-8186; NI PXI-6251 used for analog input.

You're welcome!
You can build an array, and if your data is not hugh (100's of MB) this may be the easiest solution. However, we aways suggest implementing the Producer/Consumer Architecture. Keep the PID in the Producer loop, but move the File IO to the Consumer. Also, it  appears that your instrument uses some form of serial communication, so that could cause lags in your system....
What is your application about in general, what performance are you hoping for, etc?
Joshua B.
National Instruments
NI Services
NI Support Resources
NI Training Resources

Similar Messages

  • Laserjet 5000 (with jetDirect 620n): spooling from Windows 7 too slow

    Hi,
    i've installed new drivers for Windows 7 (32 and 64 bit) from HP website but however spooling is too slow. I tried all of drivers (PCL 6, PCL5 and PS). Only the PCL5 driver have an adequate standard of quality.
    What i have to do to increase print performance?
    Thanks
    Alessandro

    BUMP!

  • 2012R2 Application installation steps after deploying OS from Task sequence is slow after applying hotfix 2910552

    We are currently using CM2012r2 for Endpoint protection, and in trying to save licensing costs, I have been given the task of doing imaging and application deployment through CM as well... everything started off well... noticed that imaging took a lot longer
    than I remembered when I used CM2007 at my previous employer. Found we needed hotfix 2910522 and what took an hour to download now only takes 5 minutes (yay!) Then started other strange issues.  Mostly the fact that in the task sequence, the install application
    blocks (we have 3 with 4-8 apps each) suddenly got really slow to execute. (boo!)  The application blocks eventually finish, but take about 5 hours and only the last block actually installs.    For example: 7zip takes 15 minutes to "install"
    but since it isn't in the last block, it doesn't in fact install on the system.
    so here is what I know so far:
    Updated the boot image after applying the hotfix
    Added the hotfix to the Windows and configmgr setup step command line to install the patch
    Verified that all applications install correctly outside of the task sequence.
    Created a new task sequence just in case the hotfix messed something up.
    here is what I've noticed:
    Only happens on workstations that have been imaged previously by CM (even if I remove the machine from AD and CM)
    New machines image just dandy
    not hardware specific (tested on 5 different laptop models and 3 desktop models)
    workstations that have the issue, when finished, only installed the applications from the last block (4 apps) and none from the previous 2 blocks (16 applications)
    If imaged new (not previously known) it installs the client correctly and it checks in, ones with the issue are in internet only mode and don't see the PKI cert for the machine, and will not check in.
    Things I've checked, double checked, verified, and done:
    All applications have the box for "allow this application to be installed from the Install Application task sequence action..."
    applications are on all distribution points
    Distribution points are healthy
    One MP/DP was complaining about how it couldn't access a SMS folder.  uninstalled the roles, let it sit over the weekend, reinstalled this morning
    Verified that the servers were on 10Gb full and were not throwing error on the line
    Antivirus scanning was not scanning the store (used the built in template for scep)
    Next steps that I am going to try:
    create a new task sequence and split up install application blocks to only have single applications in them
    recreate the boot wim for the media
     Thanks in advance

    So this issue of yours is in B&C -task sequence? You're using capture CD for capturing, why? Why not automate the build entirely.
    I'd suggest you add this:
    http://support.microsoft.com/kb/2775511/en-us to your BUILD image (either online of offline, in the WinPE -phase), it fixes many WMI related problems.
    After you've done your golden .wim, deploy it to your clients.
    We don't do a build and capture because certain applications require handling on our part. Management has said it needs to be a certain way, therefore this is how we have to build it.  (mostly settings, and views that can't be controlled through registry,
    Group Policy, etc.)  There are users that if they have to click on an accept button or it isn't the right color, or they want a different icon in their lab, then they go to the top and it comes back down to us, and our lives become miserable.
    We create the image in audit mode, capture it using boot media, and sequence in things that are updated constantly (flash, shockwave, java, etc.) through the task sequence.
    in relation to that KB, why would it work on new machines but not ones that have been touched before?

  • Download file from portal is too slow,why?

    Hi all:
    I created a hyperlink to download file on the portal and the file is in the portal. The file is dowloaded slowly by 1K~2K, but I used FTP to dowload the file by 300K ,Why? how to solve it?
    please help!!!! THANKS!!!!

    Hi Namrata,
    You need to define the table field type as binary and develop and RFC with one i/p parameter of binary type.
    UPload:
    From front end you can browse and upload the file using file upload ui element then send the binary file to the RFC input.
    Download:
    Get the binary format file from rfc by passing ID as parameter and download it using IWDCachedWebResource.
    Regards
    Deepak

  • Why printing from MacBook is too slow?

    Hello friends,
    Does anyone know how to improve the printing from Macbook faster? I have had very bad experience until today about the printing on Macbook using PDF file, it takes more 30 min to print only a 23 K file. Please anyone suggests me to get rid this stupid thing. It annoys us so much. Thank you.

    Please describe the problem in as much relevant detail as possible. The better your description, the better the chance of a solution.
    For example, if the computer is slow, which specific actions are slow? Is it slow all the time, or only sometimes? When did it start to be slow? Did you change anything just before it started? Have you seen any alerts or error messages? Have you done anything to try to fix it? Most importantly, do you have a current backup of all data? If the answer to the last question is "no," back up now. Ask if you need guidance. Do nothing else until you have a backup.

  • LabVIEW readings from a DMM too slow

    Right now I am working on a program that takes readings from a multimeter and puts them into a graph. The multimeter is taking readings at 100 per second, while LabVIEW is only taking a number from the multimeter every five to six seconds. I am very new to LabVIEW so I am not sure if there is something in my program that is slowing it down or something that I can add to increase the frequency of readings taken. I have attached the program file I'm using and the multimeter is a Tektronix DMM4020, though I don't think the problem is with the multimeter. Any advice would be great, thanks in advance.
    Rach
    Solved!
    Go to Solution.

    I think they attached.
    Attachments:
    MultimeterBlock.doc ‏30 KB
    7-7-MultimeterGraph6.vi ‏22 KB

  • Transition from X5 to v7 source controlled project

    We have a project running from RH X5 with it's native Source
    Control server powering it.
    We have now installed some RH7 clients and the next stage is
    to migrate to the new version of Source Control.. But when i looked
    at setting this up I discovered that RH7 doesn't seem to have
    actual Source Control functionality any more, it says we need to
    install an SQL server to power it..
    I was not aware of this, and it is now causing me problems,
    after going through the long and tortuous process of getting
    approval for the RH upgrade, I now have to present another case to
    get SQL server installed.
    For info, I work for a major financial institute and we have
    tight control on software. I know SQL server Express is free, the
    cost is not the issue.. If I cannot get approval for this, what are
    the options?
    Meanwhile I have found a lovely workaround, installing the
    Source Control element from RH5 and this allows the RH7 client to
    connect to the project which is running on the old Source Control!
    So at least we can connect to the project, but we've had to install
    part of X5 on top of v7 which i don't see as a logical solution.
    I'm hoping there is a better way (or i can get approval for
    SQL server), as I need to roll this out to various other
    departments who want to migrate from X5 to v7...

    I wish that I had the information to tell me when it was
    necessary to go from SQL Express to SQL, but alas, I don't. I did
    hear somewhere that SQL Express would only handle so many
    users...and no, I don't know how many that is.
    You might try setting up an RSC3 DB with SQL Express and
    testing it out. In my experience, RSC3 is a lot more stable than
    the older version. In particular, it doesn't seem to be so prone to
    freaking out over network disruptions.
    G

  • Audio Track Source Control

    I have somehow lost the Audio Track Source Control Button from my Timeline. The Destination Control Button (A1) remains, but the Source Control Button (a1) has gone AWOL. I have control-clicked the Destination Control panel and selected "Reset" but nothing happens. Audio is no longer placed along with the Video when I drag and drop, or when I insert a clip.
    I am still learning how to select the track where I want my video and audio placed, but haven't figured it out yet.
    Any suggestions on how to get the Button back?

    Open a clip into the viewer that has two tracks of audio. You should then have two source tabs. If you don't and resetting doesn't fix it, try trashing your preferences.

  • Minor glitch in source control menu (jdev903prod)

    Hi,
    make sure you have CVS selected as source control tool.
    Then, after starting up Jdeveloper, open a workspace. Choose File->Source Control: the login option is disabled!
    (rightclicking the workspace and choosing source control->login from there works, but the one in the file menu doesn't)
    Greetings,
    Ivo

    Thanks for reply.
    That link doesn't provide enough information about SCC.
    I'm not looking for general SCC programming info.
    I only want to know how to refresh the SCC status in the project programmatically.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Timed Loop in Producer/Consumer Loop

    Hello!
    I have a producer/consumer loop LabVIEW program setup to allow me to properly capture images that are quite large (8MP) at approximately 14 frames per second (FPS). The program works great when the consumer loop is a 'while loop' (records at 14fps no problem), but I wanted to make it into a timed loop, so that I may vary the FPS as required. An oddity arises when I do this. Anywhere below 12fps, the loop works fine and the data is recorded properly. However, when I bump it up to 13fps, the consumer calculated FPS goes haywire and starts jumping between ~9 and ~13fps (data processing gets bogged?). When I set the required FPS to 14, the loop executes at a steady 7FPS maximum. Is there something I can do to rectify this situation?
    I have attached my .VI
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    ProcessSplitJPG-FPS.vi ‏100 KB

    Palanski,
    Are you using LabVIEW Real-Time? Timed loops in a windows OS don't really increase determinism more than a while loop with a wait until next multiple timer. Before you changed the producer consumer loop to include a while loop was the programming running correctly? You may also want to vuse the VI analyizer to see how long things are taking to run. I would leave the producer consumer loop in the traditional set up and change the FPS by controlling the wait timer, after benchmarking your code this should be done the same way as you have it for the timed loop
    Sam S
    Applications Engineer
    National Instruments

  • Simulation loop timing

    I am having trouble runnnig my simulation in real time.  I am using LabVIEW version 10.0F2 and acquiring signals using a PCI-6230. In the simulation loop parameters, I am using the solver: Runga-Kutta 1 (Euler) with a step size of 0.005, and in the timing parameters I have it syncronized with the timing source, source type: 1 KHz clock with a period of 5.For a relatively simple VI these settings seem to work just fine. In a slightly more complicated VI, which happens to be saved as a Simulation SubVI for another VI, I see that the loop timing is completely off. Also by removing components of the subvi the timing changes drastically. Please advise.

    duplicate
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to use software limits on 7354 board when switching control modes from open to closed or closed to open loop?

    Is it possible to use software limits on 7354 board when switching control modes from open to closed or closed to open loop?

    Hello Richard,
    When you say 'open loop' and 'closed loop', are you referring to running the application in position and torque mode? If not, how exactly are your controlling a servo motor in open loop? 
    In closed loop mode, the encoder values will be used as reference and the motion VIs can be used to configure the software limit as required. Are you currently losing the software limits? If so, how exactly are you losing these values? I am not sure I understood what exactly is happening with software limits in your program, so any more information on this would be useful. 
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • 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

  • For loop stop in sub vi from main vi?

    Hi! I want to control from my main vi a sub vi consisting of a stepped sine function generator. This sub vi has a for loop. The problem is that I want to have the option of terminating the loop in the sub vi from the main vi. I tryed using global variables or an event stucture. The problem is that, in both cases, the "stop" variable in my main vi is only updated after the loop terminates in the sub vi. Can anyone please help me? Thank you very much.
    Best regards,
    Diogo Montalvão (Lisbon, Portugal)

    hong2011 wrote:
    I found this thread very helpful. May I ask one thing - what is the purpose of the Occurrence?? If I try it without implementing the Occurrence (neither in main VI or subVI), labview crashes when the subVI completes its task or is stopped from the mainVI.
    A lot of things changed in the last 6 years, so this thread is a bit stale and there are a few other ways to do it. (For example we can have a FOR loop with a conditional terminal).
    You don't provide enough information to answer your question why it crashes. It would be more interesting to know what you are "using" and not what you are "not using". This is not something we can guess by elimination.
    LabVIEW should never crash, so please show us the code that crashes so NI can fix it. What LabVIEW version are you using?
    LabVIEW Champion . Do more with less code and in less time .

  • I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do?

    I can't connect to Wi-Fi - keeps timing out. No problem connecting from other laptops / phones. Stopped working after I did a system upgrade. What can I do? I am on OS X Yosemite.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

Maybe you are looking for

  • How to add iad's to window based application in xcode for ios

    hello, Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what

  • This is on Facebook.. I want to know if it's legit

    Sorry for posting this here but I couldn't find ANY other way to ask this question & I'm hoping to get my answer here. A friend shared the following message today on Facebook that's supposedly from Apple. I want to know if it's legit or not. If anyon

  • How do I connect to and back up to a hard drive on another Mac?

    I have a 1.5 TB external hard drive connected to my iMac. I have it divided into 2 750 GB partitions. I am backing up my iMac to on partition and would like to back my Macbook Pro up to the other 750. How can I do this wirelessly? Thanks.

  • Serial Number for SALE ORDER

    Hi.. In this scenario , I have to create sale order for 20 qty which it should trigger production order for the same quantity as it have many sub assemblies. sub-assemblies here mean sub batch orders. and for the same qty , serial numbers got generat

  • Photoshop Elements Version 6: Brush Dotting Issue

    I'm having issues with my basic brushes. When I make a stroke with the mouse, the end product should be a smooth continuous stroke, but instead it's a dotted stroke. An example is below: As you can see, the stroke is dotted when it should be a smooth