Shared variable, missing data, the same timestamp for two consecutiv​ely data

hello
I have a problem with missing data when I read from a network published shared variable.
Host VI:
In a host VI on my Laptop (HP with WinXP Prof.) i'm writing data to the shared Variable "data". Between two consecutively write operations is a minimum of Milliseconds waiting time. I use that because I want to be sure that the timestamp for each new data value is different then the preview one (resolution shared variables is 1 ms)
Target VI:
the Target VI on a cRIO-9012 realtime device is reading only new data in the way that it compares the timestamp of a new value with the timestamp from the last value.
Problem:
rarely, I'm missing a datapoint (sometimes everything works fine for several hours, transferring thousands of data correctly before suddenly the failure happens). With some workaround I'm able to catch the missing data. I've discovered that the missing data has the exactly same timestamp then the last readed datapoint, therefore is ignored in my "legal" data.
To sum up, the missed value is written to the shared variable in the host, but the target ignores him because his timestamp is wrong, respectively the same as the last value has, despite the host waits every time for a minimum of 10 milliseconds before writing a new value.
Note:
The shared Variable is hosted on the Laptop and configured using buffering.
The example is simplified only to show the principle function, in real I use also a handshaking and I secure that there is no over- and underflow.
Simplified Example:
Question:
Has someone an idea why two consecutively data can have the same timestamp ?
Where is the (wrong) timestamp finally coming from (system?) ?
What would be a possible solution (at the moment with shared Variables) ?
-> I tried a workaround with clusters where each data gets a  unique ID. It works but it is slower than comparing timestamps and I could get performance problems.
Would it change something when I host the shared Variable on the RT-System ?
Thanks for your help
Regards
Reto
Solved!
Go to Solution.

