How to make a graphic inside a while loop to maintain the previous values

At first I tried to use a the VI Express XY graphics to create a track of points.  However, the chart is a trace linear between the first point in the new line and the last point of the previous line.  It then creates the new line as you wish.

I tried to use a loop with group a cluster for the chart, but the chart resets the plot at each iteration (as expected) and I can't find a way to maintain the previous data.  I tried using shift registers, but was unable to find a way to do it, and I tried also the cluster of a painting company, but can not find a way to make the cluster to a 1 d of a cluster of 2 elements array.

One option is to have is to find a way to maintain the previous data, but the preferred option is to create a new path to each iteration to see the color change for each new parcel.

I take stabbed it because I don't know exactly what you want. But I think that's what I've shown here. You must use a shift on your outside register while loop, as I showed. Your image where you tried to use a shift register shows a misunderstanding of the shift registers and how well they work, then I'd take a peek at these tutorials.

Tags: NI Software

Similar Questions

  • How to make shift register init happens only once, so that the data can persist across multiple tracks of a loop?

    Here's the situation:

    We are repeatedly followed eight real-world signals and comparing them to a threshold value.  We do this via a loop For inside a While loop.  The loop For runs eight times per pass.  We have implemented a binary table 1 d and the use of the index of the loop For as the array index, by putting a Boolean result in the table using the function replace table subset.  We want to keep the data in the table to be 'sticky', in the sense that any True value is locked, so even if a fake comes later, this array element true.  However, since we initialize the array in order for the replacement to the work table, we see that whenever the loop For again, it resets the table and destroys the history.

    I have attached a simple VI to illustrate the concept, using a random number generator as a stand-in for the real world signals.  How we change this VI do and entered real lock through multiples for loop runs, indefinitely?

    In case it is not obvious, I am a relative beginner, so please keep count in your response.

    Thank you

    B

    scottbbb wrote:

    For B, although I love the simplicity of it, I have a question: it solves the problem of the re-initialization?  What the shift of the While loop register get initialized - only once during its launch?

    Yep, the shift register Initializes only at the beginning.  You could say that every time the while loop is called (not each iteration) the shift register is reset with the wrong table.

    And, Yes, GOLD will always keep a REAL when it is TRUE.

    Usually, the simplest solution is the best.

  • How to increase code efficiency in a while loop (using PXI5105 for sampling outside signal digitalizer)

    Theoretically, we want the PXI-5105 (digitizer) have 302 record with each record has a 1260 sample (the save operation is inside a while loop) in approximately 30ms, however we have found that for each period (30ms), the PXI5105 only perform about 10 records. It is so wired. I wonder if the operations inside the while loop consume more time (for example 3MS), so that he cannot have 302 records even the PXI-5105 have 60 M/s speed of sampling. Is it true, you can find my labview code and if possible can you give me some suggestion in the most short time of operation of the loop.

    Please find attached labview code.

    Hi g_l_g_s,

    The digitizer PXI-5105 acquires data at the speed that you specify and stores the data in its memory embedded (up to 512 MB). The data is then sent to your computer when the Multi Fetch Cluster.vi is called. In VI that you posted, you are only fetch record during each while the loop iteration. If you want to retrieve 302 records you will need to specify 302 files in the horizontal Timing.vi to configure. For more information about scanners, you might find the DevZone, hereuseful.

    To determine the amount of time it takes for each while the loop iteration, you can consider using the structure of code in the example comparison community calendar, which is located here.

  • The drafting of emails is small (like this) how do I expand while it remains high (the default value)?

    How to enlarge type size ansd save as default (e-mail)

    The drafting of emails is small (like this) how do I expand while it remains high (the default value)?

    I use gmail.  Browser is Firefox.

    Is not a Microsoft program, I did some work for you leg.
    http://lmgtfy.com/?q=http%3A%2f%2Femail.about.com%2Fod%2Fgmailtips%2Fqt%2Fet_font_size.htm&l=1

  • While loop, wait for the function and the stop button!

    Hello

    I have a while loop and a stop button. Inside my While loop - I have a 'Wait (x ms)' function. If I press the stop button, it does not block the program immediately, he expects ms x then stops the program. How can I get rid of this?

    Thanks in advance for the help!


  • Change the values of the cluster in while loop and in the face at the same time

    Hello.

    I have a little problem in a test program, that I'm working on. I'll try to simplify as much as possible. I have a cluster control that contains two controls A and B. I want to:

    1. switch to update the value of the command A a while loop
    2. allow the user to change the value of the B control through the face, while the loop is running

    To change the value of order in the while loop, I first get the cluster control cluster, update the value of the control for a way to group by name and finally rewrite the cluster in the cluster control.

    The problem is that if the user changes the value of the B control while control that is in the middle of the update, the new value of B control is lost because it was read before updating in the face. Is there a way to get around this?

    DennisBengs wrote:

    1. switch to update the value of the command A a while loop
    2. allow the user to change the value of the B control through the face, while the loop is running

    Then they do not belong in the same cluster.  They are disconnected obviously enough that they do not go hand in hand.

    Where it can get really complicated, it is that you're talking about the user and code changing the same cluster.  It is very dangerous and very difficult to manage.  You might be able to get there with a driving force.  But walk slightly, my friend.

  • dispplaying data on the graph of waveform inside/outside while loop

    I create a vi using the random number generator, entering the number in the function(express>>arithmateic>>maths>>trig>>sine) fishing and connect the output of the function sine waveforms. Table of waveform show no problem. If I replace the with graphic waveform table, I get an error that the source type is differenct type of sink. I then put waveform chart outside loop everything hoping that tunnel would act as a table, but still I get the same error. I then put build table palette between all border and loop waveform graph which is placed outside the while loop. I get no error, but no data is displayed on the graph of a waveform. Theoretically, if I press stop I would see a distorted sine wave on the waveform graph, but this doesn't seem to be the case. I am wondering how to view data on the graph of a waveform in such cases!

    Thank you in advance for reading and help!

    See you soon

    First of all, you can take a part of the basis of LabVIEW tutorials.

    Since you need to work with a chart and it is the preferred method to display data point by point, I don't know why you try to use a chart. In any case, you cannot use all simply a table of generation because that would be just the result of the last iteration and your graph indicates it is a single point. If you activate autoindexing, then you get all the values, but not before the end of the loop. If you were to use a shift register and the build dashboard, you might place the graphic inside the loop, but then you would face performance issues that the table would grow uncontrollably.

  • How to make still photos of my camera of Lenovo to the appropriate library to upload on a social networking site (Facebook, not)?

    First of all, I'm 50 years old and I grew up in the time before the PC, so I am very naïve.

    I have a laptop from Lenovo and it has a camera in it. I recently discovered that it can take still pictures, so I took some pictures of me.

    Now I want to download pictures to an online community, I belong to where I have a profile. But the photos are not in my images on Microsoft Word, or in Windows Media Player or any library I can find.  They are in the box in the photo section.  How can I get them on the part of the camera on the computer in a place where I can then download them to my profile online? Where should I store, and how to make them here?
    I appreciate your help.

    Hi James,

    I see you want to download photos of the Lenovo built in webcam for a social networking site still. I'll help you with this problem.

    1. what operating system is installed on the computer?

    2. what security software is installed on the computer?

    Please follow these steps and let us know the status.

    1 - click on "Start" and start the webcam software. Every computer manufacturer take its computers ready webcam with a specific software for the control of the camera.

    2 - Click on 'Snapshot' or 'Take picture' (or similar) in the program to capture still images. Most of the programs of webcam show you what see your webcam, as soon as the program is open. When you move, the webcam image also moves. Specific commands vary from one program to a program and manufacturer in the manufacturers, but the standard webcam software has a "snapshot" command to take a picture.

    3 - Click on 'Tools' and 'Settings' (once again, or similar) to change the way the webcam records still images. You can configure the quality of the photos up to a preset maximum resolution. A webcam software allows you to save a series of images or to add digital effects to the pictures. That depends on the camera photo and its software by default, too. While in the 'Settings' window, find out where the pictures are stored. Each program stores pictures in a different location.

    4 - Click 'Start' and 'Computer' to open a file browser. Find the folder where the webcam stores its photos of step 3 to change the photos with a graphics program or to delete and rename files. To send photos to your friends and family, open your email and attach photos to this folder. Webcams store photos in smaller resolutions, so you never get hurt to send these files as attachments, even with a very slow Internet connection.

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • How to control a VI (with a while loop and a structure of the event) from an another VI

    Hello

    I have the main VI which I want to be driven from an another VI. But I can't do that and I don't know what is happening.

    For example: VI main, I have a while loop with a structure of the event, there is a Boolean controller controlling a Boolean LED, which is inside the structure of the event. And the other VI, there is just a Boolean controller and functions of applications to open the main VI.

    How can I control the Boolean LED in VI main, changing the State of the Boolean controller in an another VI?

    Thank you.

    There are different options, but depending on what you want to do. For this example I can't give you a specific solution.

    I do not understand why you do what you do. Why do you call your 'principle VI' dynamically? What is the advantage to do? There are also other ways to call a VI dynamically, based on real cases (for example the method "call and forget", etc...).

    In you principle VI, control you Boolean ("THATCHER") is not the case of corresponding event. This is not usually a good practice, keep it inside.

    Also, why you try to communicate with the caller and callee VI through such a way to twist? There are better ways to do it.

    In one of my projects, I use the user event to launch orders in case of case of appellant VI.

    some Associates more readings for you:

    http://www.notatamelion.com/2015/03/23/how-to-make-dynamic-subvis/

    http://forums.NI.com/T5/LabVIEW/Dr-Damien-s-development-event-structures-III-communicating-with/m-p/...

  • Sub - VI with nodes of feedback used more than once inside a While loop

    All,

    I have a Subvi is a set of operations and using 3 feedback nodes. I use this Subvi inside a loop While 4 times in total. I noticed all instances used to share the same result in each node for your comments, but I would like to have an individual result of each of them. Is there an easy way to work around this problem? I find ways to avoid this: a) create a different vi for each time the Subvi has been used. (b) use global variables instead of feedback nodes. Is there an easier way to get around this problem?

    ExamplePlease note that the two sub - VI are the same) If on my first Subvi I calculate a maximum value and get 1.29 (then goes to the crux of feedback) on my second slot - VI 1.01 my feedback to the Subvi second node records still get the maximum value or 1.29. (and I want it to be 1.01!)

    Hope, that it is not too complicated, I was scratching my head with that for a while, can't find the "easy" button Thanks in advance.

    -Pop

    IM using 9.0.

    It would be useful to join the code. Anyway, I'm not sure how several knots of comments are supposed to work so I will defer to others to answer that. As far as being able to use separate or instances values if you are using a Subvi, you could mark it as reentrant. In this way, each call to it will behave as it were a copy of the VI and it will have its own memory space. This should include the feedback node. You end up with a single slot - VI and in reality a single node of feedback. If you need pass data between calls that simply data through wire. You can also use a motor of Action to store and retrieve values. An EA is MUCH better than a global variable.

  • How to make page 2 AutoNumber as page 1, without changing the sides?

    I understand the automatic numbering pages, but sometimes it's a little tricky.  I have a finished booklet where the inside of the cover should be page 1.  When I go to the page numbering and him say to make Page 1 Page 2, he wants to move the left page of the spread to the right that I don't want.  How do I keep it on the left side?

    You will need to disable the shuffle in the pages Panel context menu.

  • How to stop a while loop structure in the event of a main vi

    Hello;

    Sorry for my English

    I have to stop to a Subvi my main VI, the Subvi contains a while loop and an event structure, so I need to stop this loop while I tried directly from my main vi, global variable, but it did not work

    any help please or example!

    How about something like this (solution see attachment) using a user event.

    Explore the User Interface--> range of events and dialogue. To display the dynamic event of the terminals in the structure of the event just right click and select 'display the dynamic event posts '.

  • How to make buttons that animate on mouse to return to the original state * gently * mouse off?

    The title pretty much sums up what I'm doing: I have not started digging using the script in Flash but, being very well a beginner.

    I created a simple file using video clips nested in the buttons then that when I mouseover a letter, she bobs up and down, but I can't work on how to make it back to its origin 'up' State * gently * when the mouse is moved away.

    Any suggestions?  If it must involve the script know that I am a total noob!

    Here is a tutorial of mine that illustrates the benefits and disadvantages of the different techniques of creation of button:

    http://www.snorkl.TV/2010/08/Flash-MovieClip-buttons-vs-simple-buttons-five-ways-to-build-UN button.

    you need to may very well add to these files and maybe learn a little more, but it should make for a good starting point

    -carl

  • How to make a text field required at run time when the user clicks on the box?

    I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner

    text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.

    onChange event:

    var = this.boundItem (xfa.event.newText) newVal;
    if(newVal == 0)
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
    }
    on the other
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
    }*/

    For the onClick event:

    var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
    App.Alert (a);
    if(a == 0)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
    }
    if(a == 1)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
    }

    Please help someone!

    Hello

    You may need this resolved at this point, but here are a few tips.

    An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?

    You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.

    For example if the table was not static your script could be simplified:

    if (this.rawValue == "1")  // this object is in Row2
    {
         Row4.ComplianceCheck_L1_1.mandatory= "error";
    ...
    }
    

    However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.

    In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.

    var vRow4 = Table48._Row4.count;
    console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
    
    if (this.rawValue == "1")  // this object is in Row2
    {
         for (var i=0; i
    

    I have not tested, but it should be close to work.

    Good luck

    Niall

  • How to make a slideshow w/o it automatically move to the next slide?

    Hello

    I have a collection of photos that I want to "slideshowed". I would like that they expansions of to fill the screen. But I want control over how much time the slide is displayed. I want the control to say 'next' (as opposed to iPhoto moving to x number of seconds). I hope I described what I want.

    My question: is it possible? I know it sounds like something that you would do on PowerPoint, but I don't want to resort to that.

    Any suggestions?

    Thank you!

    You can't, but you can set the value display time of each slide to maximum 27 minutes 10 seconds

    or the value of each individual slide of a duration of 59 minutes:

    Who would do essentially the same thing as you want and allow you to move to the next slide, or return to the previous slide with the arrow keys on the keyboard manually.

Maybe you are looking for

  • Calendar deletes the event data when upgrading to icloud

    Hey there, When I add an event to the calendar on my mac app I add details (time and title), but once the application updates to icloud details disappear and the default event is the title of 'New event' and the time of the default event. 09:00. I ev

  • Toshiba controls freezes Windows Explorer on Satellite L350D

    Hey guys, my Toshiba controls (Mute, play, stop, next and forward) buttons literally freezes Windows Explorer. I'm not 100% sure if there is a driver that comes pre-installed, but if there is then could someone point me in the right direction on how

  • Spectrum X 360: Installation of Windows 7 on HP spectrum X 360

    I would like to have a clean install of Windows 7 on my laptop of spectrum X 360. I have a step by step guide please? I activated starting inherited and wanted to boot from a USB key. But the laptop never booted from the USB key!

  • Updates, caused the loss of internet connection

    For the second time this year, after a Microsoft Update on my netbook Windows XP Home, I lost my internet connection. Two courses (June) updates involved are KB2518864 and KB2478658. I tried to restart the computer once or twice, and I still didn't h

  • XP limited account will not be printed

    I have Windows XP 32-bit family running on my HP desktop computer.  I recently had cause to reset my user account permissions using subinacl.exe dittos. Run this routine has solved the problem I had with my administrator account does not.  However, i