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

Tags: NI Software

Similar Questions

  • 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

  • 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.

  • 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

  • First try the producer consumer Architecture: continuous play and dynamically update settings.

    Hello

    I am currently working with two instruments; an Agilent E3646A and a NI 6212 BNC. My goal is to have the 6212 continuously take measures according to predefined parameters while the E3646A parameters can be continuously updated. This combination simple instrument aims to help me learn the manual architecture; continuous measurement, output dynamic controls and instruments more will be added in the future.

    I've already posted on a similar, but more complicated configuration (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Split-second-lag-when-controlling-two-instrum... and was advised to try the producer consumer Architecture.) I found the documentation on the website (http://www.ni.com/white-paper/3023/en/, https://decibel.ni.com/content/docs/DOC-2431), searched the forums and built my own VI. While my first attempt at a producer consumer Architecture has solved some of the problems I had when I posted on the subject, however, new questions have been raised regarding the reading and adoption of the VI.

    I am currently able to run the VI and update the settings on the device. Previously, I'd get a freeze while the instrument has been updated and could not switch settings until it was done. This has been resolved, although that reading updates only when a parameter has been updated, although it is outside the structure of the event. In addition, the Stop button does not in any context. I also got occasional mistakes on the part of Deqeue, but the major part of the sentence is error-200279 'A tried to read samples that are no longer available' to DAQmx Read. I realize that there is a problem in my loop of producer but have not been able to find a way to solve it.

    This is my first attempt at a producer consumer Architecture and already I can see that it is a powerful tool. I read as much as I could and looked at examples, but should have some problems at the beginning. Would be very grateful of any advice so I can take full advantage of the architecture.

    Hope to hear from you,

    Yusif Nurizade

    You're going to overflow this buffer, unless the events are generated faster than "sample rate/number of samples.   Period.  Nothing could be simpler.

    You don't need a local to stop your curls.

    Try something like this attachment.  I simply moved the structure of the event in its own loop dedicated since it had nothing to do with acquiring data at all.

    Data acquisition loop stops very well when you destroy the task and destrying the stops of power queue (sending the default values of the queue for the power control) for EXAMPLE, to ADD a group of setting 'Safe shutdown' to a 'package' and it wire to the Center terminal (Prototype).

  • I paid but expiration date pop-up message continuously. And I called the company, but never responded. Also chat service is not served. What can I do?

    I paid but expiration date pop-up message continuously. And I called the company, but never responded. Also chat service is not served. What can I do?

    Persevering, but make sure that you connect successfully...

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • My iPhone 6 s + has been stolen. I got the code to access and iCloud, and I putted in find my iPhone. Here illegally, could unlock iPhone and log in icloud.

    My iPhone 6 s + has been stolen. I got the code to access and iCloud, and I putted in find my iPhone. Here illegally, could unlock iPhone and log in icloud. I only had reference no.. MKV82LL/A, Series n F2 * RWV on the packaging. I wonder how do I get it back?

    < personal information under the direction of the host >

    Hello Miss116,

    I am so sorry your iPhone was stolen, it's a terrible feeling, and I'm here to help you with everything I can.

    1. go to a computer and go to iCloud.com and sign in with your Apple ID and password.

    2. go find iPhone and all devices at the top, click on your iPhone.

    3. click on lost Mode and put in a phone number where you can be reached.

    4. click Next, then enter a message that says something along the lines, "Please find my iPhone, please call this number to return."

    5. click on done

    Best wishes to get your iPhone back safely.

  • Just create a boot SSD drive. You want to minumize what Mozilla wrote in the SSD. You want to change Max and log locations not SSD drive. Anyone know how?

    Just create a boot SSD drive. You want to minumize what Mozilla wrote in the SSD. You want to change Max and log locations not SSD drive. Someone knows how, I could not find where it change?

    See http://kb.mozillazine.org/browser.cache.disk.parent_directory

    You can also install portable Firefox version, if you want to run Firefox on a disc of SS.

  • Satellite M70: Bluetooth toggles continually on and outside

    Satellite M70 - Bluetooth enabled a few weeks ago and Logitech Bluetooth laptop mouse worked perfectly so far.

    Now BT toggles continually on and off - in Device Manager I get 5 items of BT - RFBNEP, RFHID, RFBUS and RFCOMM 5-controller USB from TOSHIBA - then it reverses to 2 points-RFCOMM and USB controller for TOSHIBA 5 - then put it back to the 5 elements and so forth, with Windows 'inserted device' survey and "deleted device" sounds.
    Windows (XP) sometimes displays a message - "USB device not recognized".

    Updated to the latest drivers and it still does the same thing.

    How can I fix it?

    Did you try a complete uninstall and reinstall your bluetooth driver? In addition, it seems to me as if there is a problem with your logitech mouse.
    You can check the mouse on another laptop / computer?

    Because, if this serious fault of the bluetooth continues on other PCs as well, so your mouse is the problem.
    Try it, perhaps this may clear some things.

  • 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.

  • measurement and automation

    I'm just starting using the measurement and Automation Explorer.   Half an hour ago, I performed a calibration of temperature to get familiar with the process.  It seemed to work.

    I tried calibrate again.  It says my current calibration is 31/12/1903 - Question 1) why is this?

    I pressed the button , then came the name of my Stallion, then

    I left the characteristics of calibration because it was one of the screen: 1000 samples at a frequency of 1000 hz, then I pressed

    I received the following message is displayed:

    Error 50103 the DAQ Assistant.  -Question 2) what is this error code for

    Question 3) where can I find a list of error code numbers and their meaning?

    Thank you

    jdsnyder

    OK, now the problem is finally solved!  I re - adjust the device.

    At work the first time, he then had to be reset.

    Thank you

    Jon SNyder

  • How to measure and mark the value of real-time data?

    Hello

    I need to measure and trace in time real RMS value of EMG power. I did a VI. But I don't know why it didn't work. Can someone help me please? My VI is set in 2013 and 2011 both version. An example of data is also attached. Thanks in advance.

    Taslim. Reza says:

    I tried RMS PtByPt VI. But it has not been wired because the source was table 1 d of double and double sink.

    Well, ptbypt tools affect only one value at a time, so you must place them in a loop FOR. Here's how.

Maybe you are looking for