Problem backup a table using a shift register

In the attached VI I'm build a table 1 d of channels, then try to record using a shift register. For some reason any is not backed up my data and I don't understand why.

Thank you.

You must connect the table where all empty, else it will reset to an empty array whenever such a case occurs.

You also need a registry change on the inner loop.

Tags: NI Software

Similar Questions

  • Increment of the counter without using the shift register

    Is there a way to count = count + 1, with using a node registry or feedback shift?  I have a structure of the event within a while loop (see table).  When the button is touched (kickoff event), a test is carried out.  Based on the test in the case of a string is passed outside of the event to a case statement of success/failure.  The user can run one of these 'events' as many times as he or she wishes.  And in an order any... Test1 (fails)... test 1 (fails)... again... test1 (go) again... test 2 (pass) then test 1 (pass).  When the stop button is reached, I would like to know how many times each pass/fail is produced for each test.  Try to stay away from shift registers, as I have 18 w key so a possible failure for each, so I would need 36 shift registers.

    In my example, the printed final statement would be:

    TEST PASS/fail # x test was performed

    test1 failure 1

    2 in case of failure test1

    Test1 pass 3

    Test2 pass 1

    4 passes test1

    etc.

    Do not see an attachment.

    You can use a shift register to store a table.

    Each button would be mapped to an array index. For each button pushed you the value of the index table, + 1, replace the array element and pass out back for the shift register.

  • Why do I only a part of the graph of the wave even if I added the whole wave using the shift register?

    It seems only to read 200 samples and then stop. Shouldn't get a chart to continuous wave after using the shift over a time register loop?

    You must remove VI begin to break out of the loop...
    You can not 'start' a task that is already running...

    You also remove the VI start completely from your code... If you do not use start VI, a measurement task starts automatically when executing the DAQmx reading VI.

    Find the attached VI.

  • Table of shift register

    I need to create a program that takes an array of six elements and the use of shift registers if he pulled out a table that maintains the first element of the same thing, and then adds the second and third elements together, and then adds the second to the 6 ° element.  So if the input array is 2, 12, 10, 5, 20 and 25, the output array is 2, 22 and 72.  I think that using shift registers and a loop would work, but I can't make it work.

    Thanks for any help

    Ok.  Given that it is for a class, I will do more than any code.

    Comments.

    1. a shift register is a local memory form. So, ask yourself what this problem needs to be recalled?

    2. entry and exit tables are different sizes. No sense to wire the table via the shift register because the shift register will 'remember' how the input array is large.

    3. Reflection on comment 1, how you will get the information in the table to put it in the register shift?

    4. what happens if apply you the same rules but allowed the input array having a size greater than or equal to 6?  That's what is meant by an evolutionary approach to a problem. The code I posted works for length 6.  For any other length program must be changed. A scalable program work without modification for any input of size.

    It is often very useful to begin with a series of conditions, which you said we now clear. Then plan how you would the problem with pencil and paper. Then implement this plan in the software.

    Lynn

  • Table/Shift register losing values

    Hello

    I have attached the VI.

    The vi has a table with values in them. Simply, it looks a number when this number of games, it moves on a column and add everything in that cell in a table. He continues to do this until he sees 'END' at which point she stops.

    The problem I have is that everything seems fine for the first two "values" after which no matter what additional value he acquired he loses everything and keeps only the last known value.

    Your current code takes the unique element of your table and makes a picture out of it.  You then insert the name Test.  So everything that precedes the family name went at that time.

    Here is the code updated the minimum which keeps the TABLE in the shift register and simply adds new test name in the table.

  • Functional Global Variables: an indicator can be used instead of a shift register?

    It is a simple question, but I can't find an answer to it. The model agreed to a functional Global Variable is to use an uninitialized as in this example shift register:

    ('Référence IN' and ' Reference to "is actually a pile of references.) There is also a "Se Refnum" case, which comes the straight through the tunnels shift register.

    My question is, why can't we do store the indicator data? It is much simpler to use a shift register (IMHO a non obvious way to store global data!):

    The case "Se Refnum" does absolutely nothing. Other functions such as erasure of data can be implemented just as easily. The advantage of the FGV to help avoid race conditions is maintained because you always use the VI to access the data.

    JonP says:


    Not so much, the Inidicator can happily live outside the case structure, together and Clear would be just assign different values.

    If you have only a case structure, the indicator could not live outside of it.  In order to maintain the indicator data, your design requires that it is not written in for a case of Get.  If you have an exterior structure deal that decides on 'Get' or 'set or clear' and (in the case of "Set or clear") contains the terminal of the indicator and a classiquee case that decides on 'Set' or 'clear '.  However, I would consider this a design below using the standard template of the FGV.

    The difficulty with retrieving the value if you want to do a read operation / writing change. But LV provides many ways to retrieve data from an indicator (one you don't mention is the 'Value' property), do you mean that's all "incorrect"?

    Yes (I mean that they are all incorrect).

    You could hack your way around the design to work with a single structure of matter and the terminal of the indicator being outside using a method to read the value of the indicator and through a tunnel to the structure of the case through wiring for the tunnel of writing indicator in the case of 'Get '.  However, who will require a local Variable or value of property node.  As I said, these (I only mentioned the local Variable originally) are not good choices for performance and scalability.  If you are not aware of the functional differences between the terminals, local Variables and nodes of property value, refer to this article (obviously advantages/disadvantages such as redraw objects on the front panel are not relevant here).

    I guess you could say that indicators should only be written, but it is difficult to be pure!

    No, it's not, just use the classic design of the FGV!

  • Shift register do not add

    Hi all

    I am trying to use the shift register adding all the waveform detected. The additional result will be divided the current number of waveform to the average score. However, it seems that the shift register does not at all. See the image below, if the waveform number is 1000, the intensity of the signal averaging is of only 1/1000 of the signal detected. Theoreically, if no noise present and the shift register has added each detection, the average signal should be identical to the detected signal. Can someone help me solve this problem?

    Thank you very much

    First of all you should be dividing by the end of the inner loop, I not + 1 of the outer loop.

    If you want an average on the outer loop as well, you need a registry change in this loop.

    Lynn

  • insert into the table using the loop and permanently display

    Hello

    I am trying to insert some values of loop loop run into two tables and trying to draw using Graph XY. I need values Joanie be inserted one by one in each iteration. But at the end of the iteration in the table, I get only last value... can someone help me?

    Hello Manu,

    use a shift register to store each table. BuildArray allows to add/Add (not Insert!) of new values in the table.

    Then you need not use an ExpressVI to create the chart, a knot simple bundle (as indicated in the context-sensitive help) is enough to create a field in a XY Chart...

    Example with a table:

    Keep in mind:

    It's not (memory/CPU time) effective to use for time of data acquisition time (giving rise to large Bay). Use different approaches then...

  • Reference stored in shift register

    Hi, I'm having trouble with references. The LabVIEW Wiki reads control references (http://labviewwiki.org/Control_References) are the right way to switch the user interface elements in subVIs. So, this is the path that I took.

    I have this ActionEngine UI (see attachment) I want to handle specific tasks. One task is to add the system messages to a simple text field that is in the user interface. I want to use this same ActionEngine UI in several subVIs to add messages to the same text field. So what I tried to do was having an operation of initialization for the user interface AE that stores a reference to the text field in a shift register. It did not work. Whenever I call UI AE to add system in the subVIs messages that I have to go again in the reference. It defeats the purpose of using a shift register, because I still have over the reference in each unique Subvi using EI, when in reality I want to only do as part of initialization.

    My guess is that the reference is released somehow. How I would solve this good?

    You have the reference wired for change of registry entry.  It gets reset to values each time Wired EI is called.  You should put the reference control in the case of 'initialize' and leave uninitialized entry to the unwired (for a shift register) SR.

  • How to clear a table used in a shift register quickly?

    Hi all

    I'm sure it's a quick, but I'm missing the concept.

    I have a table of boolean in a shift register. I have a case where I basically have to 'reset' the table rather than adding on... What is the best way to do this?

    Thank you

    Cayenne

    Use a constant empty Boolean matrix to clear your table.

    Steve

  • problem with the shift register

    for purposes of simplicity, I remove code without problems

    Description:
    1. my state machines, for some reason, a lot of cases.
    2. the order of each case may not change.
    3. the main prupose is to get the difference as on the front panel
    4. prior to entry difference, I first is measured in the case where 2 and TRY using shift register to pass data, ideally at least 5
    5. However, the "previous" value is updated too soon, unlike 'get' is always ZERO.

    for example
    You can see the shift register on the left side has two components, ideally, the 'get' difference should display 2-0 = 2.
    However, given that the second element of the registry team updates too early, my objective cannot reach and meet up with ALWAYS 0

    I think it's my misuse of the shift register for the computer to several cases.

    I pasted this problem for 4 hours... kind of stupid, but could not understand

    in a mulit-case state machine, how to properly passes data to the case (5 in this example) INSTRUCTION to ensure that I get the correct calculation

    GOLD: because I am only looking to the current value and the previous value, are there other ways to get this problem is?

    Thank you

    It is a case where execution highlighting can be helpful. Turn on execution highlighting by clicking the light bulb on the block diagram toolbar. Then, run the VI.  You will see the left side of the team to register the change as the state machine goes through States 3 and 4.  At the time where what happens to 5, all data in the change record is identical.

    One of them might be to use two registers to offset, one for the current value and the other for the previous value.

    Lynn

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

  • Problem initializing shift register

    Hello

    I'm using labview 7.1 to control a spectrometer. In my program, I have a certain function that runs 32 times and adds up, and all works again n times. I use two 'loop' for s in the other. In the inner loop, I have a shift register to send information from one iteration to another, so that it adds. But I guess there is a problem with the shift register because I get just a blank chart after the loop runs. I used an indicator to check the output of the function, and it certainly works. I guess that the problem happens when I add up the results of two iterations. Sometimes when I would forget initialize the shift register that I use to have this problem, but this time I can't initialize the shift register because the option create a constant is disabled for some reason any. can someone help me please! Thank you!

    labview_dummy wrote:

    I'll try using a case structure and see if it helps.

    Seems to work very well here:

    labview_dummy wrote:

    I used the flat sequence structure because I donot want the spectrometer close vi to run before the loop that are parallel and not in series (they are all two cables to the first envelope and not to each other. Thank you!

    Can do "in series" by plugging the entrance in the loop FOR, for example.

  • Replace the subset of table w/Shift Register too slow for my Application

    This is similar to other posts, but I have not found one that addresses the limitations of an approach of shift register.

    I have a part of an application that I'm turning to 500-1, 000Hz.  The process extracts a block of data from the ADC, and I need to store this data, then collects more of the ADC.

    I've set up what seems to be the bottleneck of the present in the attached .zip file.  When I run the attached code with profiling (see. PNG file), it tells me that it takes on average 3.8ms for the Subvi to run.  At this rate, I can only run around 260 Hz.  I have a Subvi similar to this in my code and the code can run at 1000 Hz without this Subvi, but slows down to about 160 Hz when it is activated.

    Is it possible that I may collect data about 1.7 KB tables and run at the speed I need?  Any input would be appreciated.

    For purposes of reference. Debugging should be disabled on the sub - vi.

    Looking at the code you provided - don't just disable debugging -! you have some other options of "exécution" to reset.

    This should speed up the Sub - vi SR will be your friend again!

  • Can take us backup of external table using expdp

    Can take us backup of the external table using expdp, please suggest any doc.

    Thanks in advance.

    Yes, this works, see this example:

    http://www.Oracle.databasecorner.com/resource, 3950,data-movement-with-external-table-and-datapump.aspx

    Werner

Maybe you are looking for

  • Google plays the misfortunes of services

    I struggled with the game of Google services in place, so today I thought to uninstall the update of November 17 and reinstall. First of all, I was greeted by a saying that he was an administrator and first of all, I have to remove from the list of d

  • Windows XP, Skype 5.0, Logitech Pro 9000 Webcam, video error: "cannot start video renderer. Make sure you have a valid installation of DirectX.

    Everything has worked out well until the Skype 5.0 download.  Since then, the video does not appear on my screen and displays the following message: "cannot start video renderer. Make sure you have a valid installation of DirectX. The driver is up to

  • Complete PC Restore 0 x 80042406

    Error 0 x 80042406 said complete PC Restore a data disc is set to active in the BIOS.  Set another drive as active. Complete restoration of the PC detects image backup and chows new disk in drive C:.  But it does not restore on this drive. with the e

  • Endless loading at startup screen

    I tried to restore my Inspiron 518, the power supply was faulty, so I replaced it and it is able to raise, but when I start it, it gives me a blue screen. I tried a factory image restore, but it froze half way through, and now when I select Repair in

  • WPA - PSK, BEFW11SA, can not connect the computer to the network

    When I enable security wireless mode WPS Pre - Shared Key, algorithm, TKIP, a 9-character key and key group og renewal 3600 and then configure the computer, the computer is not connected to internet, even if the connection is recognized. When I creat