Hi Reto,
I had a look on your modified Example.
Because the Shared Variables didn`t work like Queues or Notifiers (No Event or Interrupt when a new value has been written. And for sure the´re not possible over a network) you will see the issue, that the code is reading the values more often with the same timestamp (Polling Problematic) if the reader is faster then the writer. And because the timestamp is written with the value you´re able to program like you do. Filter out whats duplicated when you have the same timestamp.
Everything is described in here:
http://zone.ni.com/devzone/cda/tut/p/id/4679#toc1
Laurent talked about a second depth of buffer. Please have also a look at the link. Somewhere in the middle of the tutorial you see the explanations of Buffer and RT-Buffer.
Regarding your question: Would it change something when I host the shared Variable on the RT-System? --> No
In my experiences, you should consider to place the Shared Variable Engine after asking some questions regarding the application.
You will find the Answers to this 3 Questions also in the link:
Does the application require datalogging and supervisory functionality?
Does the computing device have adequate processor and memory resources?
Which system is always online?
And you`re right the smalles time interval you can see in the timestamp is 1ms.!
What you also can do is working with an enabled "timed out". This might be more performance efficient than reading the timestamp.
What I don`t know and not find up to now, is if LabVIEW or the OS adds the timestamp. It´s taken from the system time, this looks like LabVIEW is taking the value and adds it. 
I hope this helps
Alex
NI Switzerland

Similar Messages

  • How to have two seperate Itunes on the same computer for two Ipods?

    Is there a way to have two separate Itunes downloaded on the same computer for two different Ipods? My sister got a new Ipod and she wants to hook it up to the computer but when ever she does it just pulls up my Itunes and has all of my songs on there. How can we each have our own Itunes?

    There's many ways to accomplish this. You could create two accounts in Windows. That way everything is completely separate. Or, you could manually manage your music in iTunes -- this way it won't automatically sync your music onto her iPod. More info here:
    http://docs.info.apple.com/article.html?artnum=61148
    http://docs.info.apple.com/article.html?artnum=93779

  • Is it possible to use the same Switch for two different clusters.

    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.

    user9198027 wrote:
    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.
    Yes.  Technically there will not be any conflict as long as the private addresses used by the 2 clusters do not collide, and provided that the switch's port capacity and bandwidth will not be exceeded.
    Your NA (netadmin) can also configure the switch to separate the 2 Interconnects from one another (called partitioning when using Infiniband) - if the switch supports such features.
    A major consideration is not to make the switch, public. That typically cause a range of problems and can have a serious impact on an Interconnect. But using 2 private networks on the same infrastructure should not have the same problems - if configured and implemented correctly.

  • Can I use the same iTunes for two iPods

    Hey guys I wanted to ask if it is possible to use the same itunes for two ipods. I have an ipod touch 4g and ipod shuffle. would music be erased if I did  or would their be any problem if I do so. Thanks in advance

    No problems if you do it right. See:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • How do I use the same profile for two users on the same computer

    I use my laptop both at home and at work. And in each venue I use a different user log on. But I wish to have firefox use the same profile for each user log on. How can I get firefox to point to the same profile for each user?

    Note that only one user (Firefox instance) can use a profile folder at the time, so if you would switch the Windows user to another account then you would first have to close Firefox.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Bypassing_the_Profile_Manager

  • Comparing SQL data in the same table for two different dates

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Hello,
    We have a batch scheduling tool that automatically runs Oracle jobs and when it runs the jobs it stores a record from the instance in a table. I am trying to write a query that pulls up all of the jobs that ran today and compares them with what ran on the same day last week to find out what jobs didnt run today. So far I have the below but I can't get it to return anything. I am using Toad for this
    select *
    from xxcar_abat_instances
    where trunc(to_date(start_datetime)) = trunc(sysdate-7)
      and completion_status = 'Success'
    AND NOT EXISTS
      (select script_name
        from xxcar_abat_instances
       where trunc(to_date(start_datetime)) = trunc(sysdate)
         and completion_status = 'Success')Thank you

    Hi,
    964188 wrote:
    It is a date
    Such as
    10/31/2012 11:55:03 PMThen, as Hoek says, you don't want TO_DATE. For example:
    WHERE   TRUNC (start_datetime) = TRUNC (SYSDATE - 7) or the more efficient
    WHERE   start_datetime >= TRUNC (SYSDATE - 7)
    AND     start_datetime <  TRUNC (SYSDATE - 6)Also, it doesn't look like the EXISTS sub-query is corelated to the main query. That's almost certainly a mistake.
    If you're still having trouble, post your revised query, a little sample data (CREATE TABLE and INSERT statements). Point out where that query is givimg the wrong results, and explain how to get te right results.
    See the forum FAQ {message:id=9360002}

  • I have apps on my old I phone which I now use as an I pod touch.   I want to use my aps on both my new and old I phones.  How do I use the same aps for two pieces of equipment?

    Can anyone help?

    You can sync as many ipods/iphones as you like to one library/computer/account.
    open itunes
    plug in one device
    choose the apps to sync from the apps tab
    sync
    unplug device
    Do the same for the other device(s).

  • Can i load two different itunes on the same computer for two different ipods?

    Can I load two different itunes on my computer for two different ipods?  Or how can I get it so that when I click on itunes, only my songs come up and not my wifes?  And the same for her.

    Yes.  The simplest way is to have separate Windows accounts for each user.  When either user runs iTunes, he/she will have a separate library with distinct content, playlists, etc., and can sync individual iDevices as needed.

  • How can I use the same contacts for two users

    MY wife and I are using the same account. I want to give her a seperate log in account (user). All is working fine excempt for "contacts". These are at the moment empty. How can I get our contacts also in her new contact list.
    Are there any other things I should also look for, in executing this exercise

    Hi Iemke Kuijper!
    I have two articles for you that will help you achieve this goal. First, here is an article on exporting your contacts files and importing them:
    Contacts: Export and import your contacts
    http://support.apple.com/kb/PH11586
    This next article will help you get the contacts file from your user account into your wife’s user account:
    OS X Mountain Lion: Share files with others who use your computer
    http://support.apple.com/kb/PH10636
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Service Registry: Publish the same service for two different business syst.

    Hello all,
    i am trying to publish a webservice in the Service Registry of a PI 7.1 EHP1 and i'm facing a problem. I have configured two Business Systems that use the same Service Interface, let's say Dev and Qua systems. So, this two business systems can be senders of the webservice. I have been able to publish the first Sender Agreement properly, but when i try to publish the second Sender Agreement as the service is already publish i get the following error:
    One service definition with the same name 'SI_I015_EneGISDeviceLocationServicesInternalMessage_In(urn:enemalta.com.mt:iubs:integrations)' found; do you want to delete this object from the Services Registry and continue publishing?
    I've been told that this error might be a permission problem but the user i am using has all the permissions required. Does anyone know how to solve this issue?
    Thank you very much in advance!
    Roger Allué i Vall

    Hi Roger,
    Is that problem solved for you?
    I am looking for inputs on a similar issue here. I need to have a single service but with two different endpoints (for two sender business systems) published in SR.
    Thanks,
    Marz

  • Do you set up two itunes accounts on the same computer for two different people

    I have an ipod and my girlfriend has an iphone. We have one computer and when we fire up itunes it always thinks it was the last one that linked. We have different tastes and we do not want to synch the same tracks. How do we set up and migrate between two different itunes ?
    Thanks, Sorry if its a basic question but it is driving us crazy

    How to use multiple iPods, iPads, or iPhones with one computer

  • HT204053 How do I use the same email for two different apple IDs?

    I have inadvertently created two different Apple IDs throughout the years but now need my most recent one to use my email, but still want access to my old apple ID (if I can find it). The old apple ID has priority (the new one is not allowed to verify my email as it is linked to my old ID) with that email - can someone help me have the two IDs linked to the same email?
    Thank you

    AFAIK this is Not Possible. Each ID requires a Unique address
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • Home Sharing of iTunes on the same machine between two accounts

    So, is it possible to share itunes purchases between seperate login accounts on the same computer?
    Would like my wife to be able to access music while she is logged in on her side.
    Any help would be appreciated.
    R/
    Wm

    Here's an Apple article that covers the subject:
    http://support.apple.com/kb/ht1203
    Regards,
    Captfred

  • I need to be able to use Thunderbird on the same PC for two different people.

    We have a main desk computer that my Parter and I will be using at different times. Can I create two shortcuts on my screen that let's us access email and calendar tasks?
    I would like us to have our own login for privacy with emails, but be able to share tasks and calendar events if possible.
    So confused on how to do this, any help would be appreciated.
    Thanks

    In short, yes.
    However, I would always advocate having a separate User Account for each user. Modern Operating Systems offer common folders for work that needs to be shared. Do this so you each have your own Windows login, and you can set up a separate Thunderbird profile for each user, and you'll each have your own private workspace too.
    If you really don't want to use the facilities offered by your Operating System for support of multiple users, and prefer to share a login, then it's more complicated. You can use Thunderbird's profile manager to create multiple independent profiles, that is, one each for you and your partner. Then if you open Thunderbird via its profile manager, you can select the appropriate profile.
    https://support.mozilla.org/en-US/kb/using-multiple-profiles?esab=a&s=multiple+profiles+&r=0&as=s
    That's rather clumsy, and I'd want to put in a little more effort and create a link or shortcut for each user that selected the appropriate profile automatically - so this is the "yes" to the question as you posed it.
    Thunderbird doesn't share data between profiles easily. My choice for a shared calendar would be to set one up "in the cloud" and have both Thunderbird profiles subscribe to it. Google Calendar is quite straightforward to set up and use. Other calendars, perhaps provided by your ISP or mail provider may work equally well.

  • Can I use the same database for two WSUS servers?

    Hi Folks,
    Our HQ WSUS database is on a dedicated SQL Server 2008 in HQ. We are planning to set up a replica WSUS server in a branch office (centralized management mode). But we want to check the WSUS reports (e.g. computer/update status) only from the HQ instead
    of each branch. I have two questions.
    I should not install the SQL Server in Branch, and specify the HQ SQL Server as the Branch WSUS server database, right? In this case, I can check WSUS reports of both HQ and Branch from HQ, right?
    Can I use a specific update source (e.g. Microsoft Update or other WSUS upsteam servers) for Branch WSUS server instead of HQ WSUS server even it's a replica WSUS server?
    Thanks,
    高麻雀

    Regarding to "If the branch office server is intended to be a replica server, then it must be configured with the HQ WSUS server as the update source", does it mean my branch WSUS server is only able to get the patches from my HQ WSUS server?
    That is the fundamental premise of a downstream replica server.
    Isn't it able to get the patches from Microsoft Update or other WSUS servers?
    Well, here we may have a terminology challenge... so let me take a step back and answer this way:
    A WSUS server obtains *updates* via the process of synchronization. Updates can be synchronized from one of two sources: Microsoft, or an Upstream WSUS Server.
    Additionally, updates have a concept of APPROVAL. Approvals can be obtained from an Upstream WSUS Server when the server is configured as a REPLICA server; otherwise, Approvals are created at each individual WSUS server.
    Finally, updates have FILES. Files can be obtained from Microsoft or the Upstream WSUS server, and this configuration option is absolutely independent of where the updates and/or approvals come from.
    Please note: All of this is exhaustively documented and discussed in the
    WSUS Deployment Guide. I would highly recommend reading it cover-to-cover.
    In this case, there will a a lot of bandwith cost on the leased line which is only 2Mbps and intended for critical business like VDI/ERP applications.
    A few thoughts here...
    First a 2Mb/sec link is more than adequate to support a WSUS server downloading update files from an Upstream WSUS Server.
    Second, using BITS you can configure when those files are transferred as well as how much of that 2Mb/sec is made available to the WSUS downstream server.
    Third... Patch Management IS a critical business function. Do not let it be treated as a step-child or the VDI/ERP functionally will be irrelevant.
    "after installing the replica server in the branch office, on the upstream server enable the option for Reporting Rollup", will the report information (computer/update status) be recorded in the HQ SQL Server?
    The detail reporting data for the clients of the downstream replica servers is physically stored in the upstream server's database.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Maybe you are looking for

  • Monitor enters power save mode on start up

    PC keeps crashing in game, after it crashes it shows the message DVI power save mode on my monitor. Sometimes it even crashes on boot. It all started when i tried to update my bios with live update(yes I know wrong choice, after I did this is read al

  • Report on Remote connections

    Hi there, I am scanning through zcc.log to check number of remote sessions we have. Is there any report available to let me know how many session for a specific date and when the sessions were and for how long. ie. 50 remote session a day average of

  • Anonymous User Help

    I have configured an anonymous user and created a new framework page to display the content. When the page first loads, the correct framework page, theme, and content appear. However, if I click on one of the content tabs (even if it is the first one

  • File format for newline character

    Hi there, I have a scenario to do. From IDOC to flat file. I receive a number of idocs and must convert them into a flat file. Each idoc must start on a new line. Each line represents a new record. I have done this and it works fine. But now the syst

  • Spam email from Skype?

    I am a long-time Skype user. Yesterday I started receiving email from what appears to be Skype from its [email protected] address. The email is fishy for several reasons: It is a welcome email addressed to Skype user "abdullah434771" but that is not