reset the graph after each race

Hello

In attachment VI, I am trying to collect data to interverals (in seconds) and display them in a chart that updates after each iteration.  However, I like the graph to be handed over to zero just before starting a new would go program.  In the current state, after the end of the program, the graph just seems to add data and continues on.  I would like to have the x-axis as time.  In the current state of the program, I wait 1 second, take the data and so on.  I would like a parcel of time data vs.  So in the attached VI, the graph must finish 20 sec.

Honestly, I'd appreciate any help to determine my dilemma.  I'm under LabView 8.2.

Thanks for all your help and your time.

hiNi.

Like this

Tags: NI Software

Similar Questions

  • Write PDM, duplicates the value after each race and works very well that if the probe tool is on

    Hi all!

    I am facing a weird problem with my vi. The PDM write in my case/State records "Transformation", the data processed for each channel of each race. However, instead have a different set of data for each race, I get the same set of data for all lines. It is basically just duplication of first series of data in each row of each series. And the strange thing is that if I use the tool to probe on the son will tdms writing in the same case, it records the actual data in respective rows. with probe tool, it looks like good data in and record the correct data, without it, it duplicates only the first line. can someone please understand what going on with her?

    I have attached the VI. While at it, feel free to provide your comments/suggestions on me vi design, so that I can work out which actually better.

    I appreciate all the help in advance!

    Nilesh-

    I thought about it. In case of treatment, I was reading from the same group eaverytime. all data processign was same. All I had to do was get the current value of the Group since the property node and the wire to tdms playback function.

  • BlackBerry Smartphones stereo gateway switches sound speaker of the device after each song when streaming Pandora

    When streaming Pandora on BlackBerry remote stereo gateway, the sound moves from my audio system to the speaker of the device after each song.  I can go to manage connections and disconnect and then connect the stereo gateway and it goes back to the sound system.

    How can I hear stay continues through the sound system once the gateway is paired?

    There is a setting in pandora under options to activate the blue tooth

  • How to reset the graph of mixed signals automatically?

    How do you resets a graph of mixed signals automatically?

    My idea is like that - I'm drawing a chart throughout the day... Then, at 19:00, I want the chart to erase. There will be a break until 06:00. It will therefore start a new graph at 06:00. How can I do this? It seems easy, but I can't find the solution. Thanks in advance!

    redhotsneakers wrote:

    Why local variables are useless?

    It's a missquote, I'm afraid: I didn't say local variables are unnecessary, even if some would align themselves with this statement. I said that they are in your case. In VI you have published everything first, you are passing data from local variable that can be better spent by wire sind, the variables are literally next to each other. While you might get lucky in a program of this size, it can cause a world of problems in a larger application.

    Back to your problem: after watching your new VI, I'd say you're almost there. Separate features in the two loops does not seem necessary. Instead of the value property, you can try the method reinitialize I mentioned earlier, that should do it.

    Then you can add a feature that reinitilizes only once by comparing the range in the previous iteration.

    BTW: this select function is code of rube goldberg. Why not use the Boolean result of the node equal to the cases.

  • How to reset the chart after a task?

    Hello

    I use the structure of event producer consumer for my problem, in this case everything works well but I am facing problem after surgery when I press RUN again after having competed a chart of operation does not reset correctly sound also display old measurement simultaneously.

    I want to reset it completely and to display the reading for the new task only.

    Even in the file that is saved after execution of a task is also has a problem that I have his backup data twice in the same file I want.

    How to solve this problem guide please me.

    Thank you very much.

    It asks something much simpler, his problem is not the graph itself - it is simply not resetting (empty) table at the beginning of each case "default".  That's all he needs to do, is attached the vi changed.

    AnkitRamani - as I said in another thread, you must clean your programming (small steps at a time) - functionality of your code is made quite clumsy, you can do all this in a much smaller cleaner LabVIEW code, even if you examine and draw a few relevant examples.

    -DP

  • Favorites gets duplicated, rearranged, deleted, moved, or all the above after each cold start PC.

    Since the 26/08/12 in the bookmarks to a folder and subfolders either disappeared, were reorganized in other folders or "Unsorted Bookmarks", duplicate, 'old' old records of Netscape appeared in more recent cases of Mozilla, the bookmarks and folders were duplicated, but bookmarks in them were either older of the last (see Netscape) or have been removed or foregoing. The last folder of Netscape (version 8) and the Mozilla one have reversed positions, (the latter used as superior to Netscape one). This happens after each cold start PC. After several attempts of troubleshooting, it happens now in all folders. I save the bookmarks in a folder in My Documents separated as regular backups that seem to all be corrupted in the same way. I even purge the SYNCHRONIZED data and who has done nothing to solve this problem. I deleted the old bookmarks for Netscape 6/7 and the problem persists. Removal of duplicates is worse. Maintenance of places add worked only 2 consecutive days; Therefore, it is more effective. I have to restore the backup that I did whenever I use Fire Fox after a cold start.

    Have you checked all the backups JSON (10) in the folder bookmarkbackups to see if there are still no corrupted bookmarks?

    If all of your bookmark backups are damaged, you must first repair in a pure and uncorrupted places.sqlite file or try to do that via a tag HTML the backup is an appropriate HTML editor.

    If corruption always occurs after the computer starts and some security software is the most likely cause for this.

    You have not answered what firewall and antivirus that you use.

    Some security software has virtualization or sandbox features that can cause problems to protect and restore files in the Firefox profile folder.

  • need to adjust the paper after each print

    I have that 7520 printer all in one for 2 months (new)

    After each impression I have to adjust the paper otherwise, I get the message: no paper

    Make sure your paper guides are tight against the edges of the paper, while paper is loaded in the tray.  There should be little nicks in the status bar to help you confirm that the guides are engaged in the correct position.

    Otherwise if you are referring to the feeder manual adjustment can be the best thing you can do.  AutoDocFeeders are normally not snap and often need to be messed with on many models of printer.  Sometimes a small building of habbit can solve a problem like this.  If this isn't the case, you can try to contact HP support since it is such a new printer.  However, unless you can prove there is a mechanical fault on the tray or feeder, it probably isn't something they can do.

    You don't have something with the message No paper well.  Same as if the guides are disabled the printer should recognize there's paper in a way or another.  Questions guide paper normally takes place at the inadequacy of the size rather than no paper error.

  • Unable to connect to the internet after each recent updates critical 3

    After each of the recent 3 updates critical which download automatically on my laptop, I can't connect to the internet then... I had to do a system restore to before this update every day and every time this has happened... What can be done about this problem?

    Split of an independent thread on Windows Live Mail on Windows 7 Starter 

    Have you, after restoring the system, manually installed one of the versions of the three updates and rebooted the computer - verified that everything works and...

    If so, did the same with the next update (installation, restart, check) and so on until all are installed...

    If not uninstalled the update you just installed, rebooted and installed the other updates and restarted, one of the versions checked if things worked, and if so, did the same with the next update (installation, restart, check) and so on until that all are installed other than one that caused problems?

    What are the KB # s of each of three updates in question?

  • LOV in richeTableau resets the value after the deletion of rows from the table

    Hello. I'm on 11g R2

    I have a table with columns in the box and a button in the toolbar that removes the lines checked

    I have build it based on the following article in her string code

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html


    When I run the "delete" button I execute the following code (taken as is article)


    public void deleteSelectedRows() {}

    create a second line, the value do not affect all lines

    used in ADF

    Set of rows duplicateRowSet = this.createRowSet ("duplicateRowSet");

    first row to avoid "the attempt to access the value of lines."

    exception line was dead.

    duplicateRowSet.first ();

    retrieve the current row of the table for after

    re-running the VO

    Line currentRow = this.getCurrentRow ();

    Boolean currentRowDeleted = false;

    get all rows that have the transoent attribute

    "MarkForDelete' set to true

    Row [] rowsToDelete =

    duplicateRowSet.getFilteredRows ("MarkedForDelete", true);

    If (rowsToDelete.length > 0) {}

    run only throizgh this code, if there is something to

    delete

    for (line rw: rowsToDelete) {}

    If the row is marked as the current in VO, ts value

    Boolean flag

    If (rw.getKey () .equals (currentRow.getKey ())) {}

    currentRowDeleted = true;

    }

    remove the line - do not yet commit

    RW. Remove();

    }

    rerun VO

    this.executeQuery ();

    reset the current line if it has not been removed

    If (! currentRowDeleted) {}

    this.setCurrentRow (currentRow);

    }

    duplicateRowSet.closeRowSet ();

    }

    }

    "MarkedForDelete" is a transient attribute used to mark the line delete

    The lines are removed very well.

    The problem is with lines that I do not delete.

    For example I LOV column. I chose the value LOV in a few lines, and after that choose to delete several lines (not the same lines where I modified the LOV) but some other lines.

    After I click "delete", the lines that I marked to remove deleted indeed, but the value of the LOV in other rows (I have not scored for delete) are disabled.

    How to preserve value LOV so it will remain also after I deleted some lines?

    P.S. I've tried autosubmit = "true" - it did not help

    It is expected because I see that you rerun the query.

    Once you re - run, it retrieves from the database again. Thus, your values are lost because they are not posted.

    I don't think that run query is necessary, try to have a programmatic part trigger on the table after you remove all of the lines.

    Thank you

    Alisson.

  • Change the value of the balance after each line

    Hi all
    I do a sql statement returning the vacation schedule for this year for all employees.
    The query displays the name, from date to date, the balannce of vacation of the employee, the number of vacation days and the balance after the holidays
    : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Name - Of - from Date to Date - holiday balance - vacation days - after sale: -.
    Alan--------------------------June 2010--------------- 15-July 2010 ------------68 ------------------------33 ---------------------35 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Tom-------------------------June 2010--------------- 12-August 2010 ------------ 177 ------------------47 ----------------------130 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Adam------------------------July 2010--------------- 12-August 2010 ------------ 73------------------------- 26 ---------------------47 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Adel-------------------------August 2010--------------- 05-August 2010 ------------158 ---------------------5 --------------------153 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Alan ------------------------August 2010--------------- 16-September 2010 ------------ 68------------------ 19 ---------------------49 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Tom ------------------------September 2010--------------- 09-September 2010 ------------177 -----------5 ---------------------172 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Suzy-------------------------September 2010 ---------------30-September 2010 ------------127------------- 19---------------- 108 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Adel-------------------------September 2010 ---------------16-September 2010 ------------158------------ 5 -------------------153 : -------------------------------------------------------------------------------------------------------------------------------------------------------
    Adam -----------------------November 2010--------------- 09-December 2010 ------------73--------------- 19--------------------- 54 :--------------------------------------------------------------------------------------------------------------------------------------------------------
    Tom ------------------------December 2010 ---------------05-January 2011 ------------ 177 -----------------17 ----------------160 :--------------------------------------------------------------------------------------------------------------------------------------------------------

    My problem is that the balance of vacation is not correct after each retrieved line. It should be updated after the extraction of all ranks. My query is:

    {code
    Select Emp_ar_name_full Date_from Date_to, Vacation_balance, number_of_days, BALANCE_AFTER vacation_balance-number_of_days
    of HRS_V_EMP_VACATIONS_schedule@pms VAC,HRS_V_EMP_BASIC_INFO@pms emp
    WHERE EMP. EMP_ID = VAC. EMP_ID
    AND dept_id = 7
    And sect_id = 11
    and To_Number (To_Char (sysdate, 'yyyy')) = 2010
    and EMP_ACTIVE = 'Y '.
    AND DATE_FROM > = SYSDATE
    order of Date_from
    }

    I want to change the query so that the vacation balance will be updated after the extraction of all the ranks of an employee
    Thanks in advance

    Published by: [email protected] on June 7, 2010 14:33

    Can change this:

    vacation_balance-number_of_days BALANCE_AFTER

    TO:

    vacation_balance - sum (number_of_days) over (partition by order of emp_ar_name_full of date_from) BALANCE_AFTER

    For an example, please post a small test case.

    Kind regards
    Rob.

  • TO RESET THE GRAPH AND TABLE SEQUENCE EVEN STRUCTURE IS NOT EXECUTED.

    Hello everyone, I made this vi which runs automatically at the beginning and I can't use my power butoon to control this vi. Now, I want to clear the table and graph vi even when the structure of sequence is not executed as the start/stop button. And I want also when I run the program both the graph and the table should be cleared. I tried a lot of things, but as I'm new to labview I can't do. Thanks in advance.


  • How to reset the counter at each iteration, and how to introduce a delay

    Hello world

    First of all I apologize for the basic level of my questions, I'm new with Labview...

    I'm counties of reading out of a USB-6008 labview chip using the DAQ assistant and I write the output to a file. The problem is that instead of giving me the number of levels for each iteration it gives me the sum of all this. How to make Wizard Reset to 0 data acquisition account on each iteration? I tried using a shift register, but it added a counter to my folder and nothing else...

    Thank you very much

    Sure thing. Sorry about that.

  • How to reset the LED after pressing the stop button?

    Hello

    I use vi of green LED to indicate if the data has been loaded correctly. However, if I run the same labview program several times online, then the Green LED is always on because "value that data has been correctly loaded" crashes it since the previous session. Is it possible to reset all of the screws LED after pressing the button STOP (stop labview program).

    Thank you for the answers.

    Hope this helps:

  • How to save a graph after each iteration in a loop for?

    Hello

    I wrote the code that initializes a spectrometer. Once initialized, if the "Capture" button is pressed, the spectrometer takes a new spectrum three times (see loop for) every second. This spectrum is shown as a diagram in my front. My code works fine... it will update the spectrum every second.

    However, I would like to be able to record each of these three iterations in the form of separate graph. Basically I want to click on "Capture" and have my code to save three graphics to a specified folder. How can I do this?

    I have attached my VI.

    Thank you.

    Probably the easiest is to take the data of the for loop and pass out in a tunnel that is indexed.  Manipulate the resulting data table you want.  You could also do a producer/consumer and write files as the data comes out.

  • Port resets the value after calling DAQmxStopTask.

    Hello? My device is PCI-6025E and I used to reset by sending 0x00 on #0 with DAQ digital output port. It must be reset if the VC software button power ++ is pressed.

    But after a trial of DAQmx, even after that I sent 0x00, it will be set the value of 0x00 to 0xFF after calling DAQmxStopTask. I want to know how do I know it's 0x00, ahead of DAQmxStopTask.

    I tried to read the port #0 when writing of 0x00 in this regard, but it hangs or it returns error; He said that the port is reserved and can not read the port until the task (in writing) is completed.

    Here is the code that I tested.

    error int = 0;
    TaskHandle taskHandle = 0;
    TaskHandle DItaskHandle = 0;
    uInt8 data = 0 x 00;
    char errBuff [2048] = {'\0'};
    Int32 wrote;
    Int32 read;
    uInt8 dataToRead;
    bool32 bTaskStatus;

    DAQmxErrChk (DAQmxWriteDigitalU8(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,&data,&written,)); creaded the 6.5.2009
    DAQmxErrChk (DAQmxIsTaskDone (taskHandle & bTaskStatus));
    DAQmxErrChk (DAQmxWaitUntilTaskDone (taskHandle, 1.5)); 6.5.2009

    {if (bTaskStatus)}
    Reading test - DI on written port0-/ / / 6.5.2009
    DAQmxErrChk (DAQmxCreateTask("",&DItaskHandle));  6.5.2009
    DAQmxErrChk (DAQmxCreateDIChan (DItaskHandle, "port0/Dev1", "", DAQmx_Val_ChanForAllLines)); 6.5.2009
    DAQmxErrChk (DAQmxStartTask (DItaskHandle)); 6.5.2009
    DAQmxErrChk (DAQmxReadDigitalU32(DItaskHandle,1,10.0,DAQmx_Val_GroupByChannel,&dataToRead,1,&read,)); 6.5.2009
    printf ("acquired data: 0x%X\n",dataToRead "); 6.5.2009

    }

    Try to use the node property DAQmx to reverse digital lines.

    According to the that you configure DI / use the following

    Int32 __CFUNC DAQmxSetDOInvertLines (TaskHandle taskHandle, const char [channel], data bool32);

    Int32 __CFUNC DAQmxSetDIInvertLines (TaskHandle taskHandle, const char [channel], data bool32);

    Kind regards

    Glenn

    Technical sales engineer

    National Instruments

Maybe you are looking for