How to store the value in labview

I write a VI and need set a reference point before I have my operation.

Is there a way to hold the values for all 8 channels I am able in a constant number at the push of a button?

If I had this, I might just have the VI subtract these core values on and get my reference.

Thank you!

Generally, you would hold the reference value in a knot of registry or feedback shift.

Here's a simple example (LV 8.0)

Tags: NI Software

Similar Questions

  • How to store the values separated by commas

    Hi all

    I have a table named discount, with discount_id (number data type) as one of the columns.
    The user gives an entry as the value separated by commas, (ex: '123,27890,3543')
    I use built-in proc that separates the values separated by commas.
    DECLARE
       l_input   VARCHAR2 (4000) := '123,27890,3543';
       l_count   BINARY_INTEGER;
       l_array   DBMS_UTILITY.lname_array;
    BEGIN
       DBMS_UTILITY.comma_to_table (
          list     => REGEXP_REPLACE (l_input, '(^|,)', '\1x'),
          tablen   => l_count,
          tab      => l_array);
       DBMS_OUTPUT.put_line (l_count);   
    
       FOR i IN 1 .. l_count
       LOOP
          DBMS_OUTPUT.put_line (
                'Element '
             || TO_CHAR (i)
             || ' of array contains: '
             || SUBSTR (l_array (i), 2));
       END LOOP;
    END;
    
    Result:
    3
    Element 1 of array contains: 123
    Element 2 of array contains: 27890
    Element 3 of array contains: 3543
    Result set is stored in a table.
    I would like to do a select on the table of discounts
    Select * discount where discount_id (123, 27890 3543).

    I am looking for options,
    I need to create a new physical table as
    Create table new_table (identification number) and bulk insert in this table.
    Select * discount where discount_id in (select distinct id of new_table).
    or
    Is there a better way?

    THX
    Rod.

    Hello, SamFisher.
    May be the recursive subquery factoring help you?

    WITH test(f1, n) AS (select '12, 15, 235', 1 from dual
                         UNION all
                         select f1, n + 1 from test where n < regexp_count('12, 15, 235', ',') + 1)
    SELECT regexp_substr(f1, '[^, ]+', 1, n) f
    FROM test
    
  • How to store the value in the database using UTF-8 Content-Type

    Hi all

    I created a web application that uses soap services.

    I want to store data in my data base oracle in Hindi language, so I configured my compiler Jdeveloper in UTF - 8 as well as my oracle database also supports utf - 8.

    but when I store hindies data through web service (Soap service), value was stored as? in my database.

    where as when I store data hindies without web service data is stored as unicode (& #23455 ;) who can be recover in hindi font I have my jsp pages.

    Here is my sample code:

    package com.example.service;

    import com.example.bean.LanguageBean;

    import com.example.conn.OracleDBConnection;

    import java.sql.Connection;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import java.util.ArrayList;

    import java.util.List;

    Import javax.jws.WebService;

    Import javax.xml.ws.BindingType;

    Import javax.xml.ws.soap.MTOM;

    Import javax.xml.ws.soap.SOAPBinding;

    @WebService (serviceName = "ExampleService", endpointInterface = "com.example.service.ExampleServicePortType")

    @BindingType (SOAPBinding.SOAP12HTTP_BINDING)

    public class ExampleService {}

    Connection con = null;

    PreparedStatement pst;

    ResultSet RST;

    public ExampleService() {}

    Super();

    }

    @WebMethod

    public String insertValue (String eng, hindi string) {}

    String result = null;

    try {}

    con = OracleDBConnection.getConnection ();

    PST = con.prepareStatement ("insert into test1 values(?,?)" "") (English, hindi);

    pst.setString (eng, 1);

    pst.setString (2, hindi);

    int i = pst.executeUpdate ();

    result = i + "Notice inserted successfully;

    } catch (Exception ex) {}

    ex.printStackTrace ();

    } {Finally

    try {}

    OracleDBConnection odbc = new OracleDBConnection();

    odbc.closeConnection ();

    } catch (Exception ex) {}

    ex.printStackTrace ();

    }

    }

    return the result;

    }

    @WebMethod

    public list < LanguageBean > getAllRecords() {}

    < LanguageBean > the list result = new ArrayList < LanguageBean > ();

    LanguageBean lbs = null;

    try {}

    con = OracleDBConnection.getConnection ();

    PST = con.prepareStatement ("select English, hindi test1");

    RST = pst.executeQuery ();

    While (rst.next ()) {}

    lb = new LanguageBean();

    lb.setEnglish (rst.getString ("english"));

    lb.setHindi (rst.getString ("hindi"));

    result. Add (lb);

    }

    } catch (Exception ex) {}

    ex.printStackTrace ();

    } {Finally

    try {}

    OracleDBConnection odbc = new OracleDBConnection();

    odbc.closeConnection ();

    } catch (Exception ex) {}

    ex.printStackTrace ();

    }

    }

    return the result;

    }

    }

    Same thing happened when I send data from Oracle Application of MAF.

    Thanks and greetings

    Patrick Srivastava

    Thank you all, I found the solution to my problem. I put the CharacterSeto of my Oracle in UTF - 8 database.

  • How to store the values of variable level OBIEE presentation in DB

    Hi all!

    We have a command prompt of dashboard which is set up to store values in variables of presentation (period start and period end dates). Is there a way to store values selected from a database? for further processing?
    that is, I need to pass the variable level (report parameters) presentation to complex calculations to a PL/SQL function.
    Also my requirement might be solved if I can get access to the selected values of logical column in the tab 'Business Model and mapping' definition in the BI administrator.
    that is, I'll be able to define the logical column using VALUEOF (NQ_SESSION. < nom_var >)

    Kind regards
    Mr.Maverick

    Hello.

    1 do SQL PL/function (in the database) which has an input parameters, which number depends on number of guests and in it you'll insert these parameters into a table.

    2. your report in column expression answers call this function that will do insert, the code would be like:
    EVALUATE ("YOUR_FUNCTION (1%, 2%, 3%, 4%) (' as varchar (20), @{p_1}, @{p_2}, @{p_3}, @{p_4})

    3. Note that the function returns something and be careful on data types inside EVALUATE it.

    4. notes that, in the case where some messages are not selected (all or nothing) you recognize this case as:

    -case when LENGTH('@{pv_var}') > 0 then ' @{pv_var}' end else' all '.

    or like this:

    -case when LENGTH('@{pv_var}') is null then 'all choice"other" @{pv_var}' end; "

    Kind regards
    Goran
    http://108obiee.blogspot.com

  • How to acquire and store the values of DAQmx analog voltage (I do not want the graphic, but strings and values in a chart)?

    Hello

    How acquire and store the values of voltage DAQmx?

    I tried several code example, but they can't get the chart. I don't want to chart. I want to measure exactly the analog voltage values and record these values - as an excel chart, that contains the selected channels and voltage values.

    What the example code that I can use?

    My hardware is NI PCI-6251.

    Thank you very much.


  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

  • How to save the value controls in labview

    Hello
    I want to know how to record the value of controls in the PC. means if I attribute 5 numeric value to a control, he has to stay there even I restart my PC.

    And here is a simple example of using - http://decibel.ni.com/content/docs/DOC-15349

  • How to pass the value?

    Hello.. I'm creating an application of streaming, in which I have a list field in a screen like this...

    1

    --------

    2

    --------

    3

    --------

    and when the item 1 is selected means a url must be passed to the video player...

    I created the list field screen in a package and a video player in other package... but I do not know how to pass the value of the field from the list to the player... Help, please... its URGENT...

    You can get the index selected by the listname.getSelectedIndex () method and compare that value with Vector data (data store URL) .that you will give a correct value from the URL and pass it.

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • Store the value less than the current week and the year.

    Hi all

    I have a table called BACK, which structure is like this
    ITEM_NUMBER   YEAR_WEEK   MS
    ...........   .........   ..
    1N58          2012-WK02   01/15/2012
    1N58          2011-WK02   01/15/2011
    current my procedure I store the value in my new table that is less than the current week. But I want to retain the value less than the current week and the current year. Please, help me to get how I can do this.
    PROCEDURE BACKLOG_PROC_LT_CW IS
      BEGIN
     DELETE BACKLOG_LT_CW;
     COMMIT;
          INSERT INTO BACKLOG_LT_CW
            SELECT 
                  DC_UTIL.GEN_YEAR_WEEK(MS) YEAR_WEEK,
                  ITEM_NUMBER,
                  MSD
    
                  FROM BACKLOG
              where to_char(MS, 'IW')<to_char(sysdate, 'IW');
    
      END BACKLOG_PROC_LT_CW;
    Currently, with the above code is to store the value in my table of BACKLOG_LT_CW but if you see the data in the table from the BACK you will find YEAR_WEEk 2012-WK02 falls next year, but again it is store in my table because IW took only. Please help me get the soln

    Thanks in advance

    Concerning

    Are you looking for this?

    ...
    where to_char(MS, 'YYYYIW')
    
  • Double click and get and store the value in the variable.

    Hello

    It is my intention when I double click on a particular record on a table, I want to enter or store the specific record value in a variable and call this variable in the print/preview PLSQL code button.

    Below, I show the screenshot that contains a preview in the form of table and print button. After filling in the data. user double click the code officer LC354 and click Print Preview/mode button, it should display the report for only the
    Code of the agent of LC354(it's what I want). But normally when I click Preview before printing it affects wil see the report of the code of the agent of LC354 and LC325(which I don't).

    http://ImageShack.us/photo/my-images/811/printpb.PNG/

    My problem is how to capture the value ((*LC354*)) particular registration after double click the code(*LC354*) agent?

    I tried to store the agent code in the variable AG_CNT in mouse double click trigger with after the plsql code. but it dosent work.
    declare
    AG_CNT varchar2(10);
    begin
    *AG_CNT* :=GET_ITEM_PROPERTY('RFQ_AGENT_DETAILS.AGENT_CODE',CURRENT_RECORD);
    end;
    After that pass this AG_CNT value in *: AG_CODE *. the code below is in the Print/Preview button.
         cursor c1 is select nvl(count(ENQUIRY_NO),0) from scott.EXP_QUOTE_STATUS 
         where ltrim(rtrim(upper(job_status))) like 'APPROVED%' and ENQUIRY_NO = :REQ_FOR_QUOT.ENQUIRY_NO
    AND AGENT_CODE=*:AG_CODE* ;
    How to do this?

    SKUD.

    Hello

    When you click a folder, the focus moves to that record. To get the values of each element, just use the standard:

    :value := block.item ;
    

    François

  • Store the value of the string column input color

    JDeveloper 11.1.1.2.0

    I have a table with a column for the labels of color that stores the value of string type. The goal of this column is to color code (tag/highlight) certain ranks with the data it holds, currently it stores literals string like 'RED', 'BLUE', etc.

    I try to use the component of inputColor af of the components of the adf, so far, I converted label inputText default af table gives me and converted into the inputcolor component. I also set the simple property to true.

    When running when I submit the color I picked up that don't throw me an error, just around the color of the red component (like what you get during an error), then it returns a null value.

    I tried searching forums and I guess that the color picker is not much of a topic, just need some guide on how to convert string to store in db so that I can reuse the value later.

    Thank you!

    Try to manually add the method in the class of the line. If does not, you may need to use a bean to indirection. This last method requires a backingBeanScope bean (or the scope of the request) whereby you inject the binding of string attribute (#{bindings.attribteName}). Bean then simply implements the conversion logic and get/set the value using get/setInputValue of the binding of the attribute.

    Kind regards

    ~ Simon

  • How to store the original and to remove some duplicate songs in iTunes on a PC Win7, which took place after iTunes to scan for music during a re - install?

    How to store the original and to remove some duplicate songs in iTunes on a PC Win7, which took place after iTunes to scan for music during a re - install?

    I recently had to format my hard drive and reinstall iTunes 12.3.2.35 on my Win7 PC. As part of the re - install iTunes, I clicked on the button scan for music.  This has created duplicates several of my songs.  I deleted then the duplicate songs from iTunes, but when I went to play a few songs a pop-up said "the song would not be because the original could not be found.  You want to locate? "When I tried to locate the song it is not found, but when I pulled the songs out of the trash they could be found.

    How can I keep the original and remove any duplicate songs in iTunes on PC Win7 which took place after iTunes to scan for music during a re - install?

    iTunes can create duplicates if the same content is added several times from outside the media folder when it is about to make copies of everything that is added to the library, or is added from an external drive that hosts the press kit that was disconnected during the launch of iTunes.

    Official notice of Apple on the duplicates is here: find and remove duplicates in your iTunes library. This is a manual process and article fails to explain some of the potential pitfalls such as the lost coast and membership of playlist, or sometimes the same file can be represented by multiple entries in the library as well as a removal and recycling the file will break all the others.

    Use MAJ > display > show items to reproduce exactly to display the duplicates because it is normally a selection more useful. You must manually select all but one of each group to remove. Sort the list by Date added can make easier select appropriate tracks, but it works better when executed immediately after the dupes were created.  If you have several entries in iTunes connected to a same file on the disk hard then don't not send to trash.

    Use my DeDuper script (Windows only) If you are not sure, do not want to do it by hand, or want to maintain ratings, play counts and playlist membership. See this background thread , this post for detailed instructions and Please take note of the warning to back up your library before deduping.

    (If you don't see the menu bar press ALT to temporarily view or CTRL + B to keep displayed.)

    The latest version of the script can put away the dead links as long as there is at least a double live to merge his stats and membership of the playlist and must deal wisely when the same file has been added through multiple paths.

    TT2

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • To build the waveform.vi function how to calculate the value of dt

    Dear all

    Please guide me How to calculate the value of dt according to waveform.vi of construction

    My sampling rate is 25000 and I take 200000 samples.

    Kind regards

    Muhammad Irfan

    It's all simple arithmetic. The inverse of the sampling frequency power of samples is then the dt or the time between samples the number of samples is not relevant.

Maybe you are looking for