Anyway to save the data in a loop without using shift register or feedback loop

Hi all

I've been thinking, is it possible to save data in a loop to the next iteration without the use of a shift register or a feedback loop?

I need the possibility to reload the data within a loop from a file of lvm, but I want to use the same data until I have load some new.

The reason why I don't want use the node registry or feedback shift is due to speed, although I don't know if the registry change

in fact moves all the data of one register to another, or if it is stopped until a change data occur.

I want to reuse data medium and large (6 measure of strength, pressure 2, 1 flow channels) of about 10 s data in each file with samplingsrate of 2 kHz...

In my testing program, I have several CPU demanding computations and 3D graphics, so I want just to minimize the CPU loading as much as I can for each part of the

software...

I am enclosing a small VI to explain what I mean.

I have now, I shouldn't use the express VI and I'll change that as well - it's just a proof of concept!

Hope you guys can help me better understand this shift register...

Thank you!

-Tommy

If the speed is the name of the game, go with the flow (data) and stick to a shift of registers or feedback node.  No data is moved, their job is to do pretty much exactly what you describe.  Any other solution, control/locals/globals will imply a copy of the data, and then you will have problems with speed.

Tags: NI Software

Similar Questions

  • How to save the data of different rates in a single VI?

    Hello

    I tried to acquire 2-channel measurement of voltage at 10 kHz and analyze data, finally to save the data to both 1 kHz and 1 Hz. What I did is this loop of producer/consumer use to do the work of recording at different rates. I have queued all the data in the main loop, and then removed the data and write it to the file in other loops. I added "wait = 1 ms' a consumer loop for recording data at 1 kHz (loop of fast logging) and added" wait = 1000ms' in another loop to get the slow 1 Hz (logging loop) data record.

    My problem is that the data record works fine in the case of 1 Hz, but it does not work for the case of 1 kHz. Although the time-out period defined as 1ms, the interval between two samples in the loop of fast data recording is about 100ms.  Subsequently, 1ms, 10ms, 100ms, 150ms tried in this loop to see what intervals are in these cases. I found that the intervals are same as assigned in the timeout greater than 100 ms, but if the time-out is set to 1ms or 10ms, the intervals are again around 100ms.

    My question is - why I can't reach data record 1 kHz using loop of consumers/producers, while the same way works for the case of 1 Hz?

    Thank you very much

    Hao

    You are sampling at 10 kHz and you want to back up your data "as if you sampled at 1 kHz and 1 Hz", if I understand correctly.  I also understand that you use the design of producer/consumer model to help with this (a good idea).

    I'm assuming that the producer 'product' a segment of data at a time, to say the value of a second of data or a 2 x 10000 I16 (assuming a 16-bit integer A/D) table you put into a queue and wait for the consumer.

    If you have data at 10 kHz, how do you get representations to 1 kHz or 1 Hz?  There are (at least) two possibilities - average data over the interval of proper time, or (re) sample data.  The good thing is that you can handle the situation 1 kHz and 1 Hz, essentially at the same time and in the same processing loop.  I'll discuss the case 1 kHz - with the assumptions I made, the case of 1 Hz becomes almost trivial.  I'll discuss treatment also just one channel, as it is similarly almost trivial to go from 1 to N-channel.

    If you have 1 second of data sampled at 10 kHz, and will "reduce" 1 second of data sampled at 1 kHz.  Note that you have 10 samples for each data point that you want in the end.  The "Averaging" method said "Replace all 10 points in the average of these 10 points", while "resampling" method said "replace 10 points with, say, the first point, ignoring the others.  An easy way to do this is to use the Reshape feature to transform an array of 10 x 1000 elements of your array of 10000 items 1-D 2D.  Now, you can use a loop FOR an average of 10 items or simply extract the first.  [This is where almost everyone, including me, a mistake - when you put a 10 x 1000 2D array in a loop, you get 10 iterations of 1000 items and we want 1000 iterations of 10 items.]  Oops, what to do?  [Simple - converts 2D array before sending in the loop FOR.]

    So when you have processed your 10,000 points and got both 1000 samples "1 kHz" and 1 "1 Hz" sample, you write each of them in their respective folder and wait for the next item in the queue of the consumer.  Consumer focus on the queue loop, it will automatically 'block', waiting for the producer of the 'feed' some data.  Note that the producer generates data once per second, producing 10000 points for the consumer in the process, but the time to deal with these points and perform the required disk i/o should take only a few milliseconds (certainly not more than 100, even if writing to a floppy!), so you don't have much time to do other interesting things (such as display data).

    Bob Schor

  • Save the data to the excel file

    Hello

    I make a program reads the value of the probe via serial port... but I don't know how I can record this data in excel file... I open the example in the labview example, but I don't want to like this... becaue I use a while loop in my program that cause opened "multi" excel file... . How can I solve this problem?

    You need to think about what you want to do, not how you want to do.  I'll make a few assumptions here - adopt to your notebook loads "real."

    I guess you want to take a series of readings from a device (sensor, serial port).  I suppose you take multiple readings, perhaps their display on a table or chart, for a certain period of time.  Once you have a set of data, you want to save all the data in an Excel file.

    If this scenario is correct, there are three distinct phases to this task - implemented the data collection (open the serial port, manage the interactions of the user according to the needs), data collection (and potentially produce tables or graphs) and save the data.  Note that only step 2, collect data, involves a repetitive action appropriate for a while loop.  Once you have all the data, you can then open an Excel report, use something like Excel table easy to put the Table in the report or chart Excel easy to put a chart in the report and save the report in evidence, save the report.

    If you are using a relatively recent version of LabVIEW (2010 or later), the new generation Excel report screws are pretty easy to use.

  • Save the data on the button and then save the data on a spreadsheet on another key.

    Hello

    I am a new user of Labview. I'm developing a Labview 7.1 program that will record data on the keys. Another button, he must stop recording, and then open a file dialog box to save the data stored on a worksheet. I read in this forum that I have run several loops in parallel but unfortunately I can't see the examples because I use an older version of Labview. I tried to do to pass the data in a table, once recording is started, and then I carry the data to write a function that spreadsheet inside an another case statement. However, once I put the writing on the spreadsheet for the case statement he cannot write. I tried to put out the statement box but it save only a single set of data. Sorry if I am not clear with my explanation. It will be greatly appreciated if someone can give me some advice on this.

    Thanks in advance for your information.

    See you soon,.

    Anson

    You want to build a table of data.
    If the Boolean value is true, you will add a data point in the table.

    If it's wrong, you do not add anything, and the loop will be re-iterate.

    In the example below, the same code appears twice.

    Half top shows the case of 'Real' and the bottom half shows the case of 'false '.

  • How can I control the writing-data-to - spreadsheet.vi to save the data?

    Hi all

    I tried to draw a wave and save the data to excel. Now, I want to control the writing-data-to - spreadsheet.vi to save data when I want which means that the vi records nothing until I have send a command to it. How can I make this happen or do I need any other screws?

    Nicky

    Hello

    Maybe this wat you are trying to do... Let me know if it helps...

    Kind regards

    amine31

    (Kudos are always welcome)

  • How to save the data in table 1 d to Excel in continuous

    Mr President.

    How to save the data in table 1 d to Excel at all times, so that all the data of the first scan must be placed first thought and all the data from the second analysis must be placed on the second Board and continue on the street...

    Sy@m...

    Hi Sy@m

    Here is a vi that might give you a few ideas to try:

  • HP 54602 B oscilloscope to view 2 channels and save the data to a file

    Hello

    I use a HP Oscilloscope 54602 B to plot the voltage and current in a circuit. So I need LabVIEW to save the data of the two strings in a file or to have the plot of both channels. I used the "get started" VI with the driver and I am able to get the trace of the 1 channel. I'm not familiar with programming in labview so y at - it someone who has a VI near the VI that I need?

    Thank you.

    Try these.

  • How to use "Write to the spreadsheet" to save the data when I want?

    When I use write on worksheet to record data, I must determine whether to save data or not before running the program, is there a way I can run the program and then decide whether to save the data, which means I can have a 'save' botton After runing the program, when I shoot, I can record data, otherwise, it is not. Thank you.


  • Save the data in a horizentall

    Hello

    Any that offered little help on how to save the data in a portrait. As a result of my attachment all my datas saved az a tables!

    And also, I'll be glad if you told me that I can add text in front of my data as an outamaticlly to explain?

    Any suggestions would be greatly appreciated! Thank you very much!

    Sincerely,

    First convert your string numbers using decimal channel number.  Once your numbers have the appearance of a string, you can format the text with them.  If finally, you can use concatenate strings to concatenate (add all channels) your number in the string with another text format:

    This code would create the following string:

    Then, you can save your all channels on a line using the same method as above.

  • How to change the time that the computer automatically saves the data entered. I want to record while I'm typing.

    How can I get the computer to record while I'm typing in it?

    Hello

    · What application you are using to save data?

    You must manually save the file you are working on using the key CTRL + S.

    However, if you use any office 2007 or applications later we have auto save option.

    Note: AutoRecover or AutoSave does not replace the Save command. You must use the Save command to save your document at regular intervals and when you have finished working on it.

    ASR is effective for unplanned interruptions, such as a breakdown or accident. AutoRecover files are not designed to be saved when a logoff is scheduled or a normal shutdown occurs.

  • How to save the data in a form called?

    Hi all.

    I have two froms.like FORM A and FORM b.

    I have a button on the FORM B.

    When I click on this button, FORM B and FORM data should be store in the database...

    I wrote something like this in the form B

    when_button_pressed->

    commit_form;

    go_form ("c\user\babu\FORM A.fmx");

    commit;

    Here, my problem is when I click on save button only saved FORM B, FORM A not memorizing the data in the database.

    Please help me and tell me where the error...

    Post edited by: N.B.Babu

    I guess that the modules form a calls B with OPEN_FORM module (..., SESSION), IE. Module B works in the new session of database

    (by the way, the database connection is the same, because the connection to a database can go several database sessions).

    Your code cannot save the data in the two sessions of database:

    commit_form; -This saves the data only from module B (because A module work in diferent database session).

    go_form ("c\user\babu\FORM A.fmx");  -Now you in module A.

    commit; -This has no effect, you are now on the module to a.

    Kind regards

    Zlatko

  • All of a sudden I can't type data on registered forms. The purple bar above shows "Please fill out the following form. "You can save the data entered in this for."

    All of a sudden, I can't type data on registered forms. The purple bar above shows "Please fill out the following form. You can save the data entered in the form.

    Program used to complete the form (I guess they are in PDF format)? OPERATING SYSTEM? Versions of both? Forms were filled before you save them?

  • form created in the ES4 will not save the data entered in acrobat readerXI

    I created a big form in Live Cycle Designer ES4. If I save the form in pdf format and open it in Acrobat Reader XI I get the message that I can't save the data entered in the form only print it. All I want to do is to put the form on our web site for people to download, fill out, save, and send it to me. I consider another method that is if I distribute the form and take the distributed pdf and save it locally, when it is open in the player you get the Send button on the purple bar on the right side. This will confuse many of our users, so if there's a way to not have the submit button so that work, but how do I stop the send on the purple bar button?

    You must activate the reader of the form. You can do this in Acrobat 11 open the form in Acrobat and select: file > save as other > Reader Extended PDF > activate tools more

    11 reader can save non-active AcroForms (created in Acrobat Forms), but not the forms enabled for the XFA (forms created in LiveCycle Designer).

  • Cannot save the data

    I get the message "Cannot save the data" every time I try to open a single file CPTX. other files work fine. When I open the file, it gives me that message box, I click ok and another box says "a fatal error has occurred and the application is being completed. "and Captivate closes.

    I cleared the cache. I also tried to find and rename the Preferences folder, but I don't see any preferences folder or file in the \AppData\Local\Adobe\Captivate 5.5\ folder. Any ideas on what I need to do to fix this?

    The preferences folder is the folder "Captivate 5.5' in your profile (users\\AppData\Local\Adobe directory.

    Lilybiri

  • How can I display the time of the data stored in a file using labview?

    How can I display the time of the data stored in a file using labview?

    Hi Matt,

    I think that we will need a little more information as to how you capture the data, what data you capture, etc.

    If you capture a waveform, is to extract the time data waveform which includes the t0 and dt values, so you can understand the time stamp of a specific data point as in the image below.

