How can i store a value in a register, to be called up later in the program. I must be able to read and write to it.

Im looking at a bearing reading and i only want it to do a case loop if the data has changed on the bearing, so i need a value of what it was a cycle ago to compare it with, how do i do this?

Hi,
I'm not sure I,ve understood you clearly but it looks like you need to use "shift registers" in the loop.
Shift registers allow you to pass data from one iteration of the loop to another. For example in the situation when you need to know the value of some variable on previous iteration or on pre-previous etc.
To create shift registers on the loop you have to right click on the border of the loop and select "Add shift register" from pop up menu. Two arrows will appear on the left and right sides of the loop. To write data to the shift register you have to wire them to the right arrow, and to read data you have to read it from the left arrow. When you read data from shift register you read the value from the previous iteration. When you write data - you wri
te the curent value there. If you want to read preprevious data you have to click on the left side of shift register and select "Add Element". The new element (arrow) will appear which corresponds to preprevious value. And so on. To initialize shift registers before execution of the loop you have to wire the some data from the outside.
Another solution of your problem is using of local variables. You can create them from pop up menu of each control or indicator on the diagram. You can set them as read or write local.
Good luck.
Read help.
Oleg Chutko.
Attachments:
shift.vi ‏16 KB

Similar Messages

  • What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    If the HDD is formatted NTFS, then it suggests that there is a problem with the PC.  Check with the manufacturer.
    Ciao.

  • How can I stop iMovie from making thumbnails of clips from past projects when opening the program to digitize new clips for new project. i have looked in the preferences and couldn't figure out what to disable.

    How can I stop iMovie from making thumbnails of clips from past projects when first opening the program to digitize new clips for a new project. It takes forever for it and is very annoying. I have looked in the preferences and couldn't figure out what would disable this problem.

    You do not need to move your cursor much when pressing the mouse button to cause the tab to tear-off/tear-away into a new tab. No "sensitivity" setting that I am aware of. The tab in the new window can be dragged back to the original window.
    To disable the feature, install this: https://addons.mozilla.org/en-US/firefox/addon/bug489729-disable-detach-and-t/
    *Read the information on the above page
    *Set options for the add-on: Add-ons > Extensions, click Options next to the specific Extension (the 2 options are defined/explained in the above page).
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How can I get rid of unwanted persona? I choosed a new one but the old one apears everytime I open firefox and I can't remove it because it isn't in my adds on anymore.

    I tryed to choose the unwanted persona again, so I can remove it properly but it doesn't work. When I choose a new persona, it works until I close firefox and when I open it again I wear the old one again.

    Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    * http://kb.mozillazine.org/Resetting_preferences
    *http://kb.mozillazine.org/Preferences_not_saved

  • HOW DO YOU MAKE A 2.5' USB PORTABLE HDD ACCESSIBLE TO A MAC BOOK AND A WINDOWS BASED LAPTOP SO ABLE TO READ AND WRITE TO BOTH.

    HO

    The biggest diference is exFAT can handle files larger then 4GB in size.
    FAT (as it is called on OS X but really FAT32) can only save files smaller then that 4GBs.
    So if you don't need to save files bigger then 4GBs then you may want to use FAT32.
    But if you do have files (Not folders, just files) bigger then 4GBs then you will need to use exFAT. But there is a caveat to using exFAT. Do Not use Mac OS X to format a drive exFAT, even though it is an option in Disk Utility. OS X screws up the exFAT format to the point No Windows PC will be able to read the drive. In fact when connecting a OS X formatted exFAT drive to a Win PC the Win PC will state the drive needs to initialized.
    So always use a Win PC to format the drive to exFAT. It will then be seen by both Windows and Mac OS X.
    There is another option and that is to use a program that can make either Windows or OS X read the others native format. But I do not suggest that as those program can, and do, screw up which could make the drive inaccessible to either system. Which would mean you would lose all the data on that drive.
    fat-tomo wrote:
    Thanks for your swift reply, what's the difference between the two and which is better.

  • Lightroom 5 - I downloaded original purchase 2.14.  After a crash I reloaded today.  I can see the files but can't open. I don't want monthly cloud subscription I want open the program.  Customer Care (no phone support and email are awful)

    Why won't my LR 5 open?

    I have described the whole issue here.  It seems like there is NO support unless I buy a subscription. 
    After paying for this CD (Amazon) and I have the serial # .  The files are there but nothing opens. 
    Customer Care on the website is useless!  All it does is go to troubleshooting which didn’t help at all.  That’s how I got to forums. 
    I have WIN 8.  No screen capture, all you see are files/folders.
    Carol

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How can i format an external drive so as to read and write from both windows and mac side

    i recently bought a macbook pro and used bootcamp so as to be able to run win7 and mac. I now wish to have an external drive so as to backup and tranfer files between the two os's. Specifically to read and write form either windows or mac. How can I do this?              

    Format it as FAT.

  • I'm trying to share folder between users on a single mac.  I put the folder in "shared," set permissions so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    I'm trying to share a folder between users on a single mac.  I want both users to be able to read and write so the folder stays current on both accounts.  I put the folder in "shared," set permissions on folder so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    Did you log out of one account and into the other or just used Fast user switching?
    Is the permissions set to anyone?
    When you move data to teh Shared folder is it copied or just moved?
    If copied then it's not a folder both can access, just a way station like a USB thumb drive that things are coped too and off of likely.
    You can run this #5 on each user account to reset the user permissions once they are taken back out of the Shared folder
    Step by Step to fix your Mac

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

  • How can i store data in term of a tree structure

    how can i store data in term of a tree structure

    What a tree is the question. If you just want a fast access, ehats about Hashtable or dictionary classes ? The data there is structured in a tree. For a simple binary tree, you can use something like
    class Node {
    Node(Object data){
       Node left;
       Node right;
       Object data = data;
    void insert(Object data, Node parent){
      int test = data.compareTo(parent.data);
      if(test < 0 ){
        if(parent.left == null){
          parent.left = new Node(data);
        else{
          insert(data, parent.left);
      else{
        if(parent.right == null){
          parent.right = new Node(data);
        else{
          insert(data,parent.right);
    }And so build up a binary tree. The traversing methods can be found in almost any good book (pre-order, post-order, in-order), for search you have just to look at greater/smaller and descend in the tree.
    The Object data can be changed to what you want for storage, String, or primitive Numbers, Vectors ...
    Is that what you search for?

  • How can I store my iTunes library on an NAS (Fritz Box)?

    How can I store my iTunes library on an NAS (Fritz Box)?

    1. Drag the library to the external drive, launch iTunes with the Option key held down, click on Choose Library, and point it there.
    2. Get a second. Having the backups on the same drive as the original data won't help when that drive fails.
    (66929)

  • How can I return multiple values with PL/SQL Web Services

    Hi,
    I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
    I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
    Reginald
    ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? Thanks

    Alright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
    It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
    {color:#ff0000}
    create or replace TYPE person AS OBJECT
    ( id_interv number,
    first_name VARCHAR2(50),
    last_name VARCHAR2(50),
    date_birth date
    );{color}
    Then your function used in your Web Service should look something like this :
    {color:#ff0000}
    function info_emp (p_empno IN VARCHAR2) RETURN person AS
    l_emp person := person(-1,'','','');
    BEGIN
    SELECT first_name
    ,last_name
    ,emp_no
    INTO l_emp.first_name
    ,l_emp.last_name
    ,l_emp.emp_no
    FROM emp
    WHERE upper(emp_no) = upper (emp_no);
    {color}
    {color:#ff0000}
    RETURN l_emp;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_emp := person (-1,'n/a','n/a','n/a');
    RETURN l_emp ;
    END info_emp;{color}
    {color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
    &lt;first_name xsi:type="xsd:string"&gt;John&lt;/first_name&gt;
    &lt;last_name xsi:type="xsd:string"&gt;Doe&lt;/last_name&gt;
    &lt;emp_no xsi:type="xsd:string"&gt;0250193&lt;/emp_no&gt;

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • I don't own an Apple device, but I have purchased an audio album from the iTunes store. How can I play this on my android phone, as I am unable to burn the album to mp3 format? Can I obtain a refund if this is not possible? Thanks

    I don't own an Apple device, but I have purchased an audio album from the iTunes store. How can I play this on my android phone, as I am unable to burn the album to mp3 format? Can I obtain a refund if this is not possible? Thanks
    p.s. I am not knowledgeable of Apple/iTunes etc, I was under the impression that if I purchased an album then I can use my purchase on a non-Apple device

    mickyja wrote:
    I don't own an Apple device, but I have purchased an audio album from the iTunes store. How can I play this on my android phone, as I am unable to burn the album to mp3 format? Can I obtain a refund if this is not possible? Thanks
    p.s. I am not knowledgeable of Apple/iTunes etc, I was under the impression that if I purchased an album then I can use my purchase on a non-Apple device
    Micky,
    The iTunes Store sells songs in AAC format.  Most Android phones can play AACs.  Just sync them to your phone per the instructions with the phone.
    If by any chance your phone does require MP3 format, you can use iTunes to convert the files, per this guide: 
    iTunes: How to convert a song to a different file format - Apple Support
    (This conversion does not require burning.)
    For future reference, note that the iTunes Store is really optimized for people using Apple devices.  You might find it more convenient to buy music in Mp3 format from Amazon Digital Music or Google Play Music.

Maybe you are looking for