Export Waveform Chart Plots data to spreadsheet file based on X scale (Time Stamp) min and Max Value

Hi All,
Query 1:I am trying to export the Chart data(Total plots 6 ) only between the X scale Min Time and Max time limit .
But couldnt able to achieve that progammtically.
is their anyway to achieve this.
Query 2:Also ,In chart their is an  right click option to export data to excel,but when using this option the data get exported in its own temporary name(iv*****.tmp),i dont want this to happen.Instead the data expored using that option should be written in a file specified by me(everyting should happen in backend)
pls suggest the best solution for above 2 queries.
Thanks,
Selvan.

Hi selvan,
1) read the chart history (or better keep a history in your own shift register) and limit the data to the XMin and XMax values (read all those chart settings from its properties). Then save the data using WriteToSpreadsheetFile…
2) The right-click option is as it is. When you need different behaviour you need to program your own routine. Once you finished query 1 it will be no problem anymore to also solve query 2…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

  • Global Change or filter based on Min and Max dates

    Hi Guys,
    Hopefully there is a genius out there that is an expert with filters and or global changes, I am after a solution and can’t work out if it is possible to do in P6.
    Based on a filter (using codes to select a group of activities) I want to write a value into two date UDF Fields can I:
    Run a global change to give the earliest and latest date in the group and write the result to all tasks in the group? or
    Is there a mindate maxdate option in Global change or filter? Or
    If these tasks were grouped in the activity view can a global change be written to fill down the dates that the summary level is displaying, which are essentially the min and max dates of the groups.  
    I could do this pretty easily in excel but I have over a 100 projects and doing the import one at a time is not feasible.
    I could create LOE’s but as my variables are constantly changing and due to the volume also not an option.
    Summary bars are not an option eithers as I am writing the UDF’s to get all the bars I want on one line, 
    An option for me might be to do it using Legare but I would prefer to see if I can get it done in P6 first.
    Cheers
    Rob

    Yes, you can do it in one report.
    I created a sample report from efashion:
    Year | Lines | Sales Revenue
    2001 | Accessories | $250
    2003 | Accessories | $550
    2001 | City Skirts | $1050
    2003 | City Skirts | $1150...........
    Create 2 variables 1) Count and 2) Difference:
    1) Count  as formula - =Count([Lines]) In Report
    2) Difference as formula - =Sum([Sales revenue]) Where (Max([Year]) In Report = [Year]) - Sum([Sales revenue]) Where (Min([Year]) In Report = [Year])
    You can replace the formula with your report variables. Then just drag Site ID, Count and Difference variables to your report.
    Thanks
    Jai

  • Waveform chart, plot and Dynamics Data and double data

    Hello everyone !
    I would like to get separate plots on the same waveform chart.
    Actually, I am simulating 4 signals (but in reality, it would be signal from sensors) and I would like to get 4 plots.
    In the end, I get 3 plots and no 4 plots.
    It is very strange... Yet, I have selected 'Stack plots' and '4 plots shown'.
    Actually, I can see the last data has been merged with the first one.
    How can I fix that ?
    Thank you !
    Solved!
    Go to Solution.
    Attachments:
    test5.vi ‏105 KB

    I'm not sure how you got into this state but try going into the chart properties (right click front panel chart and click Properties from menu) and under the appearance tab, unclick "stack plots", unclick "Show digital displays(s), hit "OK", then go into properties again and reselect those two boxes and hit okay. It should correct the problem.
    All statements are my opinion and worth every cent you paid for them.
    Tom Whitaker, CLD
    "Give every man thy ear but few thy voice."
    Polonius in Hamlet.

  • Waveform charts plotting

    I have a data acquisition VI, which acquires two sets of data as x and y values.I have problem plotting them in a waveform chart.I tried bundling them and wiring to the chart, but instead of one plot of x vs y as the data is being acquired, i get to view 2 sets of plots. How to overcome this, so as to plot my x and y values as they are being acquired in a waveform chart.Will someone help.

    > ... y as the data is being acquired, i get to view 2 sets of plots. How to
    > overcome this, so as to plot my x and y values as they are being
    > acquired in a waveform chart.Will someone help.
    If the X values are evenly spaced, then you can encode them as X0 and
    dX, wire these into a cluster with the Y array, and send that to the chart.
    If the values are not evenly spaced, one option is to look at the XY
    chart example in examples/general/graph/charts. The example uses a
    subVI to collect and limit the number of points, the data is then drawn
    using an XY graph.
    Greg McKaskle

  • Exporting analytic chart with dates

    Hi,
    I have an analytic chart with a list including some columns: id's names, dates, and amounts. This looks good in Sharepoint, but when I export the list to Excel, the dates are formatted as "General". They cannot be sorted or filtered as dates.
    I have tried having the date both as measure and attribute, but it makes no difference, it still behaves like text when it gets over to Excel. The closest I have is having the date as an integer and format as date is Excel, but of course, this looks rubish
    in Sharepoint.
    Any idea how I can get dates that looks and behaves like dates both in Sharepoint and the export to Excel

    Hi Jerry,
    I'm ALMOST there! If you could help me with one last thing it would be amazing. I've uploaded my number project and you can downloaded it on the link bellow, if you prefer.
    I managed to do the same idea chart as you have. However I would like to have two bars for every JOB (y-axis). On my table i've inputed for every job 4 values = START DATE that was scheduled / Duration period scheduled (this happens prior to the job itself // START DATE Delivered / Duration Period Delivered (this is the actual time the JOB took place). This way I can see at the end of a JOB if I worked during the period I planned.
    using your example on the chart above (your reply) Could Proposal have a bar 1.0 / 4.0 - and bellow this bar have another one (with different colours) that went from 2.0 / 5.0 - for example? - the first one representing the "scheduled dates"and the second one representing what actually happened.
    I managed to do the four bars but couldnt manage to have them bellow each other.
    Tks again for your help
    files.me.com/jujudavies/wgugl1.numbers.zip
    x'jul.

  • I need the detail about how to read the data from spreadsheet file. but the file should not created by labview.

    i face some difficulties here. the datas are encrypted...... how to get correct data ..........

    Excel files are in a propriertary microsoft format. A LabVIEW "spreadsheet" file is a file containing an ASCII table with tabs separating columns and linefeeds separating rows. They are not ther same!
    If you use "write to spreadsheet file" and name the file *.xls, this does NOT make it an excel file, it just tells the operating system to open it with excel if you double-click it. Excel is smart enough to notice that it is not really an excel file and does its best to convert it transparently. The same does not work in reverse.
    You have several options:
    You can use excel to export your data to something LabVIEW can read. Try e.g. tab delimited text.
    You can use e.g. activeX to read an excel file, see: http://zone.ni.com/devzone/cda/epd/p/id/3409
    Search for excel in your example finder for more possibilites.
    LabVIEW Champion . Do more with less code and in less time .

  • Can waveform chart be given focus when modifying y-axis numeric scale

    Hello,
    I have an application where I have a waveform chart (LV7.0) and a string variable on the same screen.  Since, in this application, a user inputs data into the string with a bar code reader, and since that can happen at any time, I constantly give the string control key focus.  This is done within a loop.  The problem is, I want to be able to double click the y-axis scaling on the chart and modify it at runtime, effectively zooming in or out on the chart.  Ideally, during modification of the chart, the chart would have key focus, and I'd set keyf ocus on the string control to be the inverstion of the key focus of the chart... but that doesn't work.  Does anyone know how to do what I'm trying to accomplish?
    Thanks.

    Hi rickford66,
    i think you can use an event structure for it. Set the key focus of your control in the timeout case. You can change the timeout depending on the user events. Another solution could be to use the key down event of the VI to read the barcode.
    Hope it helps.
    Mike

  • Changing an export file name by using a time stamp

    Hello Everyone,
    I am trying to create a way, utilizing the Report Attributes/Report Export field, to have an export file created with a time stamp associated with the file name.
    The reason for this is that I have users who will do multiple exports to Excel from a single parameters driven report. As opposed to manually giving the file a unique name each time the export occurs, I would like to give the export a time stamp as part of the name therefore making it unique.
    Any help would be greatly appreciated.
    Thank you

    I found the typo mm instead of MM which was my problem from the beginning.  MM represents month not mm.  A simple mistake that costed a lot of time.  Thanks Mike
    Cheers, you're very welcome. Glad I could help out.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Loading data into csv file based on the count of data in table in ODI

    Hi,
    I have a requirement like i have data in table and need to be loaded in csv file.
    If the count of the data in the table exceeds the csv data limit then i need to call the same procedure again to
    generate one more csv file and load the remaining data into it.my data in the table may vary all the time.
    I am new to this ODI.Can anyone tell any ways to do it in ODI or tell me any logic to do this?
    Thanks in advance..
    Edited by: 883410 on May 22, 2012 12:01 AM

    What limit on the csv file are you talking about. There isn't a limit (unless you are on Unix where the filesize is limit is 2GB). Are you talking about opening it in earlier versions of Excel where the display limit is 60,000 rows as this is irrelevant for your operation?

  • Time stamp conversion and graphs from array data

    How can you read time stamps and data currently in an text file as an array and split in for display on a graph. I think I need to convert the time stamp back into seconds to do this but not sure how to do so?

    If you're using 8.2, the Read From Spreadsheet File VI can read string files. If not, you will need to open the VI and read the instruction on the diagram for how to change it.
    Once you have your string array, you can use the VI found here to convert the time column (note - read the thread) and convert the second column using the String to Number functions.
    Try to take over the world!

  • How do you date and time stamp pictures and videos using a EOS Rebel T3?

    I am needing to utilize date and time stamping on videos and photos in my work.  The pictures and videos must display time, a date, and reference number.  I have gone through the cd, owner's manuel and software manuel and I am unclear if I can perform this function. 

    While this is a relatively common feature on point & shoot cameras -- where the photo is thought of as a snapshot to document a memory in a person's life, among DSLR cameras it's not very common (I don't actually know of a DSLR that does this though I don't doubt that it may exist).  DSLR users are usually expecting a higher quality image -- so now the image is thought of more like art and less like a snapshot and the date/time in the corner distracts from the image.  Also they tend to be more advanced users who would be able to modify the image themselves so they have little need for such a feature.
    The camera does record the date & time... but it's in the EXIF data (information recorded into the image file but not displayed).  
    SO... there are programs that will just do this.  You'll need to do a search (I found several but have never tried one so I can't vouch for them).  I think there are Photoshop plug-ins that do this (assuming you have Photoshop). These programs allow you to define the info you want printed (including EXIF data such as date/time) and you get to pick the location, font, size, color, etc. and ultimately the location on the image where you'd like the info displayed.  They then add the info visibly onto the image for you and most support "batch" use (e.g. drop a whole folder of images on it and they'll do them all.)
    Tim Campbell
    5D II, 5D III, 60Da

  • Trying to represent Min and Max date on a rtf. template, please help :-(

    Hi all,
    I'm a little bit disappointed. I make effort to write questions with the hope someone in this forum can help me, but it seems nobody has interest about it.
    I try once again:
    I am tryin to represent a From Date and To Date. My XML File looks like:
    <ServiceRequest
    <Created
    08/04/2003 07:34:21</Created
    <aENumber
    </aENumber
    <CheckResultCommentUAW
    </CheckResultCommentUAW
    <CheckResultCommentUAW
    </CheckResultUAW
    <ABCCategory
    </ABCCategory
    <ChargeNumber
    </ChargeNumber
    <ABCEndDate
    </ABCEndDate
    <ABCStatus
    </ABCStatus
    <ABCTransferStatus
    </ABCTransferStatus
    <ClosedDate
    </ClosedDate
    <ContactAccountName
    FGD Enterprise</ContactAccountName
    <ContactCTIFaxInbound
    </ContactCTIFaxInbound
    <ContactCTIPhoneOutbound
    +4904217280677</ContactCTIPhoneOutbound
    <ContactDepartment
    </ContactDepartment
    <ContactEmailAddress
    [email protected]</ContactEmailAddress
    <ContactFirstName
    Kate</ContactFirstName
    <ContactLastName
    Middleton</ContactLastName
    <ContactSalutation
    Miss</ContactSalutation
    <ContactSubject
    Psychoth.</ContactSubject
    <ContactTitle
    </ContactTitle
    <ContactType
    Doctor</ContactType
    <CreatorFirstName
    Iris</CreatorFirstName
    <CreatorName
    Ramos</CreatorName
    <Description
    Questions about Suprare.</Description
    <JoinedContactAccountId
    1-L8-676</JoinedContactAccountId
    <PTCNumber
    </PTCNumber
    <Product
    Novasitin</Product
    <ProductBusinessUnit
    BU Winters</ProductBusinessUnit
    <SRNumber
    1-1043652</SRNumber
    <SRType
    Speciality Service Request</SRType
    <SolutionDescription
    WLvbf</SolutionDescription
    <Status
    Open</Status
    <TemporaryContactName
    </TemporaryContactName
    <TemporaryPhoneNumber
    </TemporaryPhoneNumber
    <ABCDateReceived
    </ABCDateReceived
    <ABCLinkedProductName
    Novasitin 1</ABCLinkedProductName
    <ABCNoofUnitsReceived
    </ABCNoofUnitsReceived
    <ABCRefundReplacement
    </ABCRefundReplacement
    <ABCSampleStatusReceived
    </ABCSampleStatusReceived
    <ABCSolutionDescription
    </ABCSolutionDescription
    <VisitCompleteAddress
    The Parskinson 3</VisitCompleteAddress
    <Login
    A456788</Login
    <ListOfSRInternalProducts
    <SRInternalProducts
    <MaterialNumber
    134152</MaterialNumber
    <ProductName
    Novasitin 1</ProductName
    <BatchNumber
    </BatchNumber
    <ReplacementRefnd
    </ReplacementRefnd
    <SampleAmount
    </SampleAmount
    <SampleRecievedDate
    </SampleRecievedDate
    <SampleStatus
    </SampleStatus
    </SRInternalProducts
    <SRInternalProducts
    <MaterialNumber
    KTA</MaterialNumber
    <ProductName
    Novasitin</ProductName
    <BatchNumber
    </BatchNumber
    <ReplacementRefnd
    </ReplacementRefnd
    <SampleAmount
    </SampleAmount
    <SampleRecievedDate
    </SampleRecievedDate
    <SampleStatus
    </SampleStatus
    </SRInternalProducts
    </ListOfSRInternalProducts
    </ServiceRequest
    </listOf_ssServiceRequest
    As you see the date has the format 08/04/2003 07:34:21, but I want to represent it like 04.08.2003. I have this on my template:
    <?xdoxslt:set_variable($_XDOCTX, ‘minYear’, xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’))?>
    <?xdoxslt:set_variable($_XDOCTX, ‘maxYear’, xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’))?>
    and the loop:
    <?for-each:ServiceRequest?>
    <?if: xdoxslt:date_diff(‘s’, xdoxslt:get_variable($_XDOCTX, ‘minYear’), xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’), $_XDOLOCALE, $_XDOTIMEZONE) < 0 ?>
    <?xdoxslt:set_variable($_XDOCTX, ‘minYear’, xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’))?><?end if?>
    <?if: xdoxslt:date_diff(‘s’, xdoxslt:get_variable($_XDOCTX, ‘maxYear’), xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’), $_XDOLOCALE, $_XDOTIMEZONE) > 0?>
    <?xdoxslt:set_variable($_XDOCTX, ‘maxYear’, xdoxslt:to_char(concat(substring(Created, 4,2), ‘.‘,substring(Created, 1, 2), ‘.‘,substring(Created, 7, 4)), ‘DD.MM.YYYY’))?><?end if?><?end for-each?>
    So it gives me all the Service Request records in the time range. For example From Date: 31.01.2005 til To Date 01.02.2005.
    It doesn't give me the To Date result unfortunately, it gives me the correct From Date, but as To Date the result is the same as From Date, what is false.
    The results should be:
    From Date: 31.01.2005
    To Date: 01.02.2005
    Can anybody help me? please?
    Regards

    I can but I was looking for a direct API use if possible here. Our library is so compilcated that I can't use the direct select statement.
    Well thanks, I will be using the select max, min and further writing another API for my use.
    Regards,
    KP

  • Chart Min And Max

    I have a line chart using a Linear Axis in the horizontal
    direction. I have a live data stream coming into the graph. I have
    options to set the graph to different ranges and what I want to to
    is make the size of the graph explicitly that range. I am settings
    the minimum and maximum values and the minimum values works fine as
    it is based of zero, but I am having a problem with the maximum.
    When i set the maximum it is not making the graph explicitly to
    that maximum, instead it is making it to the highest value I
    currently have in my dataset. I want to change this so I can set
    the maximum and know that the maximum on the graph will be the
    maximum I set.
    Any help would be greatly appreciated
    Thanks in advance

    I have a line chart using a Linear Axis in the horizontal
    direction. I have a live data stream coming into the graph. I have
    options to set the graph to different ranges and what I want to to
    is make the size of the graph explicitly that range. I am settings
    the minimum and maximum values and the minimum values works fine as
    it is based of zero, but I am having a problem with the maximum.
    When i set the maximum it is not making the graph explicitly to
    that maximum, instead it is making it to the highest value I
    currently have in my dataset. I want to change this so I can set
    the maximum and know that the maximum on the graph will be the
    maximum I set.
    Any help would be greatly appreciated
    Thanks in advance

  • 1080i60 video captured file  has 3-13 sec. time diffrence, audio and video

    capture from camera (mode HD 1080i60) to imac G5 1.8Ghz ( allocated disk space is 500G) for 4 hours audio and video has no longer syncronized, time differences are about 3 to maximum 13 second. this can be checked by quicktime, after captured.
    disk has no error
    this case is also proven apple japan technical center.
    our case only FCP runs, no other application started.
    FCP 5.1.4 os 10.4.11
    if parson in charge in apple usa, please contact to apple japan for more details.
    FCP might have serious problem on capture routine

    Thank you for your kind reply, appreciated.
    i operate two imac capture system same day for operation. specification for both system are identical.
    from your advice, i checked .mov files by QT, which captured that day.
    condition:
    both system's FCP capture operation are closed 4 times by escape key for creating files, after created file. i again start for capturing the data. and no other application are initiated, except FCP
    system A has time differences audio and video, but not always there are time it is good.
    .mov files
    format FPS sound
    file 1 apple HDV 1080i,1440x1080 29.95 16bit mono 48.000khz
    file 2 apple HDV 1080i,1440x1080 29.94 16bit mono 48.000khz
    file 3 apple HDV 1080i,1440x1080 29.95 16bit mono 48.000khz
    file 4 apple HDV 1080i,1440x1080 29.96 16bit mono 48.000khz
    system B has no difference.
    format FPS sound
    file 1 apple HDV 1080i,1440x1080 29.97 16bit mono 48.000khz
    file 2 apple HDV 1080i,1440x1080 29.97 16bit mono 48.000khz
    file 3 apple HDV 1080i,1440x1080 29.97 16bit mono 48.000khz
    file 4 apple HDV 1080i,1440x1080 29.97 16bit mono 48.000khz
    NOTE: Both system never end FCP for this operation. created files by escape key.
    connection from camera to imac are directly connected to imac's fire wire socket by fire wire cables

Maybe you are looking for