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

Similar Messages

  • How to get the date-time value?

    Hi All
    I have a a field "START_TIME of type DATE". The value stored for that particular field is of the form "10/17/2006 2:23:40 PM" i.e. a date-time value.
    Now when i try to get the values stored in the table in which the START_TIME field is defined i get the value in the form of "10/17/2006" .... I missed out the time information. Why is this so? How do i get the complete value as a string?
    Thanks in advance. Vijay

    Hi All
    I have a a field "START_TIME of type DATE". The value stored for that particular
    field is of the form "10/17/2006 2:23:40 PM" i.e. a date-time value.Actually it is stored as an internal date format (see my example SQL below, taking note of the dump'ed data).
    Now when i try to get the values stored in the table in which the START_TIME field is defined i get the
    value in the form of "10/17/2006" ....
    I missed out the time information. Why is this so?
    How do i get the complete value as a string?The value you see on the screen is the display format and this is determined by the client application that is displaying the date and what settings it is using. If a date column is retrieved from the database then all the data (date and time) is given back, but it's up to the application how that is displayed. e.g. you may see it differently if you view it is SQL*Plus against some other tool such as TOAD.
    To change the display settings you can change your NLS_DATE_FORMAT setting or whatever setting is suitable for your client application, or you can use TO_CHAR with a format string to specify the components you want to see. The different with TO_CHAR is that you are converting it to a character string so don't attempt to do any date type comparisons on it after that conversion, e.g. don't try and compare if one date is greater than another, without converting it back to DATE datatype first.
    SQL> create table t (x date);
    Table created.
    SQL> insert into t (x) values (sysdate);
    1 row created.
    SQL> select x from t;
    X
    02-JUN-08
    SQL> select x, dump(x) from t;
    X
    DUMP(X)
    02-JUN-08
    Typ=12 Len=7: 120,108,6,2,13,32,51
    SQL> alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS';
    Session altered.
    SQL> select x, dump(x) from t;
    X
    DUMP(X)
    02/06/2008 12:31:50
    Typ=12 Len=7: 120,108,6,2,13,32,51
    SQL>

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • How to Update the New Condition values for list of sales orders

    Hi
    Client requirement is they have set of old Sales Orders to be executed. But the material prices have been revised in the meantime. Now they want to update the current prices in the sales order before proceeding further.

    Hi,
    Though Lakshmi suggested you the right option, it may not be carried out for Sales Documents in random and will be much suited for Sales Documents with continuous sequence like 00010, 00011, 00012, 00013, etc.
    If you want to New Pricing to be carried out for Specific Lists of documents like 00010, 00017, 00043, 00057, etc, then you can do by following option:
    Go to Transaction "MASS", Select the Table - VBAK and Field - PRSTD and proceed by entering the Sales Documents Lists to carry out New Pricing.
    Hope this will be helpful to you.
    Rgds,

  • How to get the history(datapoints) of 32 waveform-charts which are in one cluster?

    Thanks in advance. I would like to handle up to 32 waveform-charts by using a cluster. My problem is that the datapoints of their history has to be saved if a particular event occures. How can I get the character-node for the history of a waveform-chart inside the cluster?

    I'm not certain what you are asking, but here's a suggestion. On the front panel, you can pop-up (right-click) on a waveform chart within a cluster and create a property-node (for the history), which can be manipulated as you desire on the diagram.

  • How to set the correct time scale of VI ?

    I created a VI to display waveforms on the waveform graph. The problem is the time scale of the VI is always the year 1904.I tried to select absolute time in Property options of the waveform, but it remained the same. Can anybody help me with this? Thanks.

    > The x-scale is always 01/01/1904 even after I selected the 'absolute
    > time' option from waveform chart properties. If I add 2004 as offset
    > of x-scale as suggested by the previous post, the waveform of the
    > signal cannot be displayed, the system think it is still running in
    > 1904.Could you give me some further help?
    >
    Your description doesn't give enough information to pinpoint the
    problem, so I'll list off a few things that could be going on.
    The graphs and charts accept many datatypes. If you are using the
    waveform, display it on a regular waveform indicator and see what the
    timestamp and deltaT are. If these are correct, then the graph should
    be able to display things with no further changes except that you may
    need to turn on X Scale Autoscaling so that it will zoom and shift to
    show the plotted data. Charts will shift, but by default will not zoom
    in, and it might make sense there sometimes too depending on the delta T
    and amount of data plotted.
    If the timestamp on the waveform is incorrect, then it is much easier to
    construct the properly marked waveform than make the graph add to it to
    label the waveform's time differently.
    If you are not using the waveform, then you may be using a cluster of
    X0, dX, and Y array wired to the graph. This is very similar to the
    waveform, and again, it is better to add offsets to get the X0 to
    display correctly on a numeric. You can extract this number or display
    the cluster in an indicator, then format the numeric to display absolute
    time.
    If you are simply wiring the Y array, then LV will construct the X
    values based upon the number of points beginning at 0 and incrementing
    by one by default. When displayed as absolute time, this will default
    to midnight Jan 1 2004 plus an offset based upon your timezone. In this
    case, since there is no X information being piped into the graph, it is
    better corrected by going to the graph properties for the X Scale and
    setting the X Offset to the seconds between now and 1904. This is a
    constant you can compute when your program starts up or you can use a
    calculator, whichever is easier. You will also likely want to set the X
    Multiplier to the deltaT between successive points. 0.001 for 1KHz, 1
    for 1Hz, etc.
    Finally, if these suggestions don't make sense or don't help, you might
    want to explain more about what doesn't work.
    Greg McKaskle

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

  • How to get the latest procured value of a spare updated in material master

    How to get the latest procured value of a spare updated in material master

    J S S PRASAD
    See table MBEW via transaction SE16.
    However, you may need to look at the last PO created for that material.
    PeteA

  • How to Update the APC values in another Depreciation Area

    Hi
    We have an issue that:
    Due to our configuration mistakes the past values have not posted to our depreciation area 15 (Tax depreciation) and our Group Assets are not updated with these values. Now we have rectified the configuration but we want to update the already posted values in depreciation area 15 (Group Assets).
    How we can update the same.
    Thanks in advance to all.

    You can use transaction ABSO and use a copy from the transaction type 158 Gross interco.transf.acquis. prior-yr acq.
    You have to create a new transaction type copy from 158 and Limit Transaction Types to Depreciation Area 15
    TC SPRO: Financial Accounting / Asset Accounting / Transactions / Acquisitions /  Define Transaction Types for Acquisitions

  • Very Urgent.......How to update the database values through OAF pages ??

    Hi All,
    I am developeing some self service application thru Oracle Application Framework(OAF). There I am fetching 5 attributes from the database and displaying those attributes in my main page Table Region. Now my requirement is i want to edit that exising values & again i want to store it in the databse while clicking the update button. so first i have created one VO for fetching the values from the database & i make one Table Region in my main page along with 5 MessageTextInput field.. & i mapped that VO's attributes to my textbox.Now i can able to fetch & display the values inside the text box while rendering the page.
    But I dont know how to update the values in the database. Caz in my VO I have only select query. So anyone plz send me the code for update. And also plz let me know where to insert that code..whether (CO or AM or EO)..it is very urgent.
    Thanks
    srini

    David,
    Note that the default JavaBean datacontrol does not allow create/remove and transaction operations. These apis are not implemented for the JavaBean datacontrol.
    You may re-initialize the rowsetiterator, by calling ((oracle.adf.model.generic.DCRowSetIteratorImpl)iteratorBinding.getRowSetIterator()).clearCurrentData().
    This will force the RSI to refresh it's data via the named-accessor again.

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to update the ItemRenderer at runtime..?

    Hi....
    am facing a hectic problem with ITemRenderes..
    My requirement is like i need to insert a Label and Image in
    each item of Horizontal List.
    For this i created a ArrayCollection with Lable and
    ImagePath. And assigning array as a Dataprovider to HorizontalList.
    and am attaching itemrenderer to it (which hold the lable and
    image).
    code:
    var data:ArrayCollection=new ArrayCollection({label:'A',
    path:'a.jpg'}, {label:'B', path:'b.jpg'}{label:'C', path:'c.jpg'});
    var hList:HorizontalList=new HorizontalList();
    hList.dataProvider=data;
    hList.itemRenderer=new ClassFactory(rendererObj);
    rendererObj holds the Lable Component and Image Componnet..
    Now the porblem is am trying to change the horizontal list at
    runtime. Like i want to change the lable of selected item in
    Horizontal list. Am able to update the arraycollection values. But
    its not getting effected in ItemRenderer.
    How to update the itemerenderer at runtime...?
    Thanks in Advance...
    Pratap

    Hi Pratap,
    I was playing with some sample code for this...
    Here is the main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.utils.ArrayUtil;
    import mx.collections.ArrayCollection;
    import mx.collections.IViewCursor;
    import mx.controls.Alert;
    import mx.events.*;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.HorizontalList;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.containers.TitleWindow;
    [Bindable] private var myItemRenderer:ClassFactory;
    private function doit()
    myItemRenderer = new ClassFactory(rendererObj);
    var mydata:ArrayCollection=new
    ArrayCollection([{mylabel:'A', path:'a.jpg'}, {mylabel:'B',
    path:'b.jpg'},{mylabel:'C', path:'c.jpg'}]);
    var myList:HorizontalList = new HorizontalList();
    myList.dataProvider = mydata;
    this.addChild(myList);
    myList.itemRenderer=myItemRenderer;
    ]]>
    </mx:Script>
    <mx:Button x="204" y="191" label="Button"
    click="doit()"/>
    </mx:Application>
    Here is the rendererObj.mxml (component/itemrenderer)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="110" height="76"
    implements="mx.core.IFactory,mx.controls.listClasses.IDropInListItemRenderer"
    backgroundColor="#BAB3B3" borderStyle="solid" borderThickness="3"
    borderColor="#000000">
    <mx:Script>
    <![CDATA[
    import mx.collections.IViewCursor;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.Label;
    private var _listData:BaseListData;
    public function newInstance():*
    return new rendererObj();
    public function get listData() : BaseListData
    return _listData;
    public function set listData( value:BaseListData ) : void
    _listData = value;
    override public function set data(value:Object):void {
    if (value != null)
    var r:Label = new Label();
    r.text = value.mylabel;
    this.addChild(r);
    ]]>
    </mx:Script>
    </mx:VBox>
    See how that works..you press the button and the itemrenderer
    gets drawn into the horiz. list with the values from the
    arraycollection.
    I didnt implement the picture, but you get the idea on how to
    get
    the values into the hlist..
    hope this helps...

  • How to synchronize the FieldPoint time with my computer time?

    When I using MAX to read the values from my FieldPoint cFP-1804 module, there is and timestamp generated for every measurement, but it does not match my PC's system time. How to synchronize the FieldPoint time with my windows PC?
    I found a thread on the forum regarding this problem (http://digital.ni.com/public.nsf/allkb/C4E56AD6450FC5FD86256DFF0007FF01), it ask me to select the Time Zone on the System Setting tab, but I didn't find any System Setting tab and Time Zone setting in my MAX screen. (MAX version4.4)
    I'm using the cFP-1804 without embedded CPU module, I'm using asp.net, measurement studio to link with the cFP-1804, not by using Labview. Does cFP-1804 have a Time Server function? Please tell me how to match the FieldPoint time with my PC. 
    Thanks

    Hi Presario2100,
    In order to obtain an updated timestamp with each FieldPoint Read, you should
    use a Flat Sequence structure.  In the same frame as the
    FieldPoint Read, use a Get Date/Time In
    Seconds node.
    The program obtains a fresh Timestamp each time the FieldPoint Read VI is
    called.
    I hope this helps.
    Message Edited by Pie56694 on 08-15-2008 05:58 PM
    Attachments:
    TSUpdates.jpg ‏38 KB
    FlatSequence.jpg ‏54 KB

Maybe you are looking for