Continuous measurement and logging model - Hang-Up of may because of the lost output

The model of continuous measurement and logging in LabVIEW 2012SP1 has a flaw in the Acquisition and recording loop.

Stop messages manager ignores all messages in the queue of messages. The note says:
"Stop - empty the queue of all pending messages 'Connect'. Close the reference of TDMS files. "See the picture below.

This concept breaks if the output message is issued while the Stop message is being processed. The time gap critical to do this is small, because the issue is posted on the front of the queue. But it depends on the treatment in the case of the Manager to stop. Large or small - it can happen.

The symptom is the application block in an infinite waiting on the queue of message - all commands have no effect, as the rest of the loops are completed. Break terminates the application. Pause button doesn't work anymore. (see this entry forum)
This problem may appear only after enforcement has become more complex and the schedule has changed - the fresco made model works and does not reveal the question.

The cure: first of all I thought to preview the elements of the queue before they are scrapped selectively, one by one in the loop to stop, but that usually is not working either, because the output can happen precicely in the laps of time between overview and dequeue - don't forget no outputs are displayed on the front of the queue.

I think the best option is to replace the flush of the queue in the Stop messages with a selective messages waiting managers one by one and check if the output is - if so, reseat it in the front of the queue. All other messages are discared. That look like this, have seen interesting parts...

Here is the message loop to stop with the problem highlighted.

As I'm not mistaken, I think it's better that NEITHER updates the model to avoid this problem.

Here is the case of the resting State in the case of stop message:

Us do not hang the CPU run a constant stream of messages ineffective because we only "Log" enqueue messages when we are in the valid state logging (a State of rest here is again a passthrough).

The worst case, it's that there are number of register requests already in the queue when the system shuts down. After receiving the stop idling message, state transitions and other Log messages become non - ops due to the State.

I consider the opportunity to post a few screws update

~ Simon

Tags: NI Software

