DST setting for absolute time in waveform graph

I am using a waveform graph to display some pre-recorded data, with absolute time on the X-axis.
If the time period of the data includes the point at which daylight savings time changes, then this comes out correct on the X-axis i.e. there is a one hour jump in time on the X scale.
But this is only correct if the data is recorded in the same time zone with the same DST settings as the computer used to display the data. If I am viewing data that was recorded in another country, the time on the X scale can come out wrong.
Is there any way to get the graph to ignore the DST setting, so that I don't get the one-hour jump on the X scale?

Hi Scott,
Thanks for your suggestions.
I actually prefer relative time, but other users wanted absolute time so that is why I put it in.
Most of the time it is not going to be a problem - the data is usually analysed by the same people who recorded it, so the times will always come out correct.
But we do have collaborations with people in other countries and swap data files back and forth, so it could get connfusing if the times come out different in different countries.
It would be nice if I could somehow tell the graph what timezone the data was recorded in, and it would display the time correct for that timezone. This would save me from having to change the timezone setting on my computer all the time. But in the mean time, that is what I'll do.
Many thanks,
Mark.

Similar Messages

  • Setting the absolute time on a stripchart

    Hi,
    How do I set the absolute start time of a strip chart in measurement studio? In CVI I would do the following....
    GetCurrentDateTime (&start_time);
     SetCtrlAttribute(panel, control, ATTR_XAXIS_GAIN  , gain      );
     SetCtrlAttribute(panel, control, ATTR_XAXIS_OFFSET, start_time);
    Many thanks

    double[] myArray = new double[10];
    for (int i = 0; i < 10; i++)
    myArray[i] = i % 4;
    NationalInstruments.UI.AnalogWaveformPlotOptions plotOptions = new NationalInstruments.UI.AnalogWaveformPlotOptions(
    NationalInstruments.UI.AnalogWaveformPlotDisplayMode.Time,
    NationalInstruments.UI.AnalogWaveformPlotScaleMode.Scaled,
    NationalInstruments.UI.AnalogWaveformPlotTimingMode.Auto);
    waveformGraph1.Plots[0].DefaultTiming = NationalInstruments.WaveformTiming.CreateWithRegularInterval(
    TimeSpan.FromSeconds(1),
    DateTime.Now,
    TimeSpan.FromSeconds(0));
    NationalInstruments.AnalogWaveform<double> myWaveform = NationalInstruments.AnalogWaveform<double>.FromArray1D(myArray);
    waveformGraph1.PlotWaveform<double>(myWaveform, plotOptions);
    Plots something that looks like:
    National Instruments
    Product Support Engineer

  • How do I get the reference numbers for cursors in a waveform graph (other than through an event structure)?

    I want to control cursors in a waveform graph programmatically.  I've tried using the "Cursor list" property, modifying the cursor clusters and writing the results back to the cursor list property, but this only works sporadically.  Modifying the cursors by ref number works well, but you have to get the refnumbers  from an event structure during a cursor event.  Is there any way to get cursor reference numbers aside from through an event structure?
    Thanks!

    Hi barryinbo,
    On the controls pallette, go to refnums> Control refnum>Control. Then right click the refnum and point to select vi server class>Generic > and you will see a cursor there. This will be a "loose typed refnum" but you can right click the refnum to include data type. An alternative is to drag a cursor to the refnum, this will make it strict typed.
    Hope this helps
    Chris Co.

  • Enterprise Cache (Isolated Cache) is not Expiring for Absolute time

    Hi,
    I am using the Enterprise Cache from Microsot Practise. this is Isolated cache. which is storing into SQL server. when i am giving the Expiration time less then 5 min is working fine. if i give more than 5 min its not expiring from the DB.
    Note : time : 5 min , CacheExpiryType : Absolute
    refere the code below:
     public void Add(string value, string objectvalue,int timeout, string CacheManagerValue)
                DateTime dt;
                ICacheManager AddCacheManager = CacheFactory.GetCacheManager(CacheManagerValue.ToUpper());
                int timeoutinminute;
                if (timeout != 0)
                    timeoutinminute = timeout;                              
                else
                    timeoutinminute = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["DagCacheTimeout"].ToString());               
                string Cachetype = System.Configuration.ConfigurationManager.AppSettings["CacheExpiryType"].ToString();
                if (Cachetype.Trim().ToUpper() == "SLIDING")
                    AddCacheManager.Add(value, objectvalue, CacheItemPriority.Normal, null, new SlidingTime(TimeSpan.FromMinutes(timeoutinminute)));
                else if (Cachetype.Trim().ToUpper() == "ABSOLUTE")
                    dt = System.DateTime.Now.Add(TimeSpan.FromMinutes(timeoutinminute));
                    AddCacheManager.Add(value, objectvalue, CacheItemPriority.Normal, null, new AbsoluteTime(dt));
                else
                    AddCacheManager.Add(value, objectvalue, CacheItemPriority.Normal, null, new NeverExpired());

    Hello Sathishkumar,
    For issues regarding Microsoft Enterprise Libraries, there is a specific forum, i would suggest that you could post it to that forum:
    https://entlib.codeplex.com/
    Thanks for your understanding.
    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.

  • I want to set for each ponit in a graph wich color it had, how i can make that?

    i want say to the graphe wich color had each point

    > i want say to the graphe wich color had each point
    This isn't the common usage of the graph, and in fact each point on a
    plot has the same color.
    You might be able to do what you want, by adding a new plot for each
    point. You can also modify one of the picture control graphing examples
    to take in two arrays and it could change the color as it draws the plot.
    Greg McKaskle

  • Set for first time use

    how do you use the ipad for the fisrt time? it doesnt go to the normal screen just shows to connect to itunes

    You use the cable it comes with, connect it to a computer, and launch the latest version of iTunes.
    Matt

  • Code needed for "putting waveform graphs and 8bit images in the same window by Windraw"

    Hi Micheal, please sent the code example for my question:"putting waveform graphs and 8bit images in the same window by Windraw" , thanks.

    You can start from here ...
    Hope that helps,
    Michael
    Attachments:
    tester.vi ‏97 KB

  • Waveform graph

    I am wanted to display mutliple waveforms in a waveform graph, I have the following challenges to figure it out.
    Someone please guide me to do this
    1) Input is only 1-D array(which gets updated in run time), but waveform graph is accepting only 2-D array as input to display multiple signals.
    2) Iam using the attached waveform, which works as a waveform chart and wanted to feed the 1-D array to this vi.
       (Found this vi in a post). I want to go with only waveform graph because of the cursor option availabe in the Graphs.
    -Zhang
    Attachments:
    Waveformgraph.vi ‏14 KB

    Thank you very much srikrishna for your reply, I was looking some thing similar to this logic.But the only other thing I wanted to add to this logic is making  the x-axis to run with the time (X-axis always stays at the same scale),allowing the user to look at the data right from beginning using the graph palette, when he stops the execution .
    I had inserted the array, replacing the random number generator and was able to verify the data, which is updating correctly during run time. Iam attaching the modified vi. Can you please tell me how to change the x-axis so that it runs with the run.
    -Zhang
    Attachments:
    Graph_data.vi ‏11 KB

  • Absolut time to deliver

              Is there a way to set an absolut time to deliver a Message?
              All I find is WLMessageProducer.setTimeToDeliver() which receives a relative time
              in miliseconds.
              I think I read somewhere that internally the JMS server calculates the corresponding
              absolut time, it seems to me it's 'not clever' to do this twice...
              Thanks,
              Paulo
              

    Paulo Santos wrote:
              > Is there a way to set an absolut time to deliver a Message?
              One can configure a cron-like schedule on the time-to-deliver-override for the
              destination.
              Otherwise, no.
              >
              > All I find is WLMessageProducer.setTimeToDeliver() which receives a relative time
              > in miliseconds.
              > I think I read somewhere that internally the JMS server calculates the corresponding
              > absolut time, it seems to me it's 'not clever' to do this twice...
              I suggest filing an enhancement request.
              Meanwhile, pass in "absoluteTime - System.currentTimeMillis()", which, while 'not
              clever',
              will very likely suffice. :-)
              Tom, BEA
              >
              >
              > Thanks,
              > Paulo
              

  • TS2784 I have set my iphone5 time settings to automatic New York time. Throughout the day the clock keeps changing times on its own by hours. Sometimes in is correct. Sometimes it is wrong.

    I have set my iphone5 time settings to automatic at New York time. Throughout the day the date and time on the phone keeps changing on its own and often by a few hours. Sometimes it goes to the correct time. Sometimes it is way out. Is there something wrong with my settings?

    This is a known issue with the iPhone 5. Turn off the automatic time setting for the time being. It will most likely be corrected in an upcoming update to iOS if the tech press is to be believed.

  • Problem about selecting waveform in waveform graph

    Hi all:
    I am developing a project by Labview. Now I meet a problem about selecting the waveform in the waveform graph.
    I am not sure whether it is possible about my idea.
    for example:
    In the waveform graph,  the different waveforms from a couple of channels are displayed. and then I want to select one waveform of them, and corresponding data about this waveform are shown. 
    Thanks so lot
    regards

    hanwei wrote:
    1.  can I zoom in and out in that "waveform graph"??
    You can do this using the graph palette. Just make it visible. The middle control allows you to zoom.
    2.  can I display the plot array or plot index that I select in the waveform graph?
    You can connect the same wire that goes to the ActivePlot property node to an indicator.
    3.  I build a sample codes for my project, in which , I used a random number generater to simulate a DAQmx data collection, and generate a overlapping waveform in the waveform graph.
         but it seems the program is not stable, when i first run the codes, it is ok, and I can select the plot what I want. but after I stop and restart the program, there is error message about "Property Node".
         it seems something wrong about the "waveform graph properties"
    I attached my codes here, anybody know what wrong about it?
    For some strange reason the property node is "messed up". I've seen this happen sometimes with graphs. I don't know what causes it, and the only way I've found to fix the problem is to delete the graph, put a new one on the front panel, and recreate the property nodes. I've typically seen this happen when copying code from another VI that has a graph with property nodes, as I suspect you did. If you delete the graph, put a new one on there, and recreate the property node you should be OK.
    That said, a few comments regarding the code:
    The architecture seems to be a mish-mash of operations, and I'm thinking that you probably want to look at using a producer-consumer architecture. Your producer loop responds to events, and the consumer loop does your DAQ collection.
    You have a race condition with your use of the "size(s) 2" local variable.
    Avoid right-to-left wires.
    The method of creating your arrays seems convoluted. However, since you said you will actually be getting the data from a DAQ system, the actual project code will likely be considerably different.

  • How to update the absolute time value in waveform chart for labview 6i?

    Hey there,
    I'm developing a control system using labview 6i on win 2000 os.I'm receiving the sensor data every minute and i want to display the data on a waveform chart with absolute time scale on x-axes. I'm using the property nodes for the offset, multiplier and maximum values putting them outside the while loop and giving them input using get date/time in seconds function. the problem is that the time doesn't gets updated w/ refernce to the computer time and after a certain period the time shown on x-axes lags by several hours. any advise?

    Posting an example ussually help us nail these types of issues fast.
    I am therfore forced to guess.
    Do you have your code written such that the scale operations occur before the loop?
    The next thing I have to suspect (not being able to see your code) is if your dt is correct. If your dt is larger than what the chart is set for, then the time will fall behind.
    I have included an image showing how the chart can be used to show multiple sample rate plots such that the t0 of the readings are used to control how the readings are displayed. This example uses waveform data types (I believe they were available back in 6i). It should serve as a guide to do what you want.
    I suggest you start by recreating the demo and play with it until you have what
    you will need in your app.
    The beauty of this method is it lets you use the chart to plot signals acquired at different frequecies and plot them all together.
    reply to this answer if you have questions,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wform_demo.bmp ‏427 KB

  • How i configurin​g a waveform graph for that in the Time (X-axis) appear the time zone configured for the computer?

    CORDIAL SALUDO,
    ESTOY ADQUIRIENDO SEÑALES DE TENSION Y DE CORRIENTE DE UN SISTEMA FOTOVOLTAICO Y NECESITO GRAFICAR DICHAS SEÑALES CONTRA EL TIEMPO LOCAL DE MI COMPUTADOR EN EL EJE DE LAS "X" , PARA LA CUAL SELECCIONO EL MENU PROPERTIES DE LOS WAVEFORM GRAPHS, LUEGO SELECCIONO FORMAT AND PRECISION Y LUEGO EN EL EJE DE LAS X SELECCIONO ABSOLUTE TIME, PERO EL PROBLEMA ES QUE CUANDO HAGO LA ADQUISICION ESE TIEMPO EN EL EJE DE LAS X NO ES EL TIEMPO VERDADERO CONFIGURADO EN MI COMPUTADOR. ¿ COMO CONFIGURO LOS GRAPHS PARA QUE EL ABSOLUTE TIME EN EL EJE DE LAS X SEA EL MISMO DE LA HORA LOCAL CONFIGURADA EN MI COMPUTADOR??.
    GRACIAS!

    Hola Andres.
    Basicamente, hay 2 maneras de hacer lo que tu quieres
    La mas sencilla ( mira el doc asociado) es construirte una waveform con t0 como hora del pc y dt el adecuado a la velocidad de adquisicion de datos. No olvides desmarcar en el grafico la opcion "ignore timestamp" para que te presente la hora por defecto.
    Tambien puedes usar la opcion de tiempo absoluto, en cuyo caso tienes que cablear el t0 convertido a DBL a un property node del eje x "Offset" y el dt a "increment"
    Espero que te sirva. Si tienes dudas, pon tu vi aqui y le echare una ojeada.
    Saludos
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    hora_pc.doc ‏63 KB

  • Waveform chart X-Axis reverses itself when upper limit is edited in Absolute Time - problem may be linked to Timestamp Control?

    I've seen this problem for some time now, and it still exists in the Silver toolset Waveform Chart in LV 2012.  If the chart is in strip mode, and you edit the upper limit value to a point in the future, the X-Axis will invert (higher values/ later time to the left), to the limit of the Chart History length.  This happens whether the chart is active (logging data on a compiled executable) or even when in design mode, though it's more consistent when there's data in the chart.  It's not history length related as far as I can tell, as I set the length to 7 days of sampling @ 1-second intervals (605K), and it happens when I try to set the end time to an hour in the future with only a few minutes of data collected - suddenly the right Absolute Time becomes the time my last sample point was collected, while the left Absolute Time becomes nearly 7 days in the future (so neither end point is what I was setting it to).
    It's nice that the chart gives the option of editing the limits, but as such, it's important that they work as you would expect them to.
    Also - until this is addressed, is there a way to lock it against editing?  Until a fix is made, my workaround is to put a transparent button over the range start & end points, and a transparent flat rectangle above all other mid-range points, and pop-up a data entry form with a Timestamp control to allow editing.  Unfortunately, this doesn't work as I would expect, as typing "11 AM" in the Timestamp control over a prior value of say "10:05:34.232 AM" ends up becoming "11:05:34.232 AM" instead.  ???  Another error - or is this by design?  If it's by design, is there an option to make it behave as I would prefer (11 AM = 11:00:00.000 AM), as Excel behaves with timestamps?  I can't help but suspect this may be linked to the chart axis issue.
    Also - I just built a simplified chart modeled somewhat on my current project, and could not get this to recur.  BUT... had the strangest thing happen:  My sample data was generated using the Trig functions for Sine and Cosine, and at one point my waveforms distorted on the display, so I'm attaching that here plus the simplified chart project.
    Last - my system is LV 2012 on Win7 Pro-x64.
    Thanks!
    Erik
    Attachments:
    Chart data distorted.png ‏45 KB
    Waveform Chart Flaw.zip ‏17 KB

    I am not so sure that this is a bug, and I have not been able to reproduce this behavior that you are describing. 
    But you can lock it from editing by right-clicking on the graph and go to Properties>>Appearance>>Enabled State --> Disabled
    Also, word of advice for the future: You will get more replies from the community with shorter posts and keeping it to one question per post. Summarize what the issue is, and put the detailed documentation and instructions to reproduce in the actual VI. 
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • Control Waveform Graph - Set Lower Limit and Autoscale Upper Limit

    In a waveform graph is their a way to set the lower graph Y limit at zero and then have it autoscale the maximum Y limit as a percentage (150% for example) of the maximum Y graph value ?
    Direction to examples or a starting point to read up on would be great !
    Thanks,
    Joe
    Ireland
    Solved!
    Go to Solution.

    Turn off autoscale and set the max with a property node based on the array max of the data.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for