Updating equation in formula node from a string or text file

Is it possible to have a calculation performed based on an equation stored in a string (read from a text file). I am guessing not because the equation would need be compiled but thought I would ask.

Hi,
it depends on how complex the equation is.
Rather than using a formula node, you could use the eval formula node vi instead. (Functions->Analyze->Mathematics->Formula), but you may needs to re-organise the text formula a little.
Assuming you're using not the base package, and atleast LabVIEW version 6.1 that shouldn't be a problem.
Hope that helps.
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer

Similar Messages

  • Create Business Partner from XMl String not a file

    Hi,
    Is it possible to create a BP from an XML string. 
    I know about GetBusinessPartnerFromXml(string FileName, int index)
    but I dont want to save the string in a file before creating a BP from it
    Hope there's a method to do that

    Marc,
    This looks like it is a duplicate of this post, so I am closing this thread as it looks like you answered your own question!
    Create Business Partner from XMl String not a file
    Eddy

  • How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap?

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class? These are the keys,values: TreeMap The data I'd like to Cache is (date from the file, time of the file, current time).
    import java.io.*;
    public class CacheData {
      public static void main(String[] args) throws IOException {
      String target_dir = "C:\\Files";
      String output = "C:\\Files\output.txt";
      File dir = new File(target_dir);
      File[] files = dir.listFiles();
      // open the Printwriter before your loop
      PrintWriter outputStream = new PrintWriter(output);
      for (File textfiles : files) {
      if (textfiles.isFile() && textfiles.getName().endsWith(".txt")) {
      BufferedReader inputStream = null;
      // close the outputstream after the loop
      outputStream.close();
      try {
      inputStream = new BufferedReader(new FileReader(textfiles));
      String line;
      while ((line = inputStream.readLine()) != null) {
      System.out.println(line);
      // Write Content
      outputStream.println(line);
      } finally {
      if (inputStream != null) {
      inputStream.close();

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class?
    I don't understand your question.
    If you don't know how to use TreeMap why do you think a TreeMap is the correct solution for what you want to do?
    If you are just asking how to use TreeMap then there are PLENTY of tutorials on the internet and the Java API provides the methods that area available.
    TreeMap (Java Platform SE 7 )
    Are you sure you want a map and not a tree instead?
    https://docs.oracle.com/javase/tutorial/uiswing/components/tree.html

  • How to update a webdynpro context node from flex ?

    Hi
    I have an table in webdynpro and a datagrid in flex, both getting the value from the same context node. My requirement is to make the table fields editable and when I make changes in the datagrid, it should get reflected back in the webdynpro table.
    So how can I access the internal table's context node from flex ?
    Can anyone help me with this.

    Hi,
    As you are using a datasource, i assume you have set method in flex to read the datasource(context node). What you need to do is store the reference to this datasource in a local flex variable. Have a look at the below code:
    private var refreshFlexUINode:ArrayCollection;
    public function set refreshFlexUI(datasource:ArrayCollection):void
        refreshFlexUINode=datasource;
    and say you want to edit one row of the table, get that row from ArrayCollection and assign the new value.
    it would be like, if you want to save second row of the datagrid
    Object obj = refreshFlexUI.getItemAt(1)
    obj[<CONTEXT_ATTR_NAME>]=<new value>
    Hope this helps!
    Best Regards,
    Srilatha
    Edited by: Srilatha M on Jun 28, 2011 6:34 AM
    Edited by: Srilatha M on Jun 28, 2011 6:35 AM

  • Extract specific letters from a string of text

    Hello,
    I have an idea that I would like to implement into Numbers but I'm not quite sure how to do it, or even if it is possible. What I would like to do is replace a multitude of checkboxes with one cell. In that one cell I will have a string of text, with a letter representing a condition. From this one cell, I would like to be able to extract a certain letter into its own cell and then hide the multitude of cells.
    My idea is to eventually just be able to type the conditions into a single cell, extract the letter of the certain condition into another cell, and then extract that information into another table, all the while hiding all of the auxiliary columns in the original table. Because it would be much easier and prettier to simply type a bunch of letters into one box instead of having to check a bunch of boxes, no?
    For example Left Header Row 1 would contain the letters BMRT. Column A would return a "FALSE" value, while Column B would return "B" or "TRUE." Columns C through L return "FALSE," etc.
    In Left Header Row 2 we would have the string AJQTVZ, for instance. Column A would return "A" (or "TRUE"), and Columns B through I would return "FALSE."
    Is it possible to write such a formula? Or is there an easier way to be thinking about this problem?

    Let's start with the easy part.
    Cells on a Numbers table can contain data entered directly, or can contain a formula. They can't contain both. That means you cannot 'type the conditions into a single cell' in column A ("the left header" cell) AND have a formula which sets that cell to TRUE if the typed in data contains an "A".
    There's no problem doing this using column A as the key holder and columns B:Z to hold the TRUE/FALSE results, staring in both cases on row 2.
    Here's an example
    The column header cells (row 1) contain the letter corresponding to that column.
    The row header cells (starting at row 2) contain the 'bunch of letters' you describe. Note (A4) that the letters do not have to be entered in any particular order, and that extraneous characters (eg. a space) are ignored.
    The formula shown is entered B2, and filled down and right from there.
    =IFERROR(FIND(B$1,$A2)>0,FALSE)
    FIND returns the position of the first occurrence of the target string (in this case, the single letter at the top of the column) in the search string, then compares that with the value zero. For any letter that is included in the search string, the find value will be at least 1, so the comparison will return TRUE. If the target letter is not found, FIND returns an error. IFERROR traps this and returns FALSE.
    Since the target depends on the letter at the top of the column, all that's needed to extend the range of possible letters to the full alphabet is to enter an A in cell B1, then run through the alphabet A to Z, with Z in cell AA1.
    Depending what you want to do with the TRUE or FALSE values in these 26 columns, it may be possible to skip the auxiliary column step and use a formula similar to the one above as the condition argument of an IF(condition,do-if-true,do-if-false) statement.
    Regards,
    Barry

  • Sending data from database to a Text file..??????

    hi guys i am having trouble sending records from a database to a .txt file,
    (the database is on my local machine)
    the code so far is below, when i compile, it compiles with no problems but when i run it it gives me errors....the errors are below....
    any advice or help will be appreaciated ...tc
    =============================================================================================
    code:
    =============================================================================================
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.math.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class DataOut extends JFrame {
    public DataOut()
    try
    // Connect to the Database
    //connection object created using DriverManager class
    //carpark is the name of the database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connect =DriverManager.getConnection("jdbc:odbc:carpark");
         // Read data from a table
    String sql = "SELECT * FROM member";
    Statement stmt = connect.createStatement();
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += rset.getInt(1)+" "+ rset.getString(2)+" "+ rset.getFloat(3)+" "+rset.getInt(4)+"n";
    byte buf[] = str.getBytes();
    OutputStream fp = new FileOutputStream("file.txt");
    fp.write(buf);
    fp.close();
    rset.close();
    stmt.close();
    connect.close();
    catch(Exception e) {
    e.printStackTrace();
    this.setSize(450,260);
    this.setLocation(500,200);
    public static void main(String[] args)
    DataOut frame = new DataOut();
    ==========================================================================================================
    ===========================================================
    error:
    ===========================================================
    C:\Users\giga\Desktop>javac DataOut.java
    C:\Users\giga\Desktop>java DataOut
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid characte
    r value for cast specification on column number 1 (dds)
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3811)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java
    :5638)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:583)
    at DataOut.<init>(DataOut.java:32)
    at DataOut.main(DataOut.java:54)
    C:\Users\giga\Desktop>java DataOut
    ===============================================================
    all the best..

    thx a lot it works...
    when it outputsto the txt file,, the data is all in one line...how can i seperate the output..sothat after it does one record the next record starts on a new line in the txt file...
    i know i have to edit this bit of the code but i am not sure which part...if that makes sense...
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += "First name: "+ rset.getObject(1)+"\n" + " Second name: "+ rset.getObject(2)+" Third data: "+ rset.getObject(3)+" Fourth data: "+rset.getObject(4);
    i have tried "\n" but it seems not to work..

  • Problem in showing chinese char from a Unicode based text file [*.txt]

    Hi All!
    There are some chinese characters stored in a text file [*.txt]. I'm using "Arial Unicode MS" font to show chinese in text file. The text file is showing chinese charatcres. But when I read this file and want to show each line of chinese characters. My program is showing some garbage. Here is my sample code:
    //arg[0] is a unicode text file name
    UIManager.put("OptionPane.messageFont", new Font("Arial Unicode MS", Font.PLAIN, 11));
    String chinesesample = "\u4eac \u5582";
    //this message box is showing chinese
    JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
    BufferedReader obj_line = new BufferedReader(new FileReader(args[0]),16);
        String data = null;
        while (obj_line.ready()) {
          data = new String(obj_line.readLine().getBytes("Unicode"));
          obj_line.readLine();
          JOptionPane.showMessageDialog(null, data);
        }But this code is not showing the exact chinese characters stored in text file.
    Regards,
    KS

    FileReader does not support setting a charset:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileReader.html
    Convenience class for reading character files. The constructors of this
    class assume that the default character encoding and the default byte-
    buffer size are appropriate. To specify these values yourself, construct
    an InputStreamReader on a FileInputStream.
    So our BufferedReader should be constructed from InputStreamReader on a FileInputStream.
                   BufferedReader br = new BufferedReader(
                          new InputStreamReader(new FileInputStream("out.txt"), "UTF8"));Here is an example:
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    // import java.io.FileReader; // no need for this
    import java.io.InputStreamReader;
    import javax.swing.JOptionPane;
    public class DocumentRenderer{
         public static void main(String[] args){
              try{
                   String chinesesample = "\u4eac \u5582\n";
                   System.out.print(chinesesample);
                   FileOutputStream fo = new FileOutputStream(new File("out.txt"));
                   fo.write(chinesesample.getBytes("UTF8"));
                   fo.close();
                   BufferedReader br = new BufferedReader(
                          new InputStreamReader(new FileInputStream("out.txt"), "UTF8"));
                   JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
                   chinesesample = br.readLine();
                   JOptionPane.showMessageDialog(null, "Chinese Text..: " + chinesesample);
                   fo = new FileOutputStream(new File("out.txt"));
                   fo.write(chinesesample.getBytes("UTF8"));
                   fo.close();
              }catch(Exception e){
    }

  • Data from planning cube to TEXT FILE IN directories of BW

    hi all
    i have 2 transactional planning cubes in BW. the data in these cubes in bw needs to be uploaded monthly in to a single text file so that APO system can access the data for some purpose.
    my question is how to upload the data from transactional cubes to the text file, which is more detailed. is that use ful to construct a ODS or CUBE(basic) on top of the transactional cubes.
    if i keep the file in BW directory whethere APO can access that.?..
    please help me out
    praveen.

    Hi,
    You could create a multicube over your 2 transactional cubes and extract your data with a query on the multicube.
    Make sure you restrict 0REQUID 'request id' using 0S_RQMRC 'most current data' to be sure you extract the most recently planned data.
    No need to convert the transactional cubes to basic cubes.
    To download the query I think you have to use the reporting agent of the broadcaster.
    Thanks for you points if you found this helpful or if this solved your problem.
    Best Regards,
    Filip

  • Save string in text file

    I have program to store Arabic string and save it in text file i use Eclpise there i did change the encoding to UTF-8 so i can read the string and print it fine but when i save it as a text file in c drive i get this ��������;����������������������;�������� insted of the arabic string.
    this is a part of the code:
    FileOutputStream fileStream;
    try {
    fileStream = new FileOutputStream ("c:/test/f1.txt");
    PrintWriter pw=new PrintWriter(fileStream, true);
    // s2=new String(s2.getBytes( "UTF-8"));
    pw.println(s2);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    }

    Hi
    Have a look at your OS settings and make shure that your OS regional setting allows support for Arabic.
    If you are using Windows you can check the settings at
    Start --> Settings --> Controll Pannel --> Regional and Language Options.
    Regards
    Vijendra

  • Upload data from Internal table to text file with  '~' separator

    can anyone help me to download data from internal table to flat file with  ''  separator. GUI_DOWNLOAD is not working in my case ....like for ''  separator

    Here it is
    REPORT  zkb_test1.
    TYPE-POOLS: truxs.
    DATA: i_scarr TYPE TABLE OF scarr,
    i_conv_data TYPE truxs_t_text_data.
    SELECT * FROM scarr INTO TABLE i_scarr.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator    = '~'
      TABLES
        i_tab_sap_data       = i_scarr
      CHANGING
        i_tab_converted_data = i_conv_data
      EXCEPTIONS
        conversion_failed    = 1
        OTHERS               = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename                = 'C:\Test1.txt'
        filetype                = 'ASC'
      CHANGING
        data_tab                = i_conv_data
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        not_supported_by_gui    = 22
        error_no_gui            = 23
        OTHERS                  = 24.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Regards
    Kathirvel

  • Data from transaction cubes to text file in bw directories

    hi all
    i have 2 transactional planning cubes in BW. the data in these cubes in bw needs to be uploaded monthly in to a single text file so that APO system can access the data for some purpose.
    my question is how to upload the data from transactional cubes to the text file, which is more detailed. is that use ful to construct a ODS or CUBE(basic) on top of the transactional cubes.
    if i keep the file in BW directory whethere APO can access that.?..
    please help me out
    praveen.

    You can load data directly from the BW cubes to APO if the BW system is set up as a source system.
    If you need the file then you may want to investigate using open hub.

  • How to send data coming from modem to a text file

    hi frnds
    I have a modem program in which i can receive sms and call details.What i want is i want to store those msgs to a text file.
    The String variable to which that data is going is in readData() method of some Receiver.java file.
    I tried like this
    FileOutputStream file = new FileOutputStream(new File("modem.txt"));
    Receiver rcvr = new Receiver(); // here i am getting error " the constructor Receiver() is undefined
    String data = rcvr.readData(str);// here error is str cannot be resolved.
    file.write(data); // here i am getting error "Syntax error on token "data", VariableDeclaratorId expected after this token"
    can anyone help me ???

    You need to go and read some Javadoc for all the methods you are trying to call. While you're there have a look in java.io for methods that can write a String.

  • Want to convert the .DAQ file from MAX to a text file to be included with data runs for experiments.

    I want to take the .DAQ file from the MAX program and convert it to a text file. From my understanding this file contains all the information for the channels and hardware that is currently set up on the system. I want to use this data as a file so that others can set up the experiment again in the future and this data would be helpful. Thanks in advance for any help in regard to this matter.

    HAL;
    I'm attaching a Labview example to this answer which does that with the properties of your virtual channels configuration in MAX. Other than that, there isn't any way, at this time, to convert the .daq file to a text file.
    Hope this helps.
    Filipe
    Attachments:
    vrtchstf.zip ‏19 KB

  • Importing Data from SQL DB or Text File to Call Manager 8.5.1

    Hi Everyone,
    I would like to import from an external DB or text  file, what have you, the Employees Single reach Number to Call Manager.  Please let me know your suggestions.
    Thanks

    I don't see why not. This additional requirement would likely require you go the AXL API route so that you can remove unnecessary manual steps. If you are looking for a "trigger" event, then that would be trickier. You may be able to craft something from audit logs or tomcat logs but I don't know if that would be worth the headache. It would require some additional thought.
    You could do a scheduled sync. You will need to ensure you understand all database dependencies and account for some of the additional end user customizations (like time of day and allow lists). The database schema (data dictionary) for your version is here:
    www.cisco.com/en/US/docs/voice_ip_comm/cucm/datadict/8_5_1/datadictionary_851.pdf
    HTH.
    Regards,
    Bill
    please rate helpful posts

  • Loading data from oracle table to text file........

    how can i load data from a oracle table to a text file or CSV file using PL/SQL procedures where the pls/sql code will take the table name dynamically.........
    soumen

    Try this thread..
    Is it possible to export a pl/sql region as a csv file?

Maybe you are looking for

  • Add File to library option

    With Cds I've burned on to my computer before putting into itunes, usually I use the option to add file to library and select all the songs in a music folder to import them on my ipod, but now it won't let me import mulitple songs at once onto itunes

  • Access SQL Query Problem - Pls help

    Hi, I'm connecting to an Access database and have a query which looks somehting like this: SELECT Accept.ACCEPT_NO,      Accept.CURRENCY,      Accept.INT_RATE,      Accept.F_AMOUNT,      Accept.DEALER,      Accept.MATURITY,      Accept.START_DATE,   

  • Scheduling of Report  Mail it to concern User

    Hi Experts Is it Possible to Send the reports on Mail on predifned Time . Eg If daily how much material is dispatch. I want to schedule this report at 5 PM every day .Per day wise. If Possible please guide me Thanks & regards Ashish Gupte

  • IDOC: WMMBXY inbound status.

    Hi If we get and error processing an inbound goods issue ,how can we inform the sending system that the inbound message failed?

  • Time Machine data 1 year old???

    Hi I had reason to reformat my Mac mini yesterday (trying to install BootCamp). I checked time Capsule prior to doing this to check that there were recent data back ups. Since there was, I put the Snow Leopard Disk DVD in and went to disk utility to