Add Data Channel Headings to Output File

I have seen several threads discussing how to get names on the column headers when outputting dynamic data to a file and thought I would give a simple example of how to do this.
The example generates a Y=2X as 2 data flows and sends them to an X-Y graph and a text output file.
It is necessary to convert the dynamic data to a waveform and use the waveform attribute VI to add the attribute named NI_ChannelName.
The waveform is then converted back to dynamic data.
This is the solution I worked out and would appreciate confirmation from more expert users if this is the best way.
Colin
Solved!
Go to Solution.
Attachments:
File Output Test 1.vi ‏136 KB

Hi Colin
I've been taking a look at your VI today and just wondered if you could define what you mean by the 'best way'? Do you mean in terms of the speed of running the VI, memory allocation or another factor?
If you could let me know, then I'll look into how best to optimise the VI. Looking forward to hearing back from you,
Best Regards
Jeremy T
Technical Marketing Engineer
National Instruments UK & Ireland

Similar Messages

  • Silent Audio Channels in Compressed Output Files ...

    Has anyone experienced dead silent audio channels in exported MP3 or Podcast/AAC files?
    This is included in the application release notes:
    Exporting to Compressed Formats
    " If you export to compressed formats (MP3 or AAC) using devices that do not use class-compliant Core Audio drivers built into Mac OS X on Intel-based Macintosh computers, the audio track of the exported file may be silent. To avoid this issue, use the Audio MIDI Setup utility to change your default output audio device to Built-in or to a device that uses the class-compliant Core Audio drivers before exporting files."
    I'm on a Dual PPC G5, and my Motu interface is compliant. All exported compressed files [with or without video in AAC exports] have silent audio channels.
    Any news on this?
    -ptfigg.
    Power Mac G5 Dual 2.0 gHz    
    Power Mac G5 Dual 2.0 gHz    

    All the pods are set to master. I've never set any sub-mix tracks in the
    past, and, yes, these are set to zero (but I didn't do it). I set the submix
    to 3 for each Stereo & Mono in project settings, default sequence.
    Made no difference.
    Original audio is standard from a Sony professional camera. Same
    camera I've used on a number of occasions.
    What baffles me is that I just don't understand the error message
    language. In other words: what is it saying?
    Cheers,
    Bill in Toronto
    Date sent:     Thu, 20 May 2010 10:37:47 -0600
    From:     Bill Hunt <[email protected]>
    Send reply to:     [email protected]
    To:     William McQueen <[email protected]>
    Subject:      CS3 Error Message The number of audio channels in
         the output need....
    OK, the Master is Stereo, and you have 3 Mono Tracks, that should
    mix-down to that Stereo Master, which will not be a problem.
    Now, it appears that you have no Sub-mix Tracks. Is that correct?
    Check to see what the Track Mapping is set to for each of those Mono
    Tracks. They should be set to Master.
    Having the Track Mapping set improperly could possibly result in this
    type of issue, as DVD's can only have a limited number of Audio
    streams and these are well-defined.
    Maybe someone else will have more ideas for you.
    Good luck,
    Hunt
    PS - as a note, one cannot use ADL to Encore, if the Master is DD 5.1
    SS, as that must go through the Minnetonka Audio SurCode DD 5.1 SS
    encoder plug-in to get a DD 5.1 SS AC3. That does not seem to be
    your case though.

  • Request Phase as Completed and Date Completed Empty (no output file generated yet)?

    Hi,
    When I run the request, the phase = "completed", but when you open the details form, you notice that 'date completed' = empty, and the 'completion text' keeps changing every time you open the details screen.Also, when you try to open the output, it is not there (yet).And when you look into the logfile you only see the first couple of lines (with some info about the select statement in), but none of the logfile messages yet.
    This situation stays unchanged for several minutes (up to 15 min). Only when the 'date complete' is filled in you can open the output file and see the complete logfile.
    To me this behavior is very unusual, never had this before in Apps, even with long-running requests.
    This will cause confusion for users when they run these programs.
    Any help or any guidance would be appreciated.
    Thanks in advance.

    Yes, if the data is not generated , in the report,
    when you try to open, it says , no pages to display.
    i have a suggestion, if it is custom RTF, open and handle the no data case and display
    something in the report saying. some message like "No Information for this report".
    in this case, the PDF generated will have atleast a page, saying something, and the report will get into printer and print properly.

  • Java input xml data and xsl template -output file excel

    i need help or same special link on web.
    i must develop code or use a special tool that make this.
    INPUT:
    xml that contain real data
    xsl that explain a report template
    OUTPUT:
    file excel that show the template xsl with xml data source
    thank for help me.

    Hi,
    Please refer to "Oracle XML Publisher User's Guide".
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/indexes/documentation/index.html
    This is also explained in the document attached in (Publishing Concurrent Requests with XML Publisher [ID 295409.1]).
    Thanks,
    Hussein

  • Writing commands to get specific data channels in the output report via script or automated script generation..

    In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
    I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
    Any help will be deeply appreciated. Thanks
    Solved!
    Go to Solution.

    Hi LaxG,
    Brad is absolute right. It is possible to create your whole layout via script.
    If you have loaded  the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
    call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference               = "[1]/Zeit"
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference               = "[1]/Geschwindigkeit"
    For performance reasons it's recommended to use the it like this.
    dim oLine
    set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
    oLine.XChannel.Reference               = "[1]/Zeit"
    oLine.YChannel.Reference               = "[1]/Geschwindigkeit"
    Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
    You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
    Now you can customize the references of the line items.
    Kind Regards,
    Philipp K.
    AE | NI Germany

  • Add Header Line tot he output File

    Hi,
    Proxy to File Senario.
    Details records are coming through proxy.
    I need to add a static header line in the file that is created..
    The Header line is something Like this :- "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"
    The configuration that i did in Content Conversion:-
    Recordset :- HEADER,ROOT
    HEADER.addHeaderline : 1
    HEADER.headerline : "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"
    ignoreRecordsetName : true
    ROOT.fieldSeparator : ;
    ROOT.endSeparator : 'nl'
    <b>But the error in Communication channel monitoring is : -</b>
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'HEADER.fieldFixedLengths' or 'HEADER.fieldSeparator' is missing....
    So Plz help me out in this.....
    Thanks
    Harpreet

    Hi Harpreet,
    You can pass the static header content in your message mapping ....to the target header field..
    and then use a normal FCC to print out the structure...
    Regards,
    Sushil H.

  • How To Add Chapters And Metadata To Output File

    Hey guys,
    It looks like Compressor is the answer to my questions, but I wanted to be sure before I plop down the 50 bucks for it.
    What I want to do is include chapters / markers in my final output of my movies to the iPad / iPhone, like you get in movies you buy. Final Cut Pro X allows for "Markers", though they appear to have no real value on this type of output. Based on what I've read it looks like you have to get Compressor in order to do the chapters.
    So I just wanted to confirm that was the case, and also ask if the markers I set in Final Cut Pro X will be preserved for the trip to Compressor, or if I would have to create the markers from scratch?
    Lastly, I'd also like to include metadata in my output as well, such as Genre, Description, Rating like "PG", copyright info, etc. Is Compressor also required for this?
    Thanks.

    Well after no responses and plenty more searching for answers with no results I went ahead and got Compressor.
    To answer some of what I was originally asking for any who stumble across this thread, Compressor does do the chapters, but it is a manual process. You have 2 choices, add them yourself one at a time through it's little preview window or import a time coded text file, which I what I ended up using since it was easier for many chapters.
    The metadata ( "annotations" in Compressor ) was less impressive. It does contain certain pieces of information for which show up in iTunes, but not all of it. I was pretty dissapointed in this respect. So if your looking for things like "Description" and the like, you'll need to find other 3rd party tools to do the job for you, which is a shame cause most that I've seen cause you to transcode the movie again. The sad thing is, it has "Description" for example, yet iTunes doesn't seem to recognize it as such. I'm not sure why Apple has made it so difficult to make your personal movies look professional in iTunes and on Apple devices. Seems like this would have been a no-brainer.
    Personally it still isn't clear to me either why Final Cut Pro X couldn't have just given me these 2 abilities in the first place, I really don't need all the other stuff Compression can do, nor can it seem to do other simple tasks I need such as saving an annotation set so I can use it again for other movies.

  • NT - How to embed the date for the export output file?

    I want to know how to embed a date for the export file on Windows NT?
    Example :
    In Unix you can use a shell variable and attach to the file like exp file=exp_prod_$A,
    where $A will have the system date, My output will be like exp_prod_10012000.dmp.
    I want to know how to do the above on NT.
    Thanks
    Ravi
    null

    Welcome to the forum!
    When you want to post a block of code, you can enclose it with the mark ups { code }
    That is the key word code surrounded by curly brackets, but without the spaces
    You seem to be running a very old (and unsupported release of the database)
    7.3 has not been a current release for about 10 years.
    It's probably been that long since I've used this technique, but i think it should work.
    You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
    If you used split to chop up your export file, use cat or dd to reassemble it.
    So, something like this:
    mknod bk.dmp p
    cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
    imp SYSTEM/$PASSWD parfile=imp_bk.parfile
    rm bk.dmp
    $ cat imp_bk.parfile
    file=bk.dmp
    log=imp.log
    full=y
    buffer=1048576
    ignore=y
    commit=y let us know if still have problems.
    Good Luck!

  • Install RMS 13.1 How to add data boundaries  in the ddl  files for UK?

    Hello Retail Gurus,
    I have installed RMS 13.1 without running the partition.ksh script while installing the Retail Database for RMS and it created some sample data too, I have seen the Install Guide and especially looked at the Partitioning Steps in the Guide , Can anyone give a hint ,how the data boundaries are modified in the ddl files for UK?. Since I am a DBA i am little confused , from where to get these data? as the installation guide mentions that the RMS_partition_defintion.xls has to modified and used for a production installation combined with partition_attributes.cfg for a production installation.
    Thanks in Advance
    -- Vivek

    Hi Vivek,
    Let's see...
    UK means united kingdom of great brittain? I think there are no UK specific DDL statements related to RMS.
    If you look at the installer (unpack the zips from edelivery.oracle.com for e.g. RMS 13.1), checkout the folders
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\examples\part
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\ddl\part
    This contains a ksh script that is driven by a config scripts and some lists of specific partitions in folder data_def.
    This partition.ksh script can recreate some table's DDL from non-partitioned to partitioned.
    The mentioned XLS file can also be found in this folder and helps in setting the number of partitions and doing one dimensional or e.g. multi-dimensional (e.g. range/hash).
    The whole process is explained in quite some detail in the last chapter of the merchandise implementation guide, merch-131-impg.pdf.
    When your system already containts data, this should be saved and re-placed.
    Please note that the indexes on partitioned tables may need partitioning too, at least some reflection on this is required and afaik the RMS installer tries to cater for this too.
    Best regards,
    Erik Ykema
    Edited by: ErikYkema on Oct 29, 2010 8:05 AM

  • Dynamic report output file name

    Hi,
    I am generating a report using web interface by sending http string with required parameters.
    Each time I run this report I am appending current date & time (mmddyyhhmm) string to the output file name.
    Successfully I am able to get the outputs.
    For example:
    If report runs at 9:30am then MyReportOutput_0205040930.html
    If report runs at 12:45pm then MyReportOutput_0205041245.html
    But, I am facing the problem when I schedule the report. I want to append the report run date & time to the output file for scheduled runs.
    Is it possible?
    Please advise.
    Thank you,
    Prasad

    hi,
    for that you will have to use reports distribution. in the distribution XML file you can specify data fields from the report for various attributes, including the output file name.
    you will have to create a column in your datamodel that creates this timestamp and then add it to your report name.
    see the distribution/bursting example here on OTN for further information. click onthe getting started link on the reports homepage and then navigate to the INDEX. there you will find an overview of all the examples available.
    thanks,
    philipp

  • 1 input file to 2 output file mapping. Please help!

    Hi Experts,
      I have a snenario where from one input file I have to generate two output files. My sender and receiver systems are the same since I want to generate the output files in the same location. I am using both the systems same just for testing purpose.
    So in IR I have created
      1. one outbound interface for the input file
      2. two inbound interfaces for the output files
      3. one message mapping containing one input message  
          transformation to two output messages.
      4. one interface mapping containing one input interface
          transformation to two output interfaces.
      In ID I have created
        1. one file sender channel and two receiver channels for two output files with different names.
        2. two receiver agreements
        3. one sender agreement
        4. one interface determination of type "Enhanced".
        5. one receiver determination
      But when I run the scenario given one valid input file  I am getting the error in the sxmb_moni : RuntimeException in Message-Mapping transformation: Cannot produce target element.
    However message mapping and interface mapping works perfectly if I test it in IR with the same input file. 
    Can somebody help me understand what I might be doing wrong?
    Have I done the configuration correctly for 1:N mapping?
    Please help! I will be greatfull to you if you can help me.
    Thanks
    Gopal

    If my input file is like this:
       <ns1:LocationMsg_MT xmlns:ns1="http://www.abc.com/Gopal">
             <Location>
             </Location>
    </ns1:LocationMsg_MT >
    Then my scenario is working.
    But my input file will be like this:
    <LocationMsg_MT>
             <Location>
             </Location>
    <LocationMsg_MT >
    This is giving problem.
    How to handle this kind of file?
    Thanks
    Gopal
    Edited by: gopalkrishna baliga on Mar 14, 2008 3:19 PM

  • EDIFECS Mapping not found in the X12 Output file in Oracle B2B 11g

    Hi,
    We are using Oracle SOA suite 11g, we have created a outbound process for EDI 855 which is PO Acknowledgement.
    We are using a XML Gateway for the outbound and consuming the message in BPEL. We are mapping the OAG xml to EDIFECS xml to be consumed by Oracle B2B. We had created the EDIFECS xsd and ecs file using Oracle B2B editor and got it validated.
    Now the issue is we have mapped few elements in BPEL and the same data is found in the payload message in Oracle B2B, but we are unable to see the data in the X12 output file.
    Any thoughts will be hightly appreciated.
    Thanks
    Sathish

    Hi,
    Thanks for your update.
    The following were the elements missing in the native X12 flat file. I verified these elements present in ecs using oracle b2b document editor.
    <ns0:Segment-PO1>
    <ns0:Element-355>EA</ns0:Element-355>
    <ns0:Element-235>UI</ns0:Element-235>
    <ns0:Element-234>UPCXREF</ns0:Element-234>
    </ns0:Segment-PO1>
    <ns0:Segment-ACK>
    <ns0:Element-355 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="">EA</ns0:Element-355>
    <ns0:Element-373>20100318</ns0:Element-373>
    </ns0:Segment-ACK>
    Thanks
    Sathish

  • What is the best way to insert massive data into an existing excel file?

    dear gurus,
    i am wondering that what is the best way to insert massive data into an existing excel file, more performance perspective.
    the file is read from BDS , and we want to insert data into it .
    the way i can think of is
    1. OLE AUTOMATION
       i think performance will be a big problem
    2. Office integration
        i am not sure it's facing the same performance issue ?
    3 . XXL_SIMPLE_API/FULL_API
        I am not sure whether they can insert data into an existing excel file?
    could you please give me some advices?
    br.
    jun

    Hi,
    If you want to APPEND data( add data to an existing excel file) from SAP, then use GUI_DOWNLOAD fm with APPEND = 'X' paramter.
    Best regards,
    Prashant

  • How do I add column headings to an output file?

    Hi,
    I have an internal table that is created in my program and I send that table out as a data file attachment on an email.
    I have a request to include column heading on the data file going out. 
    Does anyone have any ideas as to how I can include a heading line as the first line of the output file?
    I'm an ABAP newbie and I don't know the best way to accomplish this?
    Thanks for your help!
    Andy

    Hi,
    While Building the attachement just add the field description refer following code
    Append header line to download data
      CONCATENATE 'Company Code'(004)
                  'State'(007)
                  'Store'(010)
                  'Tax Type'(013)
                  'Purchase'(015)
                  'Tax Rate'(017)
                  'Gross Tax Due'(021)
                  'Discount'(023)
                  'Net Tax Due'(025)
                  INTO ls_download-data
                  SEPARATED BY lc_tab.
      APPEND ls_download TO gt_download.
      CLEAR : ls_download.
    LOOP AT gt_error_log INTO ls_error_log.
        CONCATENATE ls_error_log-bukrs
                    ls_error_log-budat
                    ls_error_log-monat
                    ls_error_log-gjahr
                    ls_error_log-xblnr
                    ls_error_log-bschl
                    ls_error_log-waers
                    ls_error_log-hkont
                    ls_error_log-wrbtr
                    ls_error_log-prctr
                    ls_error_log-kostl
                    ls_error_log-message
                    INTO ls_attach-line SEPARATED BY lc_tab.
        CONCATENATE lc_cret ls_attach-line  INTO ls_attach-line.
      Append Error log data to attachment Table
        APPEND ls_attach TO lt_objbin.
      ENDLOOP.
    Call the function module to convert the data into Hex
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = lt_objbin
          objcont_new = lt_objbin.
    Append converted hex data to attachment table
      LOOP AT lt_objbin INTO lv_line.
        ls_conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
      Call lmethod to add the data to the output buffer sequentially.
        CALL METHOD ls_conv->write( data = lv_line ).
        lv_buffer = ls_conv->get_buffer( ).
        MOVE lv_buffer TO lv_hexa.
        MOVE lv_hexa TO ls_hex-line.
      Append converted hex data to attachment table
        APPEND ls_hex TO gt_attach.
      ENDLOOP.
    Regards,
    Prashant

  • How to add a date suffix to the log file name

    In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
    e.g. cmd >> logfile.date

    AZ wrote:
    In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
    e.g. cmd >> logfile.datemy best friend name is "google", refer to this [url | http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-usi]
    This is what i did
    1) created a dummy file in c drive
    2) copy pasted below lines, you can play around more with the format
    set _my_datetime=%date%_%time%
    set _my_datetime=%_my_datetime: =_%
    set _my_datetime=%_my_datetime::=%
    set _my_datetime=%_my_datetime:/=_%
    set _my_datetime=%_my_datetime:.=_%3) Rename the file from dos
    ren some.txt dummy_file_%_my_datetime%.txt4) Here goes the output
    C:\dir
    dummy_file_Mon_09_20_2010_161347_21.txt
    Most of the code i copied from above url, you can tweak a little bit based on ur requirement and format.
    Regards
    Learner                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • SAPRFC / PHP 5.3.0 / MacOSX Snow Leopard

    <pre>(seems message parsing is not working..) Hello gurus ! I've read with a great interrest almost all posts on this forum, and I must say it helped me a lot sorting out a nearly functional solution for installing SAPRFC PHP extension on a MacOSX Sn

  • JDBC  - XI - File

    Hi,    Can i send information in SQL Server batabase to file using JDBC connection in XI. If so can u please explain me the step by step procedure. Thanks & Regards., Pushparaju.B

  • Is XFA forms an "Open" standard, and is FDF alive for foreseeable future ?

    further to my other (first) post "Adobe PDF XML Forms ? Reading user-entered data to and from the form using VB.NET?" ... I've been researching on the web, and getting the feeling that the new XFA forms architecture is not being supported by third pa

  • Person with Disability, Autism/Disability Charity & Non-Profit & student looking for 2nd User CS5 DP

    Am person with a disability, non-paid volunteer working in autism/Disability charities and non-profit and on FAS Course, with 2 children in secondary school Charity and Academic Adobe Creative Suite 5 Design Premium Charity Second-user or Charity/Aca

  • Making a flying 3D Composition match background movement

    Hi! I'm working on a school project and started on a task that actually was to big for me. Therefore, I need help. In AE I have a shot panning the cafeteria at the school, and I've made a  rough 3D Ice-tea. The Ice-tea is supposed to fly through the