Maybe you are looking for

  • Tecra Z50 - utility of fingerprints can not connect on the sensor

    Although the latest version of the driver for validity sensor is installed the fingerprint utility cannot connect to the sensor. System: Win 8.1 64-bit

  • Z200 lock failure 2239-ME Image - Image of 2240 - unlock ME failure

    Dear reader, Whenever I start my HP Z200 I got a black screen first by the following text: Failure to lock picture 2239-ME Image of 2240-ME unlock failure Press F1 to start After pressing F1, it starts and starts Windows. He started all of a sudden.

  • Several Analyses in Terminal

    I run several analyses in Terminal (OSX 10.10.5; 8 GB RAM) and wonder how best to distribute my computing power. If I want to run 4 analyses, should I open 4 windows separated, or a window with 4 tabs? Also, can I know how much RAM / CPU is used by m

  • OfficeJet Pro 8610: Printer prints in different languages via e-Print

    A strange thing happened. I sent - by email to the email address of the printer from my parents - an Excel in Dutch.The printer received perfectly and immediately have printed... in English! What happened to anyone before?

  • Excel formatting

    I'm trying to change the style of text in Excel using ActiveX.  I could do things like all the horizontal and vertical alignment and define the width, height and the column of row.  Right-click on the property node and selecting Help for Style was no