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

Similar Messages

  • How could I plot 2D images or arrays serie to 3D object in LabVIEW?

    Hello, everybody.
    I would like to ask you guys about plotting 2D images or arrays series into a 3D graph or object or any possible.
    If I have serie of 2D arrays (It's 3D). For example, the 3D array contains 500 (z) x [ 500 x 500 (x and y)].
    Could anyone tell me the possible way to do this problem?
    Thank you very much .....
    Racha

    Hi rachacha
    I have been investigating about your question and I realized that we have a document with one example that it use different 2D picture for building a 3D object. I belief it will be useful for you.
    ->>  https://decibel.ni.com/content/docs/DOC-4765
     

  • 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).

  • 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.

  • 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.

  • Save plot/graph as JPEG or other image file

    Is it possible to save a plot / graph as a Jpeg or other image format??
    Insteat of writing to a spreadsheet file??

    Hello,
    I've done somthing like that in one application and the example it's on the attached pic.
    basically it's:
    1 - create graph reference (right click and choose create reference)
    2 - pick a method called "get image"
    3 - save the image to file.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    save graph.JPG ‏51 KB

  • How can I call the jFreeChart to plot graph and get the result in Servlet?

    I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!

    Dave,
    ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
    Thanks,
    -Alla
    There is a very simple servlet demo in the JFreeChart
    distribution:
    src/com/jrefinery/chart/demo/ServletDemo1.java
    This simply sends back an image to the browser.
    A second demo, which embeds the chart in an HTML page
    is:
    src/com/jrefinery/chart/demo/ServletDemo2.java
    src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
    java
    ...includes a time series chart as one of three
    options.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader
    http://www.object-refinery.com/jfreechart/index.html

  • How to plot graph in ALV?

    Hi,
    Any expert there know how to code in ALV in order for it to plot graph?

    the following classes may help u
    CL_GFS_GRAPH
    CL_GFS_GRAPH_EDGE
    CL_GFS_GRAPH_VERTEX
    CL_GFS_JOIN_GRAPH
    CL_GFS_JOIN_GRAPH_EDGE
    CL_GFS_JOIN_GRAPH_VERTEX
    example
    data:
    lr_def_rt   TYPE REF TO cl_gfs_viewdef_rt,
    lr_root     TYPE REF TO cl_gfs_usage_tree_node,
          lr_pre_it   TYPE REF TO if_gfs_iterator,
          lr_node     TYPE REF TO cl_gfs_usage_tree_node,
          lr_def      TYPE REF TO cl_gfs_viewdef,
          l_defname   TYPE sfsg_definition_name,
    lr_vertex   TYPE REF TO cl_gfs_graph_vertex,
    lr_gvert    TYPE REF TO cl_gfs_join_graph_vertex,
    lr_edge     TYPE REF TO cl_gfs_join_graph_edge.
    CREATE OBJECT lr_def_rt.
    lr_root ?= lr_def_rt->mr_tree->get_root( ).
    lr_pre_it = lr_root->preorder_iterator( ).
    WHILE lr_pre_it->has_next( ) EQ abap_true.
      lr_node ?= lr_pre_it->next( ).
      lr_def ?= lr_node->get_viewdef( ).
      l_defname = lr_def->get_name( ).
      l_dist = lr_node->m_level * 5.
      WRITE: AT l_dist icon_planning_table AS ICON.
      WRITE: l_defname.
      WRITE: AT 50 'AS', lr_node->m_alias.
      NEW-LINE.
      l_dist = l_dist + 5.
      LOOP AT lr_node->mr_join_graph->mt_vertex_list INTO lr_vertex.
        lr_gvert ?= lr_vertex.
        IF lr_gvert->m_source_view = l_defname.
          lr_tabdesc ?= lr_vertex->mr_data.
          WRITE: AT l_dist icon_database_table AS ICON.
          WRITE: lr_tabdesc->m_table_descr-table_name.
          WRITE: AT 50 'AS', lr_tabdesc->m_table_descr-t_alias.
          IF lr_gvert EQ lr_def_rt->mr_anchor_vertex.
            WRITE: AT 70 '[X]'.
          ENDIF.
          NEW-LINE.
        ENDIF.
      ENDLOOP.
    ENDWHILE.
    lr_def_rt->get_paths(
      IMPORTING
        rt_paths = lt_path
    LOOP AT lt_path INTO ls_path.
      SKIP.
      ULINE (113).
      NEW-LINE.
      WRITE: '|' NO-GAP, ls_path-path_name NO-GAP.
      WRITE: '|' NO-GAP, AT 7 '|' NO-GAP, (10) 'Join Name'  COLOR COL_HEADING NO-GAP, '|' NO-GAP,"#EC NOTEXT
             (20) 'Left Table'  COLOR COL_HEADING NO-GAP,'|' NO-GAP,"#EC NOTEXT
             (20) 'Left Attr.'  COLOR COL_HEADING NO-GAP,'|' NO-GAP,"#EC NOTEXT
             (20) 'Right Table'  COLOR COL_HEADING NO-GAP,'|' NO-GAP,"#EC NOTEXT
             (20) 'Right Attr.'  COLOR COL_HEADING NO-GAP,'|' NO-GAP,"#EC NOTEXT
             (10)  'TYPE' COLOR COL_HEADING NO-GAP, '|' NO-GAP.
      ULINE (113).
      NEW-LINE.
      LOOP AT ls_path-edges INTO lr_edge.
        lr_join_d ?= lr_edge->mr_data.
        SORT lr_join_d->mt_join_descrs BY j_no.
        LOOP AT lr_join_d->mt_join_descrs INTO ls_join.
          WRITE: '|' NO-GAP, AT 7 '|' NO-GAP, ls_join-join_name NO-GAP,sy-vline NO-GAP,
           (20) ls_join-left_table_name NO-GAP,sy-vline NO-GAP,
           (20) ls_join-left_table_attr NO-GAP,sy-vline NO-GAP,
           (20) ls_join-right_table_name NO-GAP,sy-vline NO-GAP,
           (20) ls_join-right_table_attr NO-GAP,sy-vline NO-GAP,
           (2)  ls_join-join_type NO-GAP.
          IF ls_join-join_type EQ 'L'.
            WRITE: icon_ps_relationship AS ICON NO-GAP.
          ELSE.
            WRITE: icon_cut_relation AS ICON NO-GAP.
          ENDIF.
          WRITE: AT 113 '|' NO-GAP.
          NEW-LINE.
        ENDLOOP.
        ULINE (113).
        NEW-LINE.
      ENDLOOP.
    ENDLOOP.
    Message was edited by: Hymavathi Oruganti

  • Efficientl​y building an array of increasing values for a graph

    I need to build an array of values increasing by 3E-8.  Initializing an array and changing each value in a while loop works fine, but it is terribly slow.  Is there a better (faster) way of building an array of increasing values like this?

    Thanks for the suggestion, it looks like that could do what I'm looking for.  A kind tech solved the problem for me by phone -- I knew it was reading and writing the entire 100,000 element matrix to memory at each step, but I couldn't figure out how to get it to stop.  A shift register brought the run time from over 2 minutes to under 1 second.
    Thanks again for responding!
    Message Edited by Deamiter on 11-07-2006 06:46 PM

  • Displaying a picture from an array of pixel values

    I have a picture I want to display in an AWT frame. The picture is stored as several arrays of pixel values which represent rectangles.
    Each rectangle has a start co-ordinate and a height and width.
    There is a ColorModel associated with the pixel values, so that's not a problem.
    What's the best way to display these rectangles as pixels, and patch them all together to make the full picture? I'm currently trying to use a MemoryImageSource, but I'm having trouble displaying more than one rectangle at once, and the picture flickers like mad, suggesting MemoryImageSource intended for animation, whereas I just want to display the picture once.
    Any suggestions?

    OK, that looks good. I'm investigating it.
    However, It's not clear how to get the pixel values from an array into it. It requires a WriteableRaster of the pixel data, and to create a WriteableRaster, you need a DataBuffer... which is Abstract!
    Do you know how to make a DataBuffer from an array?

  • Transfering elements to new array and doubling values.

    Hi my problem is that I need to ask a user to enter 5 integers that stores them in an array. Transfer them to a new array by doubling the values when trasferred.
    Please help I have 3 errors.
    class arrays
         public static void main (String[] args)
              int numbers[] = new int [5];
              byte array1Size = 0;
              int input = 0;
              char goon = 'y';
                   //create and initialise an array of 5 integers
                   int array1[] = new int [5];
                   // loop and fill each element
                   for (int x = 0; x < array1.length; x++)
                        System.out.println("Enter a number: ");
                        array1[x] = EasyIn.getInt();
                        // Filling array
                        if (array1Size >= array1.length)
                             //Make a new array doubling the values od the integers
                             int array2 [] = new int [2 * array1.length]; // 10 integers
                             //Copying integers
                             System.arrayCopy (array1, 0, array2, 0, array1.length);
                             //Make old reference point to new array
                             array1 = array2;
                        else
                             //normal
                             do
                                  System.out.print("Enter an integer: ");
                                  input = EasyIn.getInt();
                                  anotherArray[anotherArraySize] = input;
                                  anotherArraySize++;
                                  System.out.print ("Another number? Enter Y or N: ");
                                  goon = EasyIn.getChar();
                             }     while(goon = = 'y' | goon = = 'Y');
    the errros >>>
    G:\Java\Practical 7\Practical74.java:33: '.class' expected
                             int array2 [] = new int [2 * array1.length]; // 10 integers
    ^
    G:\Java\Practical 7\Practical74.java:33: not a statement
                             int array2 [] = new int [2 * array1.length]; // 10 integers
    ^
    G:\Java\Practical 7\Practical74.java:41: 'else' without 'if'
                        else
    ^
    3 errors
    Tool completed with exit code 1
    Thanks

    Hi,
    it seems you forgot the curly braces in the if-else statement:
    if (array1Size >= array1.length){
    //Make a new array doubling the values od the integers
    int array2 [] = new int [2 * array1.length]; // 10 integers
    //Copying integers
    System.arrayCopy (array1, 0, array2, 0, array1.length);
    //Make old reference point to new array
    array1 = array2;
    else{
    //normal
    do
    System.out.print("Enter an integer: ");
    input = EasyIn.getInt();
    anotherArray[anotherArraySize] = input;
    anotherArraySize++;
    System.out.print ("Another number? Enter Y or N: ");
    goon = EasyIn.getChar();
    } while(goon = = 'y' | goon = = 'Y');
    }

  • Store an array containing CLLocation values, in NSUserDefaults

    Hi,
    Am working with location based application and need to store an array containing cllocation values, in userdefaults , have tried using :
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    [defaults setObject:yourArray forKey:@"clArray"];
    [defaults synchronize];  
    but it gives following error :
    [NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '( "<MapLocationVO: 0x169440>" )' of class '__NSArrayI'
    thanks in advance
    Regards

    Hi,
    from NSUserDefaults Class Reference:
    +The value parameter can be only property list objects: NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary. For NSArray and NSDictionary objects, their contents must be property list objects. See “What is a Property List?” in Property List Programming Guide.+
    The only way is to archive the array into an NSData-Object and store that data-object.
    NSData *data = [NSKeyedArchiver archivedDataWithRootObject:yourArray];
    [[NSUserDefaults sharedUserDefaults] setObject:data forKey:@"arrayKey"];
    Dirk

  • Build an array with 2 values assigned to 1 dimension

    I am wanting to build a 1D array where two values are assigned to each dimension.  For example:
    Index 0 would have a 1 and 4 assigned to it
    Index 1 would have a 2 and 3 assigned to it
    Index 2 would have a 0 and 1 assigned to it.
    Then I can unbundle this arrayand grab the two values for index 0, index 1, etc....  I want to put this array inside a typedef control.  Is this possible?
    Solved!
    Go to Solution.

    Thanks for the replies.  I considered using a cluster and had the typedef control modified to include the cluster.  I may just go back to this method if this is the simplest for the code I am modifiing.
    A 2D array assigns two values i.e. row and column to one number.  I need it the other way around.
    Here is what I am trying to do.  I need to control a rotary valve.  I am using compact filedpoint to control the rotary valve.  The valve requires a pulse (1 then 0) for the rotary valve to move 1 position. If the valve is on channel 1 of the fieldpoint module and I want it to turn to position 2, the I send two pulses to channel 1. 
    My thinking is I will have two values associated per rotary valve... a channel and a pulse value. So for example, valve 0 has a Boolean and a numeric value assigned to it in an array. Although, it doesn't have to be a boolean and a numeric.  it could be 2 numeric values for simplicity.
    I hope this makes sense because without knowing this posting a VI or image is useless.  Its the chicken before the egg thing. :-)

  • How to have a vertical grid lineon the waveform graph indicator for every 10% percent of the maximum X axis value?

    Hi,
    how to have a vertical grid line on the waveform graph indicator for every 10% percent of the maximum X axis value, so the x axis will split into 10, the vertical grids line in total will be 11 (including first and last)
    Example if the maximum X axis value is 11.56, first vertical grid is at the origin(0), second vertical grid is at 1.156 and continue to last one 11.56

    Thanks JohnM and Evan,
    the increment work great and i modify it to pass the 10% into "start" too, so it will start at the point of 10% of maximum range
    attached file to let people download in future, if they met the similar situation
    Attachments:
    10percent.vi ‏31 KB

