Strange DAQmx Timing Source Timed Loop Error

I have a digital edge counter fed into a timed loop. Everything works fine until I stop the loop, and stop the DAQ task. Once I restart the loop it fails with "resource is reserved". Attached is my code.
Thanks
Solved!
Go to Solution.
Attachments:
daqloop.JPG ‏136 KB

Here is a piece of code to illustrate the issue. If the timing source is created in the loop (it will be created each loop iteration) the error occurs. If it is moved outside the loop, and only created once the issue is resolved. Is there a way to RELEASE the timing source so that it can be created again? If the VI is stopped, this "resource" is released. I want to programatically release it.
Note the error comes from the timed loop Error terminal that is Probed (50).
Message Edited by bkb on 10-08-2008 09:52 AM
Message Edited by bkb on 10-08-2008 09:53 AM
Attachments:
ts.jpg ‏57 KB

Similar Messages

  • 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

  • Create Timing Source problem in RT deterministic loop

    I'm updating an old LV 7.1 vi to run with LV10 and DAQmx.  We have a deterministic timed loop driven by an external 10 kHz clock source.  As I understand, it should be possible to set up this functionality using a timed loop and the DAQmx Create Timing Souce vi.  The attached image shows how I wired it up.
    This vi is deployed to a PXI system running LV 2010 with 6608 system timing card (Dev 1).  I'm using counter 1 on the 6608 to create the timing source.  I have an external 10 kHz square wave (5 V p-p)  connected to Src1 (PFI35) on Dev 1.
    The problem:  the loop seems to be using a 1 kHz clock, even though I've specified the counter and input for a 10 kHz source.  If I choose a frequency of 20 Hz (500 edge counts for a 10 kHz clock) the actual loop frequency is only 2 Hz.  But, the loop stops if I disconnect the 10kHz signal, so it is somehow using the specified counter !!??  How can this be?  Is there additional counter configuration needed here??  I've verified the external clock signal is exactly 10kHz with an oscilloscope.
    Thanks for any thoughts.
    Solved!
    Go to Solution.
    Attachments:
    CreateTimingSourceTest.JPG ‏37 KB

    OK.  I solved this one.  You need to wire a "1" constant to the period input node of the timed loop.  The default value of "10" will only execute the loop on every 10th clock pulse, hence the factor of 10 decrease in loop frequency.

  • [DAQmx] How to delete a timing source ?

    Everything is in the title.
    I created a timing source in my application, used for defining a hardware frequency control of a timing loop. The problem is that I did not found any VI to delete it, as I would need to modify its parameters.
    Is there a way to clear a timing source ?

    I did the modification that proposed Albert : I modified the VI that creates the timing source for having the task out parameter. To avoid problems for deployment, I saved the file into the project with a new name.
    When clearing the corresponding task, the timing source can be created again, with possibly new parameters. So it works now as expected.
    About Kevin proposal, I also checked that, but it seems that all properties are "read only" . Automatic clear of DAQmx task as proposed by Stuart seems to be done only when the application exits, and I do not want to do that on my RT application (to restart the exe, I think I have no other choice than rebooting, and moreover I have a TCP connection with a remote computer that I cannot close).
    Well, it would be nice that future version of "DAQmx create timing source" using physical counter also inlcudes this task out terminal, or a dedicated VI able to clear the timing source using its name for example.

  • What is wrong with this (timed loop error)?

    I can't figure out why the timed loop is not starting and I receive an error -805 message. Any idea?
    Thanks,
    Ben64

    Hi Ben64,
    There's no obvious problem.
    I tried the same and it works perfect.
    So there must be a problem under the cover.
    I have 2 suggestions.
    1) There is a problem with your wiring -> the Error wire is not connected to the loops error out -> close timing source is executed before the loop is executed (Are you sure the loop doesn't even start ?)
    2) Labview often uses Names to identify items (queues, images, semaphores,..... timing sources(?) )
    I tried to open and close another timing source with the same name.
    Et voila : I'm able to get exactly the error code you mentioned.
    Is it possible you use the same name for a second timing source and this one is closed prior to executing the timed loop you've got problems with ?
    Best regards,
    Balze
    Attachments:
    timed_loop_2010.vi ‏37 KB

  • Daqmx timing source issue

    I have attached zip containing 2 folders. Both are doing same functionality but one using software timed 50ms loop. the other one is hardware based timing source.
    I run , quit & re-run the application. Both the applications works well. But the ISSUE folder containg application hardware timing sourced app, after quit, the EXE process keeps running in the background & needs to be stopped using Ctrl+Alt+Del invoking the task manager.
    As many times I click on to run the app, it works ok only, but holding the EXE process in background.
    Hope someone helps to resolve this. Im using LV2009 + PCI 6229.
    Thanks,
    Kousy
    Attachments:
    LV Exec Process Termination Issue.zip ‏1948 KB

    Hi,
    I found the solution to the problem: using the latest NI-DAQmx drivers v.8.0.
    It was directly related to my M-series card (PXI 6221) not correctly working in my PXI chassis due to apparently bad drivers or a bug in version 7.5.
    Christoph

  • Timed sequence doesn't work right with external timing source

    I'll describe first what I want to accomplish and
    then maybe someone can read further and suggest why the attached VI
    doesn't work. I have a SMU (PXI 4130) that takes differing amounts of
    time to set a current depending on if the setting spans a range
    boundary. I want to be able to make that SMU setting and then wait a
    specific amount of time (sometimes 1 msec). If the SMU takes a little
    longer to return then I want that extra time to come out of the wait
    time. To do this I figured I would need an external time source to
    control a timed sequence to give better than the normal 1 msec
    resolution. So now onto the problems I'm having.
    I've
    got two problems here that I would really appreciate some insight on.
    The attached VI is the subject of both problems (as is the VI is
    worthless, but it illustrates the problem). Note that you need some
    type of DAQ board with a counter on it to run it.
    I can't
    figure out why this timed sequence doesn't work with an external timing
    source. It works mostly as expected (see next problem) with the
    internal source, but fails miserably with the external source. Run the
    VI as is to get a baseline. Then connect the DAQmx Create Timing Source
    VI to the Source Name input of the timed structure. It seems like it
    should run exactly the same both ways.
    Problem 2 (run with the
    internal timing source). The VI should take the same amount of time to
    execute regardless of the input to the Wait VI (within reason of
    course). That's actually the main impetus for this whole exercise. But
    according to the Actual End indicator it runs faster with a longer wait
    time.
    George
    Attachments:
    test timed sequence.vi ‏144 KB

    Hi George, I have been playing with the code that you have posted and I think I am seeing what your concern is with regards to the first problem that you stated.  Without running the code I would expect both internal and external timing to cause the VI to run in the exact same manner, however obviously that is not the case.  I am currently looking into this behavior and I will post you a response as soon as I have an answer for you. 
    As for the second problem, If you look at the manner in which you have coded this VI, a 1ms wait in the first frame will lead to a calculation of 1999ms wait in the second frame, and thus 5 iterations of 1999ms or about 99,995ms total running time.  If you increase the wait in the first frame to say 50ms, then an overall all wait of 1950ms is calculated in the second frame so not the overall iteration time is now 1950 which, over 5 iteration leads to 99,750ms thus as you increase the wait in the first loop the overall loop duration will be less.  This is expected behavior.
    Again I will post back once I have a clarification on the internal vs external timing.
    Chris_K 
    National Instruments
    Applications Engineer

  • When PC System timing hits 0000hrs Loops back to start and runs again using Loop function?

    When PC System timing hits 0000hrs Loops back to start and runs again using Loop function?

    It's all described in the help for it. Vista version:
    Attachments:
    Task Scheduler.png ‏61 KB

  • Infinite Loop Error - How to Remove?

    Only my "home page" will display in WampServer's Localhost, which I am using for my "testing site" in Dreamweaver CS5. All other pages in my website cannot be loaded by IE8 or IE9. Firefox and Chrome report that all webpages (except my "home page" ) have a "Redirect Loop" which prevents them from being loaded, and this is due to links which continuously loop between the same pages.
    QUESTION: How can I fix this (without starting all over to build my website)?
    I am using dynamic webpages with a template, all of which have the "php" extension. I started with HTML webpages and template, and then converted them to "php". They worked well until some time after I added a Login Form on my home page, with Dreamweaver's "User Authentication" in Server Behaviors. The "login" and "password protected" webpages worked for a while. But now it seems like the "Redirect Loop" error may be related to my "go to page if login fails".
    It may or may not be related, but around the same time my Infinite Loop problem started, the "Editable Region" of my home page stopped displaying the formating and background colour in "Design" view in Dreamweaver.  However, they do display properly in Dreamweaver's "Live View" and in WampServer's "Localhost".
    Any all help will be appreciated.

    Thank you for your reply, Nick.  I could not find the code segments which you suggested.
    I have included a link to show the text in my page, "about_us.php", which is one of the several pages I am having trouble with.
    http://www.sunisandsfl.com/text_file_from_about_us_php.html
    This is one of my "Non password-protected" pages. When I load "about_us.php" in Dreamweaver's "Design" view, there is an Error Message above the webpage which says, "An unknown error occurred while discovering dynamically-related files." The only files shown in the "Related files" bar are "Source Code", "conndbss.php" (my database connection file), and "main_sunisands.css".
    I have not yet uploaded any of my dynamic webpages to my live site (www.sunisandsfl.com).

  • Does multiple instances of DAQmx start task result in error?

    I am trying to read voltages from pressure transducers and LVDTs in two separate While Loops. But when running the program there is an error regarding DAQmx Start Task.vi. So I was wondering if multiple instances of DAQmx Start task results in error. I have attached the vi.
    Thanks
    Attachments:
    IsoConsolidationDAQMAX02.vi ‏140 KB

    Thank you for the reply. New to Labview so I didn't know that we had to search using the error code, I tried searching using text though. Will do that from the next time, thanks.
    I do not have the problem with the write tasks but only with the read tasks. Right now I have one start task for all the input from the pressure transducers and LVDTs and three start tasks for the three analogue outputs and the program seems to run fine.

  • Regarding datasource i'e., The OLTp source still has errors

    Hi experts,
    I was getting an error while creating datasource i.e, "The OLTP source still has errors".
    Last 2 days onwards i was getting this error. Previously i have created many datasources.Eventhough i was gettign sam error
    while doing any changes in existing datasource. Kindly help me out in this issue.
    Regards,
    Sree.

    Anil,
    I will explain in detail.
    We want to do enhancement for datasources (transaction or Generic datasources...whatever it is).
    LBWQ or RSA7 question will not come here...ok....
    any time we can do enhancement by adding additional fields to the extract structure(appending..) of trans. or generic or masterdatasource.....
    In my case, If i add some fields to the extract structure(appended str.)in source system(r/3- datasource-2lis_13_vditm) and save it. immediatly we are getting message saying that 'OLTP SOURCE ERROR'...
    Is there any problems in source system/installation.
    Thanks,
    Mahantesh
    similarly, the same problem will come for all the datasources - enhancment.
    how do

  • I moved the mobilesync path where my backups should be stored. However, since then I moved some folders around which I think is the source of my error. I can no longer backup my iphone. How do I fix this?

    A while ago, I moved the mobilesync path so that it would stop trying to backup onto my C drive. However, since then I moved some folders around which I think is the source of my error. I can no longer backup my iphone It just tells me that the backup is corrupted. When i go to preferences, devices, and look under backups it is empty. How do I fix this?

    Howdy there mjspace1994,
    It sounds like you are unable to backup your phone after moving the mobile sync folder from its default location. If moving it back manually does not resolve the issue, I would next use either of the following articles to remove iTunes from your computer and then re install it. The articles outline the proper order to remove them in, and step by step instructions:
    Remove and Reinstall iTunes and other software components from Windows XP
    Remove and reinstall iTunes and related software components for Windows Vista, Windows 7, or Windows 8
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • I am trying to listen BBC radio news from BBC App, but on pressing the button I always get the error "there was an error playing this radio feed". What is the source of this error and how can I remove it?

    I am trying to listen BBC radio news from BBC App, but on pressing the button "live radio" I always get the error "there was an error playing this radio feed". What is the source of this error and how can I remove it?

    That is probably just a generic error message and you might not ever know what is causing it. Assuming that you have been able to play live radio with the app in the past (I know nothing about the app) and assuming that all other Internet related functions (Safari, email, etc.) are working properly on your iPad, quit the app completely and reboot your iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that fails to resolve the issue, you might want to reboot your router, unplug it for about 30 seconds and then plug it in again.

  • Error in codepage mapping for source system. Error

    Hi BW Experts,
    I am facing following error:
    Error message: Error in codepage mapping for source system. Error text:
    Details: Inbound Processing ( 1000  Records ) : Errors occurred
                Error in codepage mapping for source system. Error text:
                Update PSA ( 0 Records posted ) : Missing messages
    I repeated the delta working and everything fine.
    Does anybody know why this error occurs?

    Run rsa13 (for bi 7.0) find your source system which one you are using for data transfer and double  click on it and find special options there select  the optioned i mentioned already.
    Please search SDN you can fin threads related to this thread
    if not let me know.
    Regards.

  • Error in codepage mapping for source system. Error text:

    guyz,
    im facing the below issue in prod.
    Error in codepage mapping for source system. Error text:
    Message no. RSDS_ACCESS013
    Collection in source system ended
    Error message during processing in BI
    Diagnosis
    An error occurred in BI while processing the data. The error is documented in an error message.
    System Response
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    Further analysis:
    The error message(s) was (were) sent by:
    Inbound Processing
    Procedure
    Check the error message (pushbutton below the text).
    Select the message in the message dialog box, and look at the long text for further information.
    Follow the instructions in the message.
    need your guidance,
    cheerz,
    raps.
    Edited by: raps on Mar 1, 2012 9:39 AM

    Hi ,
    Kindly go throught the following threads for your issue resolution::
    Error in code page mapping for Source System
    Erroe in source system
    Regards,
    Arpit

Maybe you are looking for

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query : A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS

  • LabVIEW 32 bit on Win7 OS vs. XP 32 bit

    I need to know if it is at all possible to create an installer in LabVIEW 2010 32 bit Win7 that would work on a XP 32 bit target machine. How do you guys work around this issue if it exists? I thought I could do it by keeping an XP platfrorm availabl

  • Assets problem- AJAB problem

    Hi in AJAB its giveing this error. Can you please help me with this. 1000 ***                No year-end close is necessary for company code 1000

  • Xchange Rate type changed in the follow on document getting posted from MM

    Hi, There is an issue while the follow on document posts from MM module to FI module. The rate of exchange captured is M-CL while creation of the Purchase order. On posting the MIGO/ MIRO, the exchange rate type is correct viz M_CL . But when the fol

  • Flash 8 crashes on startup

    Ok, I'm pulling my hair out here. I downloaded and installed Studio 8 Pro. (Upgrading from MX'04). Everything in the suite works ok, except Flash. When Flash goes to load it gets to "loading fonts" and inevitably crashes. Any suggestions. I've uninst