Plot graph -y values versus timestamp stored in txt files

Dear all,
i have a set of measurement results that i saved in text file. First and second column are timestamp values while third and fourth values are results from my two sensors. Mayi know can anyhow help to extract these results and plot them onto a graph or xy graph? I have problem plotting the timestamp results (x axis) onto the graph.
I have attach sample of the text files. Thanks for your help!
Attachments:
test2.txt ‏1 KB

Dear all,
I have the same set of data but it is saved in excel format instead of text file now. However i think the column data are separated by tab, i have tried to use the same code as above but it dont seem to plot out the graph properly. Can anyone help out?
Attachments:
test4.txt ‏1 KB

Similar Messages

  • Plot graph of an array of timestamps vs an array of temperature values

    Hi,
    I'm trying to plot a graph which consists of timestamps and temperature. I initially polled the information from my gsm modem as sms text message and extracted the temperature values as numeric and timestamps as a string but to plot temperature against time i would need to have them both as numerical values and my time stamp is a string value i.e. 14:59:32. Ive tried changing the timestamp value to a numerical value but it rounds it up to 15 which isnt helpful as i have 3 15 values in now for different times :-( . Any help would be much appreciated?
    Thanks,
    Hamid.

    Hi Hamid,
    I have put together the code below which seems to convert a timestamp to a numeric data type.
    I hope this helps!
    Best Regards,
    Christian Hartshorne
    NI|UK

  • Scatter plot graphs, more than 2 series possible?

    It's been very difficult for me to put 3 or 4 series of data in scatter graphs and connect the dots with lines as in Excel, it just doesn't allow me. I made a graph before using line graph model but it turns out that in the x axis (which in this case is time in weeks) I need to show the distance proportionally (i.e. 0,2,6,12 and 16 weeks) and I can't find how to do it with a simple line graph. Tried in excel and is easy using the scatter plot graph (very simple, using exactly the same data arrangement). But numbers does not accept the series of data (it only accepts X,Y per series) and in second place there is not lines connecting the dots. Any of you guys have a suggestion?. I'd really prefer to use numbers bit do not why is so difficult to scatter graph the data. Thanks

    The default for X-Y pairs can actually be pretty handy, though often it is not. You can easily turn it into one X and a bunch of Y's. Connecting lines are also available.
    My assumption from your post is you have a column of X values and several columns of Y values.
    1) All data for a scatter plot must be in "normal" data cells, none in header cells.
    2) Select all the X & Y data and create a scatter chart.
    3) There is a "gear" at the top left of the colored box in the table that indicates the data in the chart. Click it and choose to share X values. Now you should have one column labeled "X" and several labeled "Y" and your chart will show each Y as a separate series.
    4) With the chart selected (the whole chart, not one of the series), go to the Chart tab of the inspector, go to the series tab, look for the words "connect points" and choose what kind of line you want to connect the points. Alternatively or additionally, you could make trendline curves by clicking on "advanced". Also, you can do them one at a time and choose different settings for each series by selecting each series separately.
    If you have gaps in your Y data, it will not connect the points on either side of the gap, you will have a missing line segment.
    If your X data is unsorted, some connecting lines may go right-to-left, not left-to-right.

  • How to insert varchar2 value in timestamp column in table?

    Hi all,
    Hope doing well,
    sir i am using one stored procedure and storing time in varchar2 variable in this format: 08:00:00
    now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
    thanks

    952646 wrote:
    Hi all,
    Hope doing well,
    sir i am using one stored procedure and storing time in varchar2 variable A "Very Bad Idea"(tm)
    When you do this, there is no fundamental difference between "08:00:00" and "here's your sign".
    Data should always be stored in the correct data type. For dates and times, that data type is either DATE or TIMESTAMP. Period.
    in this format: 08:00:00
    now i have to insert this value in timestamp column in table. how to insert this value in timestamp column?
    Hopefully as remediation to the original bad design.
    thanks

  • Get millisecond values from timestamp column in v$logmnr_contents

    Hello
    How do we get millisecond values from timestamp column in v$logmnr_contents.
    I tried with following query.
    select scn,To_Char(timestamp,'DD-MON-YYYY HH24:MI:SS:FF') from v$logmnr_contents WHERE OPERATION NOT IN('START') and username ='SCOTT' and sql_redo is not null and (seg_owner is null or seg_owner not in('SYS'));
    it says ORA-01821: date format not recognized. I want to find the relation of scn with timestamp. In forums i found, scn is derived from timestamp value. I dont know its correct or not.
    if i query with out FF in time format i get like
    scn timestamp
    808743 27-NOV-2007 00:12:53
    808743 27-NOV-2007 00:12:53
    808743 27-NOV-2007 00:12:53
    808744 27-NOV-2007 00:12:53
    808744 27-NOV-2007 00:12:53
    808744 27-NOV-2007 00:12:53
    if scn is derived from timestamp with milliseconds, each scn should be different right?More help please

    May be there's an easy way solving your problem, I did it like that:
    CREATE TABLE quota_test (test VARCHAR2(50))
    INSERT INTO quota_test
    VALUES ('update "SCOTT"."NEWTAB1" set a="34" and b="45"')
    SELECT test normal, REPLACE(SUBSTR(test,INSTR(test,'"',1),INSTR(test,'.',1)+2),'"','') changed
    FROM quota_test
    Result is :
    NORMAL
    update "SCOTT"."NEWTAB1" set a="34" and b="45"      
    CHANGED
    SCOTT.NEWTAB1
    If you didn't understand, I can explain what I wrote

  • Trying to get a return value from a Stored Procedure

    Hi folks,
    I have been tasked with something I thought was simple, but apparently its not that simple.  I am trying to call a Stored Procedure in UCCX that will do some calculations and returns back an integer value.  The stored procedure call I have is:
    DECLARE @return_status int
    EXEC @return_status = dbo.CTTLoginPhone @CTTId = $EmployeeID , @PIN = $EmployeePIN , @PhoneNumber = $CallingPhoneNumber ;SELECT 'Return_Status' = @return_status
    When I run this in this the editor, I get back one row.  If I run this in the debugger, I do not get any errors back and the stored procedure runs fine, however the Return_Status is not set either.  What am I doing wrong?
    I have defined Return_Status with intial value of 0 and the stored proc should be returning back 1 or 2, but the Return_Status remains as 0
    Can someone please let me know if I need a DB GET after a DB READ or can I just use the DB READ standalone when calling stored procedure.
    All help will be really appreciated.
    Thank you.

    I am having the same issue here... any help would be greatly appreciated. I am on UCCX 8
    I am getting 1 row returned when I click "TEST" in the READ step but the DB GET step is going into the SQL Error branch.
    Here are some details and I have attached screen shots of my script DB steps.....
    I have a Stored Procedure that is very simple...
    CREATE PROCEDURE sp_test AS
    Select 'N';
    GO
    Ive created a dummy table with 1 field..
    TABLE: testTable
    FIELD: code
    Let me know if there are any more details I can provide....

  • Get a return value from a stored procedure.

    hi all ,
    i need to know where i am going wrong with the below code. I am trying to get a value from a stored procedure. the return type is int. The stored procedure works fine as i've debugged it. The variable have been declared correctly.
    int n = 0;
    proc = conn.prepareCall("{ ? = call SP_GETITEMCURRENTSOH(?,?) }");
                proc.registerOutParameter(1, java.sql.Types.INTEGER);
                proc.setString(1, locationCode);
                proc.setString(2, itemCode);
                proc.execute();           
                n = proc.getInt(1);thanks

    Hi ayub_a,
    According the [ *setString*|http://java.sun.com/javase/6/docs/api/java/sql/CallableStatement.html#setString(java.lang.String,%20java.lang.String)] method of the [*CallableStatement*|http://java.sun.com/javase/6/docs/api/java/sql/CallableStatement.html] interface, the first parameter must be a parameter name and not an ordinal position index !!!
    Edit : I've just found out the solution, it must be :
    int n = 0;
    proc = conn.prepareCall("{ ? = call SP_GETITEMCURRENTSOH(?,?) }");
                 proc.registerOutParameter(1, java.sql.Types.INTEGER);
                 proc.setString(2, locationCode);
                 proc.setString(3, itemCode);
                 proc.execute();           
                 n = proc.getInt(1);Edited by: Chicon on Jul 5, 2009 7:48 PM

  • How do I return two values from a stored procedure into an "Execute SQL Task" within SQL Server 2008 R2

    Hi,
    How do I return two values from a
    stored procedure into an "Execute SQL Task" please? Each of these two values need to be populated into an SSIS variable for later processing, e.g. StartDate and EndDate.
    Thinking about stored procedure output parameters for example. Is there anything special I need to bear in mind to ensure that the SSIS variables are populated with the updated stored procedure output parameter values?
    Something like ?
    CREATE PROCEDURE [etl].[ConvertPeriodToStartAndEndDate]
    @intPeriod INT,
    @strPeriod_Length NVARCHAR(1),
    @dtStart NVARCHAR(8) OUTPUT,
    @dtEnd NVARCHAR(8) OUTPUT
    AS
    then within the SSIS component; -
    Kind Regards,
    Kieran. 
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Below execute statement should work along the parameter mapping which you have provided. Also try specifying the parameter size property as default.
    Exec [etl].[ConvertPeriodToStartAndEndDate] ?,?,? output, ? output
    Add a script task to check ssis variables values using,
    Msgbox(Dts.Variables("User::strExtractStartDate").Value)
    Do not forget to add the property "readOnlyVariables" as strExtractStartDate variable to check for only one variable.
    Regards, RSingh

  • Creating a view on two ODS using the most actual value of Timestamp

    Hi All,
    I am creating a view on two ODS. I have made an internal join of the field timestamp from both the tables. But the timestamp in bot ODS do not match, which is why there is no data visible in the view.
    There is a requirement that the value of timestamp to be used has to be the most actual value of timestamp from the two ODS.
    I would be grateful if some pointers regarding the same could be provided.
    Thanks and regards,
    Shruti Kulkarni

    Hi Shruti,
    ODS should not be linked on Timestamp basis, there must be some other alternatives like document number, date etc etc...
    In other case if its possible to include addtional key figure in to ODS then
    create a dummy key figure , in the aggregation tab page Select Exception aggregate as "Last Value" and in the "agg.ref char" Select time stamp as info object. This setting will make sure that in the ODS you have only last updated data.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • Passing multi-value parameter in stored procedure ssrs

    I have  customer parameter which is a drop down list in my report and I have set it to "allow multiple values". This is an SSRS report.
    How do I pass multiple values to my stored procedure?
    RJ

    Hi ,
    Create a Table valued function in SQL Functions  as below 
    Step 1
    CREATE FUNCTION [dbo].[FnSplit]
    @List nvarchar(2000),
    @SplitOn nvarchar(5)
    RETURNS @RtnValue table 
    Id int identity(1,1),
    Value nvarchar(100)
    AS  
    BEGIN
    While (Charindex(@SplitOn,@List)>0)
    Begin 
    Insert Into @RtnValue (value)
    Select
    Value = ltrim(rtrim(Substring(@List,1,Charindex(@SplitOn,@List)-1))) 
    Set @List = Substring(@List,Charindex(@SplitOn,@List)+len(@SplitOn),len(@List))
    End 
    Insert Into @RtnValue (Value)
    Select Value = ltrim(rtrim(@List))
    Return
    END
    Step 2 in your store procedure change the parameter where condition something like below
    ALTER PROCEDURE [dbo].[SomeSP] 
    -- Add the parameters for the stored procedure here
    @CostCentre NVARCHAR(255)
    SELECT
    [ProjectCode],[ProjectName],[ProjectManager],SUM([Hours]) AS [Hours MTD]FROM dbo.Rpt_NRMA_CATS NC
    INNER JOIN PeriodID P ON NC.PeriodID=P.PeriodID
    WHERE 
    ([CostCentre]) collate database_default IN(SELECT Value FROM dbo.FnSplit(@CostCentre,','))
    END
    I hope this will help you.
    Dasari

  • Multi plot graph - auxiliary curves

    I am in trouble with a multi plot graph. There is a wave chart that I have to plot an auxiliary line when the user clicks on the graphic. I know how to get the initial point and the final point of the auxiliar line. But I don´t know how can I plot this line in the same graph.
    Any ideas, sugestions or examples?
    Thank you in advance

    Speaking only for myself, I am not sure about the nature of your request.
    Could you please post some code showing an example of what you can do now and a jpg of what you desire.
    This may help us help you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Why won't my data appear on my scatter plot graph in numbers?

    I'm making a scatter plot graph and I'm dealing with very small numbers on my x-axis, such as 0.0004 and 0.184 on my y-axis. Every time I plot the scatter plot graph, nothing appears on the graph. Can anyone please help me? Thanks.

    just to check in your notification centre,(settings>Notification centre>Messages) did you enable show alerts from everyone? if so
    Do a reset by holding the power and home button until the apple logo appears ignoring the slide to power off (no data loss).

  • Analysing waveform for digital values stored in a file

    i have certain digitals values obtained in a file in .txt format.
    i have to obtain a waveform by giving the input as these digital values in that file.
    I have programmed for array input manually.
    But the waveform analysis should be made such that it do analyze automatically by taking the values stored in the file.
    The values are stored as like follows-
    0.00159
    0.01432
    0.01654
    0.15432
    etc
    Give me a module to do this task.

    Use the Read from Spreadsheet file and then just connect it to a waveform chart. This will do what you need. Post back.

  • MULTIPLE VALUES PASSING TO STORED PROCEDURE

    Hi, 
    I have a following stored procedure, I am passing two parameters from the drop down list by using a different dataset. User is selecting multiple values from drop down list in reporting services from
    code a drop down and code b drop down.
    I have put the JOIN(Parameters!qual_codea.Value,",") in dataset property for both parameters. But it is only displaying first row in the report. In report I have used simple table and Drag Total, Qualification Code A and Qualification Code B in
    three columns respectively.
    Any Idea why it is not displaying the remaining data for other codes selectedfrom drop down. If i run a query in management studio by using in operation with multiple codes, it display multiple rows which is correct but it is not happening in reporting services.
    Any Idea?
    ALTER PROCEDURE [dbo].[Multiple_Qualification_Summary]
    @qual_codea nvarchar(10),
    @qual_codeb nvarchar(10)
    AS
    select DISTINCT
    COUNT(b.PRN) as Total
    ,A.UKCC_Qualification_Code AS 'Qualification Code A'
    ,b.UKCC_Qualification_Code as 'Qualification Code B'
    from dbo.Practitioner_Register_Part_Status as a, dbo.Practitioner_Register_Part_Status as b, dbo.Qualification_Register_Part as c
    where a.PRN = b.PRN
    and a.UKCC_Qualification_Code = @qual_codea
    and b.UKCC_Qualification_Code = @qual_codeb
    AND A.IsLatest = 1 AND B.IsLatest = 1
    AND A.UKCC_Qualification_Code = C.UKCC_Qualification_Code
    AND C.QUALIFICATION_ACTIVE_SWITCH = 1
    group by A.UKCC_Qualification_Code
    ,b.UKCC_Qualification_Code
    order by 1
    MH

    Hi Sathya,
    Thanks for your reply, do i need to change the stored procedure? According to your link it suggest i have to use XML?
    MH
    Try this - Passing multi-value parameter in stored procedure 
    Shahfaisal Muhammed http://shahfaisalmuhammed.blogspot.com

  • Read data from XML file and plot graph on Ms Words

    Hi,
    I'm using Visual Studio 2010, what I want to do is written in the title.
    so far i was able read and plot graph on a Form but i unable to use the same method on Crystal Reporting.
    The method plotting in Crystal Reporting is complicated and it require a fix data set or database which is not suitable for my case because every time the number of column and row or data will be different. (this is what i think base on what i found)
    is there a way for me to display the output on a ms words?
    and what is the method.
    thanks.

    Hi Huangcongmazhananzi,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss the VS IDE.
    I might not have the correct detailed answer you need, but I might lead you into the right direction to solve your problem.
    If this issue is related to the Windows Forum app, this forum would be better:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    But if it is related to the Crystal Reporting, you could post the issue here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313&start=0
    is there a way for me to display the output on a ms words?
    If it is related to the Office, maybe you could select the correct forum here:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    Best Regard,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Namespace missing in the payload

    Hi , I doing a JDBC to IDoc scenario.I am using a JDBC sender Adapter to get data using a select query from DB Table ,every thing works fine.The Structure get filled up ,but the namescape is missing in the source payload (SXMB_MONI).Anyone knows why

  • I have changed my Apple password, but still receive the message that my account is disabled?

    I have changed my Apple password, but still receive the message "you account is disabled" when trying to make purchase with iTunes and App Store?

  • Updating albums in iweb

    Hi, I've several albums in iPhoto that I'm sending to iWeb.  Is there any way to get iWeb to automatically update the website as I add/remove pictures from the iPhoto albums?  So then all I have to do it update the website on the host server.

  • Can you transfer pictures with tags from photo album 2 to Photo organizer 9 (MAC)?

    I am switching over to a Mac computer and want to move my 25,000 plus images with various tags on Photo Album 2(windows) to a new program. Is this possible on Photoshop elements 9 or any program?

  • "Z" programs statistics execution

    Hi everyone I need to recover the history of executed "Z" programs, I can see by transaction code STAD the most executed and I´m recovering the data by the SAPWL_READ_STAT_A_ASTAT function. The problem that I´m facing is that when I execute my progra