Maybe you are looking for

  • PDF Documents compatible with Acrobat Reader 5.0

    Which version (Standard, Pro or Ext Pro) of Adobe Acrobat 9.0  family should I buy to create PDF documents compatible with Acrobat Reader 5.0 ???? Is it possible to create PDF files from HTML and navigate through the links ???? Thank you.

  • Sales order follow up document

    Hi     we have customized a sales order transaction & maintained copy control settings for this sale order  transaction, to determine three activity related follow up transactions Eg: ic activity, Bus Activity with Products and Adjest Order.   The pr

  • Powermac 8500 Flat Panel Monitor Options

    I have a PowerMac 8500 and my Apple Multiple Scan 15 monitor is making noises, the green power button flashes, the image distorts bowing inward on the left side, or the screen doesn't light up at all. What Apple branded flat panel monitors can be dri

  • Java.io.FileNotFoundException when deploy converter in Tutorial

    I try to deploy converter application in the Tutorial. Always got the following Error: java.io.FileNotFoundException:http://10.1.5.104:9191/converter/ConverterAppClient.jar checked in examples/src/converter. The jar file is not there. But I found the

  • DW CC - Issues with saving

    In DW CC, I'm having trouble with the basic save function. For example, I'll use a picture for the body background & it saves ok. I then preview in my FF browser. Then I'll go back to bg, get rid of the bg image, and change it to a solid colour. It's