Saving results to a text data

Hello,
I need to build a text file such as in attachement.
any idea ?!
thanks alot
Message Edited by Support on 11-13-2007 12:59 PM
Attachments:
Saving.txt ‏1 KB

Hi,
I made some assumptions on the inputs, there are arrays for each input.  The output is plain text and can be saved to a text file by flipping the toggle switch up.  the program is written in Labview 8, let me know if you need it saved in version 7.x.
Chris
Chris Reyerson
Optical Systems Engineer
Arete Associates
Tucson, AZ
Attachments:
Text File Generator.vi ‏24 KB

Similar Messages

  • Saving import filters of text data files in AddressBook

    Hello,
    Is there a way of saving the import filters that you setup when importing datas from a text file in Address Book ?? Thanks in advance.
    Robert Lespérance

         

  • I can't format text data saved to Excel.

    I am using the attached VI to write text data to an Excel file. The problem is I can't reformat the numeric data to create charts.
    Can someone shed some light on this?
    Attachments:
    M-51161-001 Write Excel File.vi ‏32 KB
    sample1.xls ‏206 KB

    The reason for this is that those cells have been stored as text. This is indicated by the little triangle in the upper left of the cell. The reason for this is that in your code you are creating a 2D array of strings and writing that out. Excel directly treats this as text information, and not numerical information. If you wish to treat those value as numeric then you need to select the entire range of cells and then click on the little yellow icon to display the context menu:
    You can also change the way you're writing out the data by using numerical arrays for those columns. This would mean writing out the columns in sections rather than all at once.
    Message Edited by smercurio_fc on 09-08-2008 10:17 AM
    Attachments:
    convert numbers.png ‏7 KB

  • Text data is not displaying at Report level for an Infoobject Item name

    Hi All,
    Texts data is maintained at Info object level but text information is not displaying at Report level for an object.  I have set the property at query level as "Text", but at report level it is displaying key values of the object, not displaying texts information.  This problem occured in QA(Quality) system but not replicated in Production system.  I have checked all properties at backend and query level and compared the same between QA and Production system didn't find any difference.
    Please suggest what might be the cause: at report level it is displaying key values instead of the textual information even text data is mainintained at backend.  In production it is displaying textal data for the IO.
    Thanks in advance.

    Hi All,
    Thanks for your valuable information.  I have changed the setting under Advanced tab as "Master data" for Access type for results values, but didn't solved the problem still it showing key information for the IO.
    In Production system the report displaying texts information for the IO, but in QA its displaying key information. The problem exits only in QA, its working fine in DEv and Production.
    As per my understanding might be the issue with Patches will be checking with Basis team on the same.
    Please suggest if you have any alternatives to fix the issue.

  • New tutorials posted for Text Data Processing on Data Services 4.0

    Check out the 3 new Text Data Processing tutorials available at http://wiki.sdn.sap.com/wiki/display/BOBJ/TextDataProcessing within the Product Tutorials section.
    -- Introduction to Entity Extraction Transform: this 15-minute demo provides an overview of the Text Data Processing Entity Extraction transform for Data Services 4.0. The Entity Extraction transform enables you to process unstructured text, such as web pages, news articles, maintenance logs, text from a spreadsheet, or even from a database column, to extract key pieces of information that you can use in query and reporting.
    -- Using Text Data Processing Blueprints: this 6-minute demo explains how to get up and running with TDP quickly using a series of jobs contained in a blueprint. A blueprint is a sample end-to-end solution available on SAP Community Network.
    -- Creating an Extraction Dictionary: this 13-minute demo explains how to create an Extraction Dictionary, which can be used to customize a TDP Entity Extraction transform to improve results.

    Thanks for sharing your use case.  I have a few questions if you don't mind:
    1) What file formats are typically found within these compressed containers?  For example, html, xml, txt, pdf, MS Office, etc.
    2) Do these compressed containers ever have other embedded compressed containers within them?  For example, a zip file containing other zip files within it.
    3) If the intention is to process document files, do any of the document files have other document formats embedded/nested within them?  For example, a MS Word document with a spreadsheet embedded within it.

  • Is there a way to format text data that has been persisted?

    I am persisting five lines of numeric data in my app.  Each persisted line of data saves and returns perfectly after a ro-boot, except for the text size and color.
    To be clear : If I save 199.55, that is what appears after a device re-boot.  The 'formatting' I am having issues with it the font size and color.
    For some reason, the font sizes have changed and some of the font colors are incorrect.
    Is there a way to correct this or prevent it from happening?
    Thanks.

    If you are saying that I can only save text data, I can accept that.
    But, why then does my saved data come back in its own colors and various font sizes?
    Thanks for your post.

  • Use of MIN with text data

    I am not familiar with using MIN with text data as in the sample below and could use some help in deciphering what it is doing. This SELECT statement is taken from a larger CREATE OR REPLACE VIEW statement. The first line of the WHERE clause is making the connection to look at the correct user's information. The section after the first AND is what I am trying to interpret correctly. I have moved into a new position and wasn't around when this view was created. The statement is designed to assign the correct DOMAIN_ID to each user based on values in the elms.elms_dom_lkup table ed. This table consists of 4 columns: DOMAIN_ID, PROC_LVL, LOCATION, AND POSITION. The DOMAIN_ID is the only field that is not nullable. The primary key for the table is a combination of the 4 columns. The section after the first AND matches the PROC_LVL from the ed (lookup table) to the PROCESS_LEVEL in the cd (reference table) and confirms the process level is associated with the users primary position. It then looks for one of three conditions:
    1. process levels match and LOCATION and POSITION are NULL
    2. process levels match and LOCATION matches user's location in a reference table
    3. PROC_LVL is NULL and POSITION matches user's position in a reference table
    (SELECT MIN (domain_id)
    FROM elms.elms_dom_lkup ed, mici.const_dept cd
    WHERE c.constituent_id = cd.constituent_id
    AND ( (ed.proc_lvl = cd.process_level AND cd.pos_level = 1
    AND ( (ed.location IS NULL AND ed.position IS NULL)
    OR (LOWER (ed.location) = LOWER (loc.campus))))
    OR (LOWER (ed.position) = LOWER (c.job_desc)
    AND ed.proc_lvl IS NULL))), /*Domain ID*/
    My question revolves around the priority on those matches. The ed table is not organized in any manor. The records are in the order they were entered. Does the MIN in the SELECT statement cause the DOMAIN_ID

    Hi,
    Welcome to the forum!
    If v is a string column (such as a VARCHAR2), then MIN (v) is the first string in collating order (that is, alphabetic order, but with numbers and punctuation symols given particular values in the ordering).
    It lookw like the code fragment you posted is a Scalar Sub-Query , that is, a sub-query used where an expression is exprected. For example, in a query like this:
    SELECT  *
    FROM    scott.emp
    WHERE   sal     > 1200
    ;You can replace the literal 1200 with any kind of numeric expression, even
    SELECT  *
    FROM    scott.emp
    WHERE   sal     > (     --Begin scalar sub-query
                    SELECT  AVG (sal)
                    FROM    scott.emp
                )     -- End scalar sub-query
    ;You have to be careful that a sclar sub-query produces exactly one column, and either 0 or 1 rows. You'll get a run-time error if the sub-query ever produces 2 or more rows.
    People sometimes use MIN in situations like yours when the sub-query might otherwise return 2 or more rows, and either:
    (a) all the non-NULL rows will contain the same domain_id, or
    (b) it doesn't matter which domain_id is used, just so long as it is one that actually exists in the result set.
    842436 wrote:
    My question revolves around the priority on those matches. The ed table is not organized in any manor. The records are in the order they were entered. Does the MIN in the SELECT statement cause the DOMAIN_IDSorry, I don't understand exactly what you're asking.
    Rows in a relational table are never in any intrensic order.
    It looks like the question got cut off. Does the MIN in the SELECT statement cause the DOMAIN_ID to do what?
    Edited by: Frank Kulash on Mar 7, 2011 3:01 PM
    I see you corrected your first post.
    842436 wrote:
    ... My question is does the MIN in the SELECT statement cause the DOMAIN_ID from the first record that meets any of the 3 conditions to be returned?Yes, it makes the sub-0query return the first domain_id ( in alphabetic order ) that meets all the conditions. If there are 1,000 rows that meet all the conditions, the query will ind all 1,000 of them, keeping track iof which one is first in alphabetic order. Remember that
    '127.255.255.0' is less than
    '25.0.0.0' in alphabetic order, because '1' is less that '2'.

  • Write Text Data Array to text file

    Greetings all. I hope someone can help me as I am really under the gun. The attached vi shows the basics of what I am trying to do. I have already written a vi that takes the Cal Data Array and prints it out in a nicely formatted report. My problem is that the powers that be also want the data saved to a generic text file that can be copied and printed out anywhere they like. As such, I need to save the data to a generic text file in column format such that it will all fit on one page in landscape mode. There are a total of 12 columns of data. I have been trying to create something that would format each column to a specific length instead of them all being the same. No luck so far. Basically, I need columns 1,2,3,8 and 12 to be length of 5. The rest a length of 9. I have tried to place the formatting part in a for loop with the formatting in a case, but it does not appear to work. I really need this quick so if anyone has any ideas, please help. As always, I really appreciate the assistance.
    Thanks,
    Frank
    Attachments:
    Write Cal Data to Text File.vi ‏21 KB

    pincpanter's is a good solution. Beat me to it while I was away building an example. Similiar approach using two for loops and case statement. Here is my suggestion anyway....
    cheers
    David
    Message Edited by David Crawford on 11-23-2005 09:37 AM
    Attachments:
    Write Text Data Array to text file.vi ‏31 KB

  • Reading Sybase Text data in java

    I am trying to read sybase text type column from my java code,
    I appreciate if you any one could help me out on this with code
    thanks
    mathew

    Its an TEXT data type in Sybase , So if i get the
    result set , should i cast it to String or which type
    ?Use the rs.getString() method on a TEXT field.
    D.

  • REGARDIN THE UPDATION OF TEXT DATA IN BW

    hi,
    this is a scenario updating flatfile to bw server.
    i have problem in updating text data.when i create info package in infosources, i get a pop-up that "SELECT THE LANGUAGE FIELD IN THE SOURCE SYSTEM->LONG TEXT".and after if i continue while updating i get a error message that "NO TRANSFER STRUCTURE AVAILABLE ALL_SS_AL_MAT_TEXT (SY-SUBRC= " .can anyone help me in this.
    thanks in advance.

    Hi Mahesh..how do u want to do this that the qn..
    do u have two infoobjects in which you want to load that master data.......?
    If you have then make transformation ....between them and load using routine..
    using offset in the routine.
    i.e.
    Infoobject Source(text Datasource)---> Infoobject A
    routine:
    result = source_fields-sourceinfoobjec+0(4).
    In the second transformation
    Infoobject Source(text Datasource)---> Infoobject B
    routine:
    result = source_fields-sourceinfoobjec+4(4).
    regards,
    rk

  • MS ACCESS TO ORACLE Error Migrating Text Data

    Hello people:
    ¿How can i migrate spanish characters in Oracle ?
    I'm migrating some data with spanish characters like:
    Á, É, Í, Ó, Ú, á, í, ú, é, ó, ñ , Ñ.
    So the process was correct but when i query data in Oracle y have this:
    Español instead of Español or
    Francés instead of Francés
    My *.dat files get the correct data, but when i migrate this to Oracle i have this erroneous data.
    Im mapping from Text Data Type to Varchar2 with 100 length
    I'll appreciate any help
    Ryan

    Hi Ryan,
    You mention in your posting that when you migrate to Oracle that you have errorneous data. Are the invalid characters saved in the Oracle database or are you just seeing these invalid characters when you query the database?
    Could you please check what your NLS_LANG parameter is set to? You can check the value of NLS_LANG by checking the registry subkey. Also could you check what the NLS_CHARACTERSET is on your Oracle database.
    Regards,
    Hilary

  • Process the result so that the dates are ordered by date

    I am retrieving a query result from a sql database of which
    one column contains a string of this format:
    09/08/2008
    How can I process this result so that the dates are ordered
    by date?
    Thanks for anu help :)

    what's your db and version?
    pretty much all dbs have built-in string and date functions,
    a
    combinations of which will let you update your field to be
    date/datetime.
    you will probably want to create a new field in the table to
    store the
    converted dates, then check that they all have been converted
    correctly,
    then delete the current date field and rename the new field
    to the old
    date field's name.
    using your db's string functions you will need to extract
    day, month and
    year parts of your date text, and pass them to your db's date
    creation
    function.
    if your db is MySQL, it has a very handy STR_TO_DATE(str,
    format)
    function... check details in mysql ref manual.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • NetStream : send text data

    hi,
    I try to do a really simple chat with NetStream. I would like to send a text on my netstream (I don't want to use camera, only text !)
    I run a red5 server and I use flex 4.5
    As I my new, I don't understand what is the best way to do this. I try code to send video streaming and it works but I can't send text.
    Is somebody have a really simple example to do this ?

    //Simple solution,
    import flash.events.*
    public var chat_so:SharedObject;
    public var nc:NetConnection;
    public var username:String;
    public function createConnection():void
        nc = new NetConnection();
        nc.objectEncoding = ObjectEncoding.AMF0;
        nc.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );
        nc.connect( "rtmp://path_to_red5/oflaDemo",username);
    //Then in the netStatusHandler you would need something like this....
    public function netStatusHandler( event:NetStatusEvent ):void
        switch( event.info.code )
            case "NetConnection.Connect.Success":
                 connectComponents()
            break;
            case "NetConnection.Connect.Rejected":
            break;                   
    //This sets up a SyncEvent handler...
    public function connectComponents():void
        SharedObject.defaultObjectEncoding  = flash.net.ObjectEncoding.AMF0;
        chat_so = SharedObject.getRemote("chat_so", nc.uri, false);
        chat_so.addEventListener( SyncEvent.SYNC, usersSyncHandler_chat );
        chat_so.connect( nc );
    //This fires when the sharedObject is updated...
    public function usersSyncHandler_chat( event:SyncEvent ):void
            var results:Object = event.target.data;
            for( var a:String in results )
            if (  results[ a ] != undefined )
                 //this will add a message to a text component...
                chatCanvas.htmlText += "" + results[ a ];
                chatCanvas.validateNow();
                chatCanvas.verticalScrollPosition = chatCanvas.maxVerticalScrollPosition;
    //this button or key listener function will send a message by updating a sharedObject on all clients...
    public function sendMessage():void
          //grab message from an input text component.
          var msg:String = chatInputTxt.text;
          //send the msg...
          chat_so.setProperty("textValue", username + ": " + msg );
          //clear text from chatInputTxt.text
          chatInputTxt.text = "";
    HTH

  • Sold-to-party Text data not getting displayed; Urgent

    I am current using a BI content 0CRM_COMP which contains sold-to-party, i have loaded this ODS, but when i view the data in bex i could only see the Key value and not the Text, even though i change the display mode to Key and Text both the columns displays only the Key value. is it because the master data is not loaded, i have also tried to load the Business Partner master data attributes and text till no use. Please help
    Note: These business partners are created in CRM and are nor from R/3

    Hi,
    Just check whether for this infoobject has master data and text option ticked or not in infoobject.
    If text option in there then search for the data scource0CRM_SOLDTO_TEXT or something like that which contain text for this particular infoobject and then laod the text for the same.
    Just got to the modelling tab -> infoprovider-> Application component in which you infoobject is present-> right click insert object as dat target-> give the name of your object this will give you data target one for master data one for text->activate data source and replicate in BW if not presen in BW-> make infosource on the text data source->make update rules for the text target and load.
    Or as Anil said sold to party is reference to customer load text into the custome with the same method iot will work fine.
    Hope it helps
    Thanks

  • Unable to see text data in the reporting bw 3.5

    Dear Gurus,
                         My clinet wants to see the text data for all the records in the reporting.unfortunately he cant see text data for only 5 records in the colum. i checked in the query designer for that object ,in properties its given as key and text. can any one suggest me why the text data is not comming for only that records..
    Thanks in Advance.
    Srikanth.

    Dear Pavan,
                            Thanks for the reply, the query properties are already set like key and text before, the problem text is showing to all the records except 6 records,for this 6 records in the place of text it is showing only same technical name..please guide..
    Thanks,
    srikanth.

Maybe you are looking for