Similar Questions

  • continuous measurement and logging, LV2014

    In LabView 2012, I examined how project templates QueuedMessageHandler and the measure continuously and logging (CML). In addition, there are all of a lengthy and detailed documentation for the QMS. There is a much shorter documentation for CML, but readers of mention the QMS, given CML is based on this project template of course.

    I just got LV2014, and I began to consider the continuous measurement and model of forestry (DAQmx) inside LabView 2014 project. There is here a change which is not documented: a state machine additional typedef enum in the loop of paremeter. But there is no change in the QMS 2014 version, while this change is not explained in detail.

    You can direct me to some docs or podcasts more explaining the feature of the new version of CML?

    Also, when I try to run the continuous measurement and model of forestry project (DAQmx), just to see how it works, I see strange behavior: even though I always select "connect" in the trigger section, force the trigger button starts to blink, and two messages begin to iterate through the channel indicator : logging and waiting for release. But I always chose "log" is this a bug?

    I was reading an "interesting debate" since the year last too:

    http://forums.NI.com/T5/LabVIEW/buggy-LabVIEW-templates-amp-courses/TD-p/2298766/highlight/true/page...

    I understand that these models are only starting points, but I'd be very happy for some documentation to understand how to properly use these models (I was quite OK with the original models, but the new ones obtained more complex due to the state machine).

    Thanks for the tips!

    Hello

    The additional Typedef is necessary to ensure that only data acquisition-task is started.
    This is because the mechanical action is defined as "lock when released. For example, when you press on the
    Start button, then release, the changes of signal from false to true, and then it goes from true to false.
    It would be two events. During the first event, a new Message is created. Now, when you take a look at the "Message loop will vary."
    you will also see an additional type of def. In this VI data acquisition task is created and started. The problem now is the second event.
    Now another Message is created to start an acquisition process. And if another task-acquisition of data is started, you would get a problem with LabVIEW and DAQ hardware.
    But due to the fact that in the loop of the Acquisition, the State has the value of Acquisition with the first Message, the second Message does not start another DAQ-task.

    In the QMH there no need of this, because you don't start a data acquisition task.

    Two indicators during indexing, strength of trigger is set to false. If the program connects
    and force trigger is disabled. After the registration process, the flag is bit set to Wait on trigger
    because, as already stated, it is disabled. Now Force trigger is true once again, and it connects again. This process
    is repeated and the indicator is switching between these two States.
    When you open the VI "Loop of Message Logging", you will see that the trigger for the Force is set to false.

    Kind regards

    Whirlpool

  • Why the continuous measurement and Logging in LabVIEW 2012 Project uses strings instead of Enums and orders from the queue?

    Hello!

    I noticed that the continuous measurement and a project in LabVIEW 2012 Logging using chains instead of enums and orders from the queue. I wonder if there is a good reason for it?

    Kind regards

    Anguel

    First, string vs enum debate is probably the version of LabVIEW vim vs emacs. There are good arguments on both sides, and I doubt that there is always a "winner".

    A brief summary of our reasoning for the current state of the project examples:

    1. We used enums for the state machine because it is self-contained. A state machine will never tell himself to enter a State, he does not know. Knowing (as the programmer) all possible States with the help of an enum allows you to enlist the compiler in order to help us avoid mistakes to change the time (because you can't quite out an enum and LabVIEW can be said if you are not covering all cases to a structure of the case, etc..).

      Enums provide greater protection and rigidity by ensuring all withdrew at the time of publishing. This is often the 'default' recommendation that we do.

    2. We used strings for messages in queue manager because the producer of message and the message handler could be independent processes that are reused or traded. Channels avoid the need for the compiler to be able to connect the orders and push this responsibility to the programmer. This allows you to develop some sub-components independently as long as you agree to a series of channel commands that you can manage - you need not to share a file 'messages.ctl' or 'states.ctl '. It is conceivable a loop of message management a message it does not, how you can decide to either silently ignore it or will trigger an error (as we do in the model). The strings make it also easier if you want to swap the queues of LabVIEW outside by a TCP implementation for network vacilitate or intra-Processuse communication where the other end may or may not be written in LabVIEW.

      Channels to provide more flexibility (that is, you can add new commands to an existing via plugins system, you can pass parameters as part of the string, etc.) at the expense of pushing her potential errors at run time and to put more responsibility on the programmer.

    3. The actor's gifts frame a 3rd option - using classes such as messages. For me, it combines many of the advantages of these two enumerations (strictly typed, change errors) and strings (flexible and scalable), but with the disadvantage of being somewhat less transparent (you understand OO, be comfortable to navigate through a multitude of screws, legacy of understanding, etc.).

    I don't know there are other reasons, others to the breast OR had or seen as we validated models and examples of projects in-house, but here are my reasons. We know that we can not design for each situation there - our goal is to get useful models against new users to make them aware of what well thought LabVIEW programs are similar to experienced users know their applications better and I hope they do not hesitate to change what we provide or create their own designs, when they feel it's necessary. (On a side note, please share what you come up with - a community of experts sharing models would be really useful to us all LabVIEW users).

    Best regards

    Simon

  • Scaling of the continuous measurement and logging (OR-DAQmx) model

    Hello

    I managed by reading the analog input of my 6210 USB and NO using the model of logging (OR-DAQmx) and provided continuous measurement. However, I need to convert the voltage signals to the pressure.

    How I change the model to achieve this? I've read about DAQmx create Scale.vi and creation of scales in MAX, but I'm not sure where/how to apply them to the model.

    Fine thanks

    Ben

    In the loop Message of Acquisition VI is a case to launch Idle.  Here is where the task of data collection is initialized.  In both of these screws is where you add the code to create the scales and apply them to your analog inputs.

  • Continuously measure and write waveform using PDM

    Hi all

    I'm doing my thesis by using Labview 2010 (since this is the only version currently available in University ). I need to read and save data from the microphone (currently to simulate a signal because I need to make the program work first) then save and analise IT (has not reached this point yet). I tried to use the structure of the event in order to record and then play tdms files. But unfortunately it saves only a small piece, then I inserted while loop, so it will record continuously but the program is not responding after registration, I push and I can only manually close the toolbar it. Please does someone could help me or suggest that something since I'm not very good for Labview and any comment is welcome. Here's what I've done so now. I tried searching forums for a similar solution but did not find anything useful (some had a much newer version so I could not open). Thank you.

    Hi and welcome to the forums,

    The reason why you can not stop the waveform recording or exit the application is because you have the case of the events set to "lock the table until the end of the matter for this event" (in edition events). This means that LabVIEW will not respond to the user until the end of this structure of the event, but because you have the option to press the while loop stop to complete the structure of the event means that you have a blockage and abandon the VI.

    The architecture of your application is not ideal - I highly recommend everything that takes a long time to execute within the structure of your event for the above reason (obviously you can uncheck lock as a quick fix Panel). I think I have a look at the design of producer/consumer model (events) (new... > model > frameworks) because it would be more appropriate for your application. You can manage your button presses in the structure of the event and have a state machine in the loop at the bottom for starting, running and stopping of your data acquisition.

    The idea is that you don't do very little inside the event structure so it frees up the façade, but the messages (e.g. power acquisition data, quit the application) are managed by another loop.

    I don't know if it comes in LabVIEW 2010, but there are examples of projects that include a project in 2012/2013 "continuous measurement and logging" which may be suitable for your application. There are also examples of the State machines and managers of messages queued.

  • Freshly installed from PC to iMac-Mavericks and Tbird now hangs when I try to access the address books.

    When you enter an e-mail address, Tbird apparently check address books because it gives me a list of possible recipients as I enter the name. But when I click the icon from the address book to enter to make a change or a new entry, I get an error saying: Tbird has encountered a problem and crashed. My options are to stop or restart Tbird. When restart all is well again.

    I just moved my email, address books, etc. for an iMac (first time on such a machine) and thought I had put all moved according to the instructions, but apparently done something wrong.

    Your can permanently delete a test pilot. It will never be used now.

    You could use lightning and have a full calendar and todo lists.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/lightning/
    with uses more than 1 million, it is quite popular.

    You could post a request on the support forum for the Fox reminder https://groups.google.com/forum/#! forum/reminderfox

    or you could send the developers. http://www.ReminderFox.org/developers/

    Personally, I prefer Lightning for Thunderbird. ReminderFox is right in the browser. But that's just personal preference.

  • Do pop ups: update of Kaspersky Anti-virus and Unspecified changes to CONFIG SYS may have caused the problem after an unexpected shutdown and attempt to restore the system.

    Original title: unable to system restore

    After the unexpected stop down and try the system restore.  I got up a window pops that says update my KASPERSKY anti-virus program, I do not have KASPERSKY.    Another said unspecified changes "caudate root found" SYS CONFIG window may have caused the problem.   Any ideas?  I have Vista and Trend Micro Internet security

    Hi JevenStulie,

    1. are you able to boot into normal mode after receiving these error messages?

    You can try these steps and see if it helps.

    Step 1:

    You can check if the problem occurs in safe mode with network.

    Start your computer in safe mode

    Startup options (including safe mode)

    Step 2:

    If you do not experience the problem in safe mode with network, then you can read the following article to download the Microsoft Safety Scanner and analysis complete on your computer.

    Microsoft safety scanner

    Note: When you perform the analysis, there are chances of losing the data that you can take a backup of important data before performing analysis.

    Hope this information is useful.

  • Frequency measurement and phase of a square wave using to extract the information of your unique vi

    Hi all

    I'm trying to measure the frequency and phase of a square wave from a data acquisition card using vi retrieves your unique information. So far, the frequency can be measured precisely, but there are a few problems with the measurement of phase.

    I have attached a sample program here. I generate the wave square using Square Wave PtByPt vi. The default sample size is 1000. When I put the frequency = 7.43, phase = 80, the frequency can be measured precisely, but the phase is completely. Is there something wrong with my program?

    Thank you very much for your help.

    Best regards

    A square wave is not a single signal ;-)

    If you have a square wave use the edges to make measurements.

  • When opening my e-mail address, the E-mail entire table up and down for about 5 seconds. Because of the motion, I opened that badly. How to stop this movement?

    I use ASUS computer laptop and windows 7. When I opened my e-mail, the whole e-mail message table continues to move vertically for about 5 seconds and would then become immobile. Then only I can select a message and open. When I'm done with the reading of a message, and close it, it goes up and down motion again. Because of this instability, sometimes I open or delete the wrong message. What is the problem, can anyone help?

    First of all, update Firefox 16.0.1. Update Firefox to the latest version

    Then, try to read Web sites look bad or appear differently than they should and Refresh Firefox – reset settings and Add-ons. This could be just pictures of loading slowly, you have a slower internet connection with this computer?

  • Rendering and export failed with an unknown error because of the color of Lumetri?

    I am rendering & export failures with an 'unknown error' code within Premiere Pro and Media Encoder.  I think that the problem is related to the Lumetri color filter that is widely used in all of the timeline.  There are hundreds of clips and each clip has 2-4 color filters Lumetri applied.  Each clip also has the red giant Cosmo and filter FilmConvert Pro 2.36.1 coming to overlap (visually underneath by order of effects filters Panel) all filters from Lumetri.  The reason why I believe that the problem is related to the Lumetri color filter is that it is the first time that I use.  Previously, I used the filter red giant Colorista III coloring, but last week decided to try using the Lumetri color for the same effect.

    Please let me know if anyone has had similar experiences, what were their solutions, or if someone has some ideas on how to solve this problem.  I would really appreciate the help!

    System details:

    Windows Pro 64-bit 10

    Intel i7 5960 X 8-core 3.0GHz (cooled water and too quick to 4.2 GHz)

    64GB 2133 MHz DRAM (non-ECC)

    2 x Nvidia GTX 980 4 GB GPUs (not in SLI)

    Intel 750 PCIe 400 GB SSD (for BONES)

    SSD Pro 1 TB Samsung 840 (for Adobe Cache)

    SSD Pro 1 TB Samsung 840 (for export)

    Matrix RAID 5 of 48 TB (eight 6 TB HDs with MegaRAID, LSI 9361-8i card) (for media)

    Information on the timeline:

    1920 x 1080 (original video files are MP4 UHD scaled down by 50% in the timeline)

    23.976 fps

    CUDA Mercury Render Engine

    Length of the sequence: 14:30

    I have discovered a workaround of sorts.  I noticed that when rendered in PP he would make progress before a failure (the green line that precedes the timeline would get a little longer).  If I saved this progress and rebooted the system, then tried to make it again, it would make a little further.  I've done this dozens of times for 4 hours make completely a 14:30 long sequence.

    I noticed doing this routine that my CPU was maxxed on all rendered.  Resource monitor reported the use of CPU to 143% continuous (all other indicators RAM, disk speed, etc. were well under their maximums).  This brings me to suspect that maybe there is a problem with overheating of the CPU.  But who would be closed for the entire system, correct?

    Once the entire sequence has been made (all the green lines above clips) I tried export by using the "Use preview files" option enabled.  Failure again.  I tried export uncompressed AVI, Quicktimes and PNG sequences.  All have failed.  I tried to export to PP as well as TEA.  The two have not.  I tried to export with option 'To make maximum quality' is enabled.  Surprisingly, this product the longest time encoding managed (32 minutes before failure).  As by chance, using the option of MRQ kept my CPU loads sawtoothing between 100% and 75%, then maybe there's something to the CPU overheating theory?

    In an ultimate attempt desperate to save my video project (looming deadlines!) I divided the sequence of Assembly in five servings (I cut on the melted white or fade-to-black transitions) and exported to each of them.  This copy export times within 20 minutes.  It worked.

    I noticed this another Adobe Forums thread that seems to speak of the similar difficulties with effects of Lumetri in Creative Cloud 2015.  Perhaps the Lumetri effects are not ready for prime time?

    https://forums.Adobe.com/thread/1236018?start=0 & tstart = 0

    Please let me know if anyone has any ideas on this.  In the meantime, I'll wind up this project and never use Lumetri effects again.

    Hello Kevin,

    Thank you for offering help to solve this problem.

    I was able to export the majority of the sequence with all the Lumetri effects, red giant and FilmConvert mixed in clips.  After the sequence using the tedious method described above I segmented the sequence in the quarterfinals; all exported except one.  I divided it into two; Another exported doesn't have.  I cut half too, once again only half exported without failure.  I finally reduced the embarrassing part until a second sequence clips 35; an interview with green screen with superimposed titles and superposition of b-roll clips.

    I removed all the effects of the Lumetri of these clips and replaced by Red Giant Colorista III effects, which are very similar to the effect of Lumetri in the GUI and application.  The sequence made completely without "unknown error."  Then it was exported successfully (and used about 70% when compared to more CPU activity 110% with the Lumetri to export).

    The difference would be that the effect of color of Lumetri has this YUV icon next to it in the effect controls panel?  Which means that YUV?

    The problem is perhaps not totally related to the color of Lumetri effect (as I said, I was able to export the majority of the 14:30 sequences use, although gradually by segmentation of the sequence into smaller portions), but if the move is a solution then I'll use it.

    I lost a day to fix this.  If this thread is useful to someone else, then it was worthwhile.

  • My context menu sparkles and is not viewable - help? (Not because of the addons, as I have not)

    Running the latest version, with Win7, all of the menus including right click contextual, and menu bars twinkle and disappear. The menu is still there, just not readable. Have heard of problems of Addon, but it's impossible, because I have zero Addons and extensions are only default nVidia ones (Yes, I tried to disable those, and it still happens). Can help anyone who/whatever it is the difficulty of this shit?

    Try turning off hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

  • Calibration Toolkit with 3rd party ECU measurement and CAN interface

    I would use the NI ECU Measurement and Calibration Toolkit with an NI CAN interface.  The interface devices supporting J2534 are very common.  The NI ECU Meas and Cal Toolkit allow this? If so, how does one time on another interface CAN interface to the Toolbox?

    The NI ECU Measurement and Calibration Toolkit National Instruments Hardware only supports.

    If you want to discuss the possibility of using any 3rd party hardware, please contact your representative local.

  • Is it possible to put the speakers as the default output for the sounds of Windows and the headset as default device for music?

    Hello

    Is it possible to have all the sounds through the speakers, including music from WMP and WMP music in my headphones? Headset is USB (but I also have a Jack) and my speakers are with 3 Sockets at the back of my pc.
    Thank you.
    Friend,
    Zoenvisje
     
    Original title: all sounds through loudspeakers and music through headphones

    Hi zoenvisje,

    Thanks for posting your query in the Microsoft Community.

    Want to know if it is possible to play any sound on the computer with the headset. It can be difficult when something that is important to you does not work as expected.

    Method-

    It is not possible to make these changes on the computer.

    You can set a default speakers and use a different music player that supports select the default output as the headset device.

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • Measure continuously and logging LV2014

    Hello

    I consider the LMC model located in LabView 2014. He's very nice, I'm learning a lot while playing with this model. However, because of the very minimal documentation (virtually zero), some things are unclear why he implemented?

    1, in the UI Message Loop, the business structure has a case of 'leave to confirm. In my view, this case can never get triggered because the stop button is disabled during data acquisition, why is that? I guess to give an example, if someone wants to activate the option to close the application during data acquisition without stopping the acquisition of data?

    2, because it is not explained in the documentation, could someone explain the behavior of the enum type def in the loop of user interface messages? I think that understand that, before stopping the acquisition of data, we are certainly on the first data acquisition is stopped. Second, all the data is stored, so the loop of logging can also be stopped and finally we can go to the idle state, and the "status update" message can be broadcast. Am I wrong? Somehow, it's still a little "fuzzy" for me...

    Thanks for the help!

    Kind regards

    1. confirm that Quit is activated if you click on the Red 'X' to close the main window VI during an acquisition.

    2. Yes, we must ensure that the acquisition and logging loops are in an idle state before you can close the application. It is the purpose of the enum status user interface.

    Our documentation team has already a task update documentation to discuss these issues (it is followed in CAR 397078).

  • Cloud of continually closes, and closes all the fonts I have loaded? I have to log in several times a day?

    Cloud of continually closes, and closes all the fonts I have loaded? I have to log in several times a day, someone knows why?

    Please follow:

    https://forums.Adobe.com/thread/1830010

Maybe you are looking for