Why the output file is so big?

Dear All,
         I am trying to write some data to the binary file. But the output file is very big. When I write 1M*4kB ,the file will more than 20MB. I don't know why.
        This is my vi, Please help me to find the fault,OK? Thank you very much.
        Thanks.
Attachments:
question1.vi ‏105 KB

It is NOT the same vi!!! You need to familiarize yourself with dataflow, LabVIEW does NOT execute left to right, any part can execute if all inputs have data.
In your particular case, the "file info" will execute at the same time you are building the file path. In addition, you are measuring the size of the stripped path and not of the new file. Try execution highlighting!
To fix your code:
You need to get the "file info" from the path AFTER you add the new filename.
Use the error cluster to enforce proper execution order as in my example. WIre the error out of "close" to the error in of "File info". Now the "File info" must wait until all inputs have data, which can only happen after "close" has completed.
All clear?
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SizeTest.vi ‏29 KB

Similar Messages

  • Why the db file is so big?

    hello,now i use BDB as my database;
    pdb->open(NULL, m_dbName, NULL, DB_QUEUE, DB_CREATE, 0);
    now, there have two processes , one is FEP, the other is DP
    FEP write 10000 datas to DB_QUEUE one second;
    DP read 10000 datas from DB_QUEUE one second;
    after the two processes run one hour, the db file become so big,
    the size of db file is 1,425,796KB ,but there is no record in db file;
    why the db file is so big?
    the db file will become little automatic?
    do you have some APIs to make the db file little?
    thank you!
    Edited by: 829357 on 2011-1-19 下午5:01

    Hello,
    Based on your description, it sounds like you didn't assign a queue extent size when you created the database.
    From the BDB Reference Guide, see the section on [Selecting a Queue Extent Size|http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/rq_conf.html#am_conf_extentsize]. It sounds like the behavior that you are looking for is the ability to automatically delete queue extents once they become empty. This feature should do what you're looking for. Refer to the C API Guide ( here ) on how to define a queue extent.
    If you do not want to use Queue extents for some reason, another option would be to call truncate() on the database. However, that will result in deleting any records that might be in the database as well as truncating it.
    Regards,
    Dave

  • Why the output file invisible from JCreator??

    i developed a program with JCreator. with the program, i intend to write something to an output file with the codes like:
    FileOutputStream fos = new FileOutputStream("output.txt");
    DataOutputStream dos = new DataOutputStream(fos);
    for(int i=0; i<10; i++){       
    String s = i+" ";           dos.writeChars(s);
    fos.close(); dos.close();
    how come when i open the output file from JCreator, i can not see anything there? yet, when i directly open the file "output.txt" from the directory storing the program source codes in the operating system, the output string "0 1 2... 9" is visible.
    quite confused! could you please illumine?

    I am not sure of my facts but I think the problem is as follows. DataOutputStream writes bytes of primitive information. You can use the method .writeUTF() which is an ASCII-compatible encoding, instead of .write().
    However textual output should be done with PrintWriter (or PrintStream in Java 1.0). JCreator is expecting ASCII or text to read.

  • Why is the output file jerky ?

    Hi there,
    I have AE CS5 on my Mac. My system is 27" iMac core i5 with 12 GB RAM DDR3 1333 MHz with quad core.
    I rendered a 40 seconds clip with an earth spinning.
    I output it to mov format in 1920 x 1080.
    When I did a RAM preview, it was fine & the earth was spinning smoothly.
    But the output file (in mov) - (I did thru Composition > Make movie) when I play using QuickTime player is jerky at 20th Sec to 29th sec.
    I then import this mov file into Final Cut, it look stuck in the Viewer but was perfect on the Canvas.
    When I render in Final Cut, the output file as mov and use the same Quick Time player to play it & it is perfect.
    Can I know what is the reason that it is not working in Quick Time the first time when it was fresh out from AE ?
    Thank you.
    Cheers

    The default render settings use Quicktime Animation codec at best quality. These files will not playback smoothly because the data rate is too high for the hard drives to keep up with. The animation codec is a lossless codec designed not designed for playback.
    Final Cut uses compressed codecs designed for playback as the default. I'd suggest that you open up the help files (F1) and read the entire section on Rendering and Exporting (link).

  • The output file  for your concurrent request is not initialized

    Application: Application Object Library(FND)
    Component Type: SERVICE_INSTANCE
    Component Name: Standard Manager(STANDARD)
    /*The output file for your concurrent request is not initialized.
    Cause: Your concurrent program execution was not preceded by calls to standard
    Application Object Library routines to initialize concurrent processing. FDPFOP
    received a return code of failure.
    Action: Change your concurrent program to initialize files by calling standard
    Application Object Library routines. */
    I got the mail with the above message from System ( Oracle Applicaitons Release 12.1.1)
    I have checked the following metalink document
    The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
    I can not undestand, why the alert sends mail?
    Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?
    The above meatlink note did not help much....

    Hi;
    >
    /*The output file for your concurrent request is not initialized.
    Cause: Your concurrent program execution was not preceded by calls to standard
    Application Object Library routines to initialize concurrent processing. FDPFOP
    received a return code of failure.
    Action: Change your concurrent program to initialize files by calling standard
    Application Object Library routines. */
    The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
    I can not undestand, why the alert sends mail? Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?I checked related note and it mention its internal bug which mean we cant say too many thing about issue.
    The above meatlink note did not help much....It helped or not? Issue still appear or not?
    Please run adadmin utulity >> from Maintain Applications Files>> Relink Applications programs
    Be sure it wont through any error message than retest issue
    Regard
    Helios

  • Cannot see the output file in my first project

    Hi,
    I follow the instructions of Exercise in Chapter 4 of CAP-0501 to make the project. I wonder why I cannot see the output file in 'C:\CAPExercises\0501\exercises\Active_Project\Output'.
    There are two things I would like you know.
    1. I do not have the file 'prjFileXferInput.xml', but find and copy a xml file. Is this a problem? Does CAPS have any special requirement on schema for the input file?
    2. Is '\' and '/' a problem for Java CAPS? I notice the book using 'C:/CAPExercises/0501/exercises/Active_Project/Output�, while it is 'C:\CAPExercises\0501\exercises\Active_Project\Output' on windows. I am working on a standalone Windows 2000 computer.
    By the way, can anyone give me a confirmation that '/' and '\' is not a problem for Java CAPS, as the server or application take care of it? Is it true?
    Thanks,

    I am answering my own question. The project works.

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • I have this following problem in Adobe Premiere Elements 11: Error of export: You don't have permissions to create or delete the output file.

    Hey guys,
    I have this following problem:
    When i export my movie to my desktop from premiere elements 11 it fails and says "Error of export: You are not permitted to create or delete the output file."
    This is the first time i had this problem.
    I have no ideas to solve this problem ... I don't found it on this page neither in the whole web -.-
    I look forward to get requests

    S
    QuickTime is a requirement for Premiere Elements (any version). Please download and install it so that we can continue this troubleshooting. Among other things, without QuickTime installed, you will not have QuickTime presets in Publish+Share and will not have available to you codecs supplied by that player.
    Please right click the Premiere Elements 11 desktop icon and apply Run As Administrator. Please review computer permissions..
    In the meanwhile, please reply to all the questions, including
    What is the description for your export choice and does it make a difference if your Export Save In location is the desktop or to Video Folder in Documents?
    What is a description of your computer resources?
    Please consider and supply details need to help us help you.
    We want you to succeed.
    Thank you.
    ATR

  • Input file should be deleted only after the output file is successful.

    Hi Experts,
    Could you pleas solve the below issue.
                           In  a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
    In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
    If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
    And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.

    Hi,
    In Receiver communication channel I have used the below command in Run Operating System
    .And I have kept the processing mode of sender communication channel as test.
    cmd.exe: /C "del /Leela/test.xml"
    You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
    Try this:
    Try to run the command line in the Sender File Adapter Side
    "Place this in " --> Run OS Command After Message Processing.
    Hope this would work and get in parrallel with u r requirement.
    regards
    Srini

  • IDOC to XML : error in opening the output file in iexplorer

    Hi Frnds,
    I have a scenario IDoc to xml where in Im getting some non ascii values in the idoc for which I used ISO-8859-1 encoding technique but still the conversion is not done. Iam unable to opend the output file in internet explorer giving the follwoing error as :
    An invalid character was found in text content. Error processing resource
    Please help me how to overcome this issue.
    Thanks in advance,

    Hi,
    As i posted previously in xi UTF-8 is the default encoding if message protocal is FILE.
    And UTF-8 encoding support unicodes..
    Can reconfigure your receiver file adapter with file type as Binary and check once again.
    go through http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm  
    refer  File Type
    now i check with a japanese double byte character and i can open in iexplorer.
    regards,
    pradeep A.

  • Header Name in the output file using content conversion

    Dear All,
    I want to have a text file with a header in the output. I have given the following values for content conversion:
    RecordSet structure = Record,Row
    Record.fieldSeparator='nl'
    Row.endSeparator='nl'
    Row.fieldSeparator=','
    Row.addHeaderLine=1
    but still I am not getting header in the output file. Please tell me where I am making a mistake in getting the header.
    Reg,
    NJ

    hi chirag,
    thnx for replying.
    i m getting the required output file without any error but i m not getting header. i hve added "addHeaderLine" parameter in content conversion but still i m not getting header in the output file.
    reg,
    nj

  • How to get required tags and name spaces in the output File?

    Hello,
    I am doing IDOC to File sceanrio and I am able to get the file but the problem is that I am unable to get the required tag names. Out put file is having  ns0 ns1 and so on..
    Eg:
    ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CU_NET_WEIGHT</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>EAN_SKU</ns2:ID></ns2:MaterialDefinitionProperty><ns2:MaterialDefinitionProperty><ns2:ID>CUPerCase</ns2:ID>
    and so on..
    Source structure is IDOC
    Target structure is External Defination imported with references.
    How can I get the output file with the exact namespaces and tags as imported through External Definations.
    Thanks in Advace.

    HI! Rajeev,
    I have gone through this forum and we having 100% same to same requirement here in my project.
    We want this at the top of the Output Payload..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SyncMaterialDefinition xmlns="http://www.siemens.com/ad/mes/b2mt-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bml="http://www.wbf.org/xml/b2mml-v02" xmlns:sit="http://www.siemens.com/ad/mes/b2mml-v02-SITExt-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oag="http://www.openapplications.org/oagis">
    - <oag:ApplicationArea>
    and also isome part of payload nstead of    ns0:  and ns1:
    we want it as below for some part of same output payload
    <oag:ApplicationArea>
    - <oag:Sender>
      <oag:LogicalId>SAP</oag:LogicalId>
      <oag:Component>PMConnector</oag:Component>
      <oag:ReferenceId />
      <oag:Confirmation>Always</oag:Confirmation>
      </oag:Sender>
      <oag:CreationDateTime>2009-06-14T22:23:29.42Z</oag:CreationDateTime>
    </bml:MaterialDefinitionProperty>
    - <bml:MaterialDefinitionProperty>
      <bml:ID>XXXXXXX</bml:ID>
    - <bml:Value>
      <bml:ValueString>0.0</bml:ValueString>
      <bml:DataType>string</bml:DataType>
      <bml:UnitOfMeasure>n/a</bml:UnitOfMeasure>
      <bml:Any />
      *</bml:*Value>
    Check the above code how we want but we are getting in normal way .
    Could you please review this and guide me in detailed way how to do in a step by step manner if possible by taking my above payload condition.
    Regards:
    Amar Srinivas Eli

  • Append a file with date and name in the output file

    I am running a script which produce an output in excel file, I would like the server name and the date in the output file,  Both the servername and date has declared at the beginning of the script as 
    $server = test1
    $date = Get-Date -uformat %Y-%m-%d
    I am able to append either server or date but not both. Could you please help me out on this.
    I would like the output file as '
    server_report_date.xls

    I got this working by 
    "C:\Aravind\Scripts\$server-"+"Report-" +"$Date"+".xls"
    Thanks!!

  • Modify the output file created by F110

    hi everybody
    I have to modify the output file (in text format) created by tcode F110.
    I have looked in the program rffous_t but could not see where I have to actually change the layout of the display of the fields
    can anybody help me out in this issue?
    thanks a lot for your help
    prema

    Hi vinraaj
    thanks a lot for the information
    One more question, if i have to modify the formats of the file, do i have to modify the event module for payment medium formats
    theres an event module FI_PAYMEDIUM_ACH_20, I have to change the codes, how do i proceed?
    do i make a copy of the event module and then modify the codes or there is other ways to do it
    thanks a lot for your help

  • Getting junk data in the output file in UNIX server due to UNICODE error.

    Hi All,
    I am working on an Upgradation project from 4.7 to mySAP ERP 2005.
    IN 4.7 we are using
    OPEN DATASET lv_filename FOR OUTPUT IN   BINARY MODE. and getting the file as required.
    In ECC 6.0 for the same OPEN DATASET statement ,the output file in unix server has the junk data having the characters like #<##d9{y#+G9###T>j(##^# #K## #q### #####.
    Pls help me in this issue to proceed further .
    Thanks,
    Chakradhar.

    Hi Markus,
    Below are the files data in both environments.
    In ECC 6.0
    001B2274001802007051                                 0  20070519CTLMEA      RPTIME00043900 #
    ###9##;c_5####Tj#y#.##'###u###<#<##d9{y#+##G9###T>j(###^###K####q##########C##dA4####&#1393;###x##
    R[#!#J##&#1698;w###u#-C#'Qho#&#31632;}j##w%##/#'ZhW##s###n&#1080;#&#1723;>-J#####&#1046;#tP}##Hu#}Q7###Sh_###C4<3nqk##i l#
    ####{############Qns###;####p##{si##y##@##&#1008;0####C###,###2&#973;#j&#830;########Q#f####;)k>lO#5#n###&#1852;#
    ####M##S##IM#z0#o##&#1325;####!#V#9###&#1722;#?s##[#####V&#&#756;s#&#56196;&#56590;[#l#s##&#48610;:#&#1334;{&#548;&#55960;&#57086;M-##v@#########v#&#2034;###s##
    9Q##!#d#####`#############Lc####J#######%?######E#HV3#(#N####Wl####}S#O######zA[##m####u/7#T
    ##2#s##Q#umF]##Z###}##&#1858;###a######z1#`#####&#46110;-###Q#o#####Q###x#######7Z[##?#V#e##nI####O1=u[#
    ##p##Kj#####]#####/5#20{####&#1244;##x##A#?###xa##/<^#Rj&#16741;#######xI#+j#%###$##$######p=##V#&#1290;
    #######k#K##yI#yI#!/)#y#z##-y######"/#e&#1717;##/############*###"/_##-##+##/#y9#####5#9/#yI#A#
    ###################J/yih=####u4i#K##t####&#1822;######=##AX###J##z#####KC&#48084;## /###G{#K#####
    In 4.7
    001B2274001802007051                                 0  20070519CTLMEA      RPTIME00043900
    ãÔ?®zåÖ#Iï-_Î-ør7##*Ódöã ²äÐÁSjòä`ëÏ©"yÿï¾E#[µºEW#g#2éu##a±¸u~#ZäTéR¯F&o#C·¼åÈÝÁ%½ß´y6+##¿
    íE#z!#â#ùG#>{#éJæ##jÅSM<±òxwÆüI¾jâ#µ#ù
    íQ ÕÈ###dÝ#/«#ycãA¼#ø#7#¿#¼#íxãý#y«#o#â¡ùéËÖ_C¼½À4ðÀó#Ð8?qÊ#O½Î¿_##b#xjÛÓ#OÜ#×gÌ#×ós##
    í¡ùh¿~ëÊÓü#ò#'¡#Á#â©#<áoú#'Ô®ü#»L»þ#y)hà#ç#Z[¡#'®Uy1?YC<Ýú#iÇÇ###Íç'Ô#§#Ù#O§#f<###B{#§##ñ
    #0H}¬#^##6¨7V¨7VÚX#M9&#A#øG º'õxOù§ø #W¨Å+Ðb#ÉÇ7#SôRXß\u00A7à#wE"#mê#óÀd# ¼##gn###:ô#E<#######ú
    ûJ¦H}#·¦Y½â>ºbò#xSSÿÿÕ«óG#ï#6²f´Ú¾fyqèhJÖçCOr´#Ý#S?##KËÄ×mâë¶x)º×ªh2Åw8&í####7 `Ùo#ö»#òöw$
    ½##Gê#ì#»#La)ì##Ý÷#{7í´éã»##ãî]¾[##{O#¾C##£¶G#û¼Eû#dL#ª:#PÉEÉ>Ó##ª:G#éaR^·BEµÏ+¹###y#N##ȱ
    DÕ##5#"9Ní>#íFo##kp#ÂðÆè5¿ð½F®¯M##þð1#îi##Z #Z #Z#ô-¾#§èH»û¹ö9é#Ôä#001B2274001802007051
    èÁ##<(#ÿ#¢²ÿ#è#éc#z¾vçÌá#¹#ý#x%ìÜ#çÌ##ùÍÙ#¹{ǯepmâí#¸Ö##¸=ÝÙ½¹uë·,ù#þ¼øl###£åg#,##-`q#ÿøæï
    viÁ#]3#.O#þÊöèR##=##L#LÊk###¤à##ó#'V052 øé]+####ã!ÁC#s#q###åLj##Á¯Æ4#.àíT#¸Þ¹µ·¶É)ç#Ïå#<#/ð
    Thanks,
    Chakradhar.

Maybe you are looking for

  • Please provide advices on tunning this query

    I have the 10gR2. the SGA and PGA info as: sql> @showpga NAME VALUE session uga memory 921,776 session uga memory max 1,518,856 session pga memory 1,569,048 session pga memory max 1,896,728 sum 5,906,408 sql> sql> @vsga NAME VALUE Database Buffers 2,

  • Message -  Camera is in use by another application

    When I try to use I Chat 3.1.9 to video chat I receive a message that camera is in use by another application. I don't see any application that is open that uses the camera. What might be causing this conflict and how can I correct it? Thanks. I Mac

  • Midlet with access to IrDA/serial communication on PDA urgently needed!

    Hi folks, our solution needs access to the IrDA or serial communication from within a midlet. Unfortunately this is not possible with the current MIDP implementation. The mobile we are using has additional vendor specific classes, but still IrDA fail

  • Buttons change to colors I didn't request

    I have several buttons in my menu, they are BrushMed from the Palette's Shapes -> Apple. The buttons are all the same style and have identical parameters except for the things that should be different, like coordinates, text, asset, and navigation. I

  • Whats going on with BC?

    Hi, I'm a web developer and we build all our non-ecommerce sites in the BC system, however since Friday we have noticed some very odd things happening with the system. We make changes to pages, templates, content holders, stylesheets etc. both within