Strange DAQmx Timing delay home error loop

I have a digital dashboard introduced in a timed loop counter. Everything works fine until I have stop the loop and stop the task of data acquisition. Once I restart the loop that it fails with 'resource is reserved. My code is attached.

Thank you

I think the problem is that when you set up a timed loop to use DAQmx task as its source of the time, the timed loop is automatically set to start the task at the start of the loop. Here, you never seem to stop the task of counter before restarting the timed loop. For the second time that you run the loop timed, it tries to restart the task of Counter and sees that a task is already running with this resource (from the first timed loop run).

If you use the function of the task to stop the task of counter after the timed loop, you should be able to restart things.

Tags: NI Software

Similar Questions

  • Several DAQmx Timing screws - all seems to work, just a question

    I wrote a Labview program to interface with a cDAQ-9188 and everything seems to work very well. I used the DAQ Assistant to make the features of basic level and then convert them into DAQmx code and which went very well.

    When I created the code DAQmx a timing clock didn't appeared not so I added a vi DAQmx sample Timing (sample clock) in order to have control over the rates. I tested the software, including changing my recording speeds, and everything worked as expected. (see image).

    When I looked in the SubVi DAQmx I created, I saw that a synchronization clock was actually there (see image). It contained cable to it (sample, rate, samples per channel mode) but this content does not seem to affect what I have in the main VI. Heck, I don't even samples per channel wired on the main VI, I plugged it into my DAQmx Read in my all loop!

    If the Timing of the main VI is predominant in the Subvi calendar? Should I take the full schedule of the Subvi?

    Once again, everything seems to work as expected. I have more work to put into this and I fear that it will cause headaches in the future. Also, I want to be more informed about what I do!

    I have attached the VI and SubVIs as this seems to be the Protocol. They are under construction!

    Thanks for the help.

    If you open the VI schedule you will find that it contains just the DAQmx definition properties:

    Calling it the second time only replaces what you have done previously.  It would eliminate a redundancy to just call him once (you could delete the calendar from your Subvi or pass the parameter in the Subvi to configure it) but it isn't a problem to call it twice.

    Best regards

  • Daqmx timed task - Help!

    Hello

    Looking for the online help on a task daqmx timed.

    I am trying to run 2 fans using tasks of acquiring data MX for some time. The sequence is the following:

    1. start the FAN 1 and run for 2 minutes.

    2 after the 2 minutes time, STOP FAN 1 and FAN 2.

    3. operate the FAN 2 for 3 minutes.

    I need to help, incorporating a timer in the task.

    I would really appreciate if the community would throw an overview of this. (Maybe a quick picture of the code?)

    Thank you

    RP.


  • Icon of Smartphones Strang blackBerry on the home screen

    I have a strang icons on the home screen of my Blackberry storm. It appears next to the "New Message" icon. It is round, yellow in color and graphic design is similar to the Explorer. No one knows what it is and how to get rid of?

    It may be a message from the browser.

    go to the messages an application to search with:
    service = all THE SERVICES
    file: all THE RECORDS
    Show: not ONLY LU
    type = ALL

    you will see the message from the browser.

  • FPGA timing when compiling PID loop error

    Hello.

    I'm using Labview 2011 card FPGA PCI-7833R.

    My problem is that whenever I try to integrate FPGA designed screws in my code, I get an error of timing.  See the photos displayed below.

    In this case, I have an express VI PID which I use in a used while loop (not even timed!) in my FPGA code, but when compiling, I get an error saying that the possible maximum clock frequency is the 43 MHz.

    I have a lot of loops, a few running at 80 MHz.  Is there a way to slow down a specific while loop, so that it runs at 40 MHz and not 80 MHz, as others?  The compiler does not seem to meet the simple addition of a timer loop...

    Thank you

    Orel.

    PS the same thing happens when I try to add a lowpass filter VI of the FPGA code.

    Is it possible that you set the level above 80 Mhz clock?  This is what it looks like to me.  In Explorer, right click on the FPGA target, select Properties, then go to the category "first level clock.

  • WHY? C program = No delays, Labview delays = > > Intermittent delays in the loop of RS232 serial subroutine 115200 baud. Windows 7 LV 2012

    In 30 years of developing LabVIEW I saw such a strange problem.    Maybe someone can help out me.

    Here's the problem:

    Ms 1 000 large delays occur intermittently in two instances of an executable of LabVIEW with exact system.  (SEE ATTACHED time STAMP of SCREEN CAPTURE FOR 11 and 14 COM COM where there was a > 1000 ms delay)

    • Subrotine RS232 communication loop were brought in the course of a program of 'C' that has held rock solid and did not have this same problem.
    • No record on the hard drive is in this subroutine, communication comes standard.
    • The executables are running on the same high performance server DELL 7910 communicating with satellites in Earth orbit, 24 x 7.   (RS232 115 200 Baud, Windows 7, 6 son of processor).
    • An executable uses COM 11 and the other uses COM 14.
    • The executable has the critical loop "subroutine" that injects data REVIEWS, if there is more than a 100ms delay.
    • The subroutine is not reentrant, because it is the only case used throughout the program.
    • I placed the time markers in the loop of the subroutine which tell me exactly where in the code the delay occurred.  In most but not all cases, that the delay occurs at the 'WAIT MS' or 'WAIT until the NEXT MS MULTIPLE', I tried them both, and they both have the same intermittent problem.
    • What gets me, is that the executables that are run independently of each other are logging the delay at EXACTLY the same moment.    This leads me to believe that it is a question of operating system.  Or a problem that the two executables have when competing for time to critical system resources.
    • This problem of intermittent delay occurs on other computers and on windows XP
    • The large delay occurs even when there is only one executable file running.
    • This problem is particularly bad , when the user resizes or drag the window to the executable.
    • If the system is left alone, the problem of > 1000 ms delay can happen only once or twice a day.
    • I have not yet attempted to set the priority or affinity processor running in the Task Manager
    • The executable runs as well some other non-critical time loops that perform SQL database entries, you connect the hard drive, then state machine management.

    Would like to hear from someone about it.

    Thank you

    Brad Whaley

    @ Boeing electrical engineer


  • Strange problem with Vista Home premium configuration update

    Just bought a Toshiba Satellite Pro L300-1AI which was preloaded with Vista Home Premium.

    Clicked on configure updates on the front screen and he entered a loop that says: Configuring updates: stage 3 of 3-0% complete. Do not turn off your computer.

    Every 5 minutes or so then stops and restarts with the same message. I left on for 8 hours, so can not believe he needs for this long. Just tried to set off, but when you restart it defaults as shown above.

    Please advise... even if you can get me right back to the normal screen before

    Hello

    Try please start your computer in safe mode and restore your operating system to an earlier time (before the update). Maybe this will help.

    In the future be careful with updates. I recommend you to disable the automatic update. Just check the list with updated supply and install important and recommended only. Disable all optional updates. You don't need them.

  • convert loop timed to normal while loop

    How convert a while loop time normal while loop with exact same properties and performance?

    I have donot need to worry about the exact date. But it takes the timed loop time will be run similar to loop.

    And also, is there any issue encountered when we use Timed loop? problems such as that crashing exe?

    Hello

    1 kHz is the used base clock. Then, you decide to use 10 as period (dt) which is 10 ms.

    The clock is selectable in real-time systems, you can use the 1 MHz clock, giving resolution µs

    But for your needs, using 1 kHz clock with dt = 10 and using a ms of waiting with 10 connected to it is exactly the same.

  • Tasks of DAQmx Digital i/o-error-200170

    I'm working on a project to use DAQmx for write and read digital channels, as well as monitor the thermocouples.  There are already source code that initializes the tasks of channels HAVE thermocouples.  I tried to imitate (to some extent) that was task initlization HAVE it, except that I read that there is a VI DAQmx flatten that allows me to send a picture and the channels I want and then create tasks and virtual channels.  I posted a picture of my code.  The error I get is-200170 for the DI and the DO.  Can someone please explain what I'm doing wrong and what it is that I do not understand about tasks?  Please and thank you.

    My guess is that the values of "ports" are disabled.  I do not know what DAQ you, but in my experience, usually you have/port0/$line0, line1/port0 /... / port0/line6, line7/port0 /, then you start the next with $line0/port1 port /, / port1/line1, etc..

    Basically grouping them 8 lines / port.

    Now you try/$line0/port0, port1/line1 /... / port31/line31.

  • Timing of a FOR loop

    Hello

    What is the best way to the period in which runs a loop FOR.

    I have a piece of code in a loop FOR and he runs 500 times. What is the best way to make the duraction of execution of time?

    Thank you

    Nevica

    Attached is a small example as described.

    Synchronization using probes helps as well.  Usually survey you a thread of error to start the timer, then another thread of the error of the probe and probe calculates the time difference between them.

  • Structure of the timed real-time event loop does not work

    I'm a new user for LabVIEW. And I've encountered a problem that frastre really me! Hope someone can help out me. Thanks in advance!

    I just want to use the structure of the event under timed loop, which is important in my extrmely design.

    However, this works very well in my computer (without connecting to the FPGA).

    Once I connect it to the FPGA, then I can still run but there is no response!

    My file is attached. Please someone help me!

    Looking forward to your answers!

    The FPGA runs headless. Structures of the event won't work. What you need to do is to have an application on your host computer when the user presses a button, changes a value, etc.. This event should send a message via TCP/IP for code that runs in real-time environment. Then the real time environment should attribute to the desired value a control on the FPGA.

    As a general rule, programming real-time with FPGA has several layers.

    (1) host-> handles interactions with the user code and communicates the code in real-time via TCP, UDP, etc.. Displays the user sent by RT controller data.

    (2) code in real-time-> tracks headlessly. Manages host code messages, processes the data of FPGA, communicates with FPGA much as the host code communicates with the code in real-time

    (3) FPGA-> no acquistion and passes through PEP in the RT

    The first thing you need to do is to understand the architecture and how all these pieces of the puzzle work together before you throw things down on a diagram.

  • Detection of change DAQmx - cancel the event error logging

    I am trying to use DAQmx for detection on some digital lines of changes. I think I installed everything in this article, but I always get error 'Error 1 has occurred to unregister events in the detection of change in Test - Error.vi Unregister'. When I change the structure to register for another event, not involving DAQmx but using the same structure, I get this error.

    I need this implementation on a code that runs for a very long time and according to the above article:

    "Use the Unregister function for events and function to destroy the user events to release the associated events and the reference of user event. LabVIEW unregisters all events and destroyed the existing user automatically events when the top-level VI end of execution. However, to conserve memory resources, National Instruments recommends that you unsubscribe and destroy the user events explicitly, especially in an application that is running for a long period of time. »

    Here are some screenshots of my comic, but also the .vi. Note that the detection of real change does not work well, it's just after I click on 'stop' I get the error generated by the "unregister to events.vi.

    Note When you transfer the .vi, I saw the issues described on this thread and had to change the name of the file...

    crossrulz wrote:

    You must cancel the registration of the event before deleting the task DAQmx.

    Delete the task implicitly cancels registration of events.  If you disable the task, rather than simply cancel, the event is already cancelled and you don't need two nodes.

    Or quite simply, the event is part of the job.  no tasks, no event and LabVIEW cleans the records for the non-existent event.  Other events that are not 'owned' by similar of e/s Sessions must use the unregister (as of the events of user)

  • Basic usb-6216 trigger DAQmx fails with the error

    Hi people,

    I have here a puzzle game.  I'm trying to implement a very simple trigger for analog acquisition on my new USB-6216 BNC Board.  I use it with a Mac, so I'm limited by pilots Daqmx Base (what documentation and implementation is terrible).  Everything works well when the trigger is disabled, but when I turn it on, the program generates error-200428 'value passed to the control task/channels is not valid.  I've essentially implemented this word for word in the examples that I could find online of OR, so why he does not?

    I spoke at length with Technical Support OR (just enjoy to this day) and wonder if someone in the community has faced this problem.  I put a subset of my code in a VI and have attatched to this message... the ideas, advice, etc. would be greatly welcomed!

    Best,
    Jason Gallant

    According to the specs on the product page, there will be only a digital triggering. You ask an analog trigger.

  • A problem with delays in call loops and DAQ

    I'm programming a simulation for nuclear Rewetting for a reception centre to my company in Switzerland. It is a "fuel rods" heating and then fill the water Chamber. The pump starts automatically as soon as the core of the stem reached 750 C. After that, a requirement that the flow rate be checked to ensure the operation of the pump in the necessary conditions. If not, the heating must be stopped to avoid, well... meltdown. However, we must allow 10 seconds for the pump to respond, while allowing a rate of acquisition of data from 10 to 100 Hz.

    The challenge is that I can not add a delay in my other main loop delay all acquisitions, but I can't understand how to trigger a device loop (with data acquisition for the single channel flow control) and the main loop when the loop device determines if the flow a initalised, answering the main loop with the agreement.

    I think that a large part of my confusion is in the interaction between loops and knots of default comments labview's willy nilly. The only solution would be to have two 'core' loops that do not communicate with them, but rather to do the same thing while operating different synchronization? Tell me if you want I will post the file (even if its on a unnetworked computer and I don't think that it would also be useful).

    Thank you + Curran

    Here is a version 9.0.

  • ATI2DVAG error: loop blue screen infinite

    I have VAIO VGC-RA840G Windows XP Media Center computer that is having a blue error screen. When you try to start, a blue screen appears saying driver ATI2DVAG is an infinite loop and it restarts again. I can only boot the computer in Mode safe.

    I booted safe mode and use the VAIO Recovery Console to recover C drive. It seemed to be successful until the second reboot - error repeared. It seems to graphics card (ATI Radeon X 300, on the map: EAX300Le-A334C) is a failure.

    What graphics card can I use to replace this card? When I place a new graphics card, how can ensure me that the VAIO recovery software don't not worth and try to change the driver of the old card?

    Thanks in advance for your help.

    Hi Merrill,

    Try to perform the system recovery once more and check if it works by following all the steps here: http://www.kb.sony.com/selfservice/documentLink.do?externalId=C268210

    If the problem persists, contact Sony Service support here: http://esupport.sony.com/US/p/service.pl

    Installed on your computer video card is ATI RadeonX300 size 128 and Type DDR SDRAM. You can use a new graphics card with the same above indicated. First, remove the preinstalled a x 16 PCI Express Slot graphics card and install a new one that does not have the power over 364.7 wattsmax. / 100 - 240V ~ 7A (50 / 60 Hz).

    Note: If my post answered your question, please mark it as an "accepted Solution".

Maybe you are looking for