Master VI Timer

I have set up an instrument control project using the producer-consumer architecture. Now I would like to implement a "Master Timer" VI that can be started, stopped, and reset using the P-C VI. Furthermore, I would like to display the seconds and minutes from the sub-VI on the front panel of the P-C VI. I need the timer to start based on an event from the P-C VI (a button press), and stop on an event from the P-C VI (another button press). I have attached the timer (sub-VI) that I would like to use - it is fairly simple. Does anyone have any suggestions on how to implement this architecture as described?
Attachments:
Timer.vi ‏10 KB

Hey Plato,
It is not entirely clear what you were trying to do in your VI, but:
It was not a producer consumer architecture (check here for how to implement that architecture);
You did not attach your global VI so I am not sure of the exact output you are looking for;
I have attached something that may be what you are looking for.  It uses a simple notifier triggered by an event in the producer loop to tell the consumer loop to start the timer.  The consumer loop will run at a rate of 10 Hz so that it does not have to wait for notification to calculate the time passed since the timing start was triggered.  You close the VI in the traditional Windows manner which destroys the notifier and results in an error in the consumer loop which triggers a graceful shutdown there.
Anyway, let me know if this is kind of what you are looking for.  Cheers, Matt
Matt Richardson
Certified LabVIEW Developer
MSR Consulting, LLC
Attachments:
timing.vi ‏15 KB

Similar Messages

  • Asset Master Record - Time Dependent tab - locations to be created

    Hi Guru's
    Hot to create the new locations in the Asset Master Record - time dependent tab.
    Some locations descriptions I need to change.
    Please help me.
    Regards
    Jenny Connes

    Hi,
    change your location description at following SPRO location:
    SPRO->Enterprise Structure -> Definition->Logistic - General ->Define Location
    Thanks,
    Dharmesh

  • Frequent postfix "master exit time has arrived" error messages in the log

    I'm seeing this in my mail.log every minute:
    Dec 1 12:27:46 Executor postfix/master[6394]: master exit time has arrived
    Dec 1 12:27:46 Executor postfix/master[6399]: daemon started -- version 2.5.5, configuration /etc/postfix
    Dec 1 12:28:46 Executor postfix/master[6399]: master exit time has arrived
    Dec 1 12:28:46 Executor postfix/master[6406]: daemon started -- version 2.5.5, configuration /etc/postfix
    Dec 1 12:29:46 Executor postfix/master[6406]: master exit time has arrived
    Dec 1 12:29:46 Executor postfix/master[6409]: daemon started -- version 2.5.5, configuration /etc/postfix
    This does not seem to be normal behavior. Is something misconfigured here? How can I fix this?

    just experienced this and found your thread while looking for an answer.
    do you have any thing in /var/spool/postfix/maildrop ? if there is something there, then launchd will keep launching postfix.
    (ls /var/spool/postfix/maildrop)
    i had a file there, and the permissions were wrong for it to process. so it kept launching, but never was able to clear the folder.
    i did a chmod 775 on that document ( something like: sudo chmod 755 /var/spool/postfix/maildrop/* ), and that has fixed it after years of issues.
    i'm not sure it's the best answer, but worked for me.
    Message was edited by: neuralstatic
    btw, i had tried to disable the launchd entry for it, but that was no help.

  • Customer master creation time

    Hi
    where can i find customer master creation time ?
    regards

    In XD02/XD03 transaction code
    Extras->Administrative data(Shift + F8)

  • Master data time dependent

    hi bwers,
    Can any expert tell me, Under what reporting senarios do we need to matintain master data time-dependent

    Hi,
    You do this when you want to maintain the history. Like for 0COSTCENTER master data, most of it is time dependant. As an example, the person responsible for a costcenter...you want to know who it is and also who it was earlier. This can only be done with time dependant master data as it adds the from and to fields to the data.
    Hope this helps...

  • Master data time dependency

    Hi if i put the manager as employee in cube then we are loading the data from flat file full load then it will overwrite the manager name in cube for last month
    say i have manager name john for month 08
    i load the trans data from flat file it will take it
    now next manager name john now if i load the data it will overwrite, user want to maintain the history so that if i run the query for month 08 it should show me manager name john and if i run the query for month 09 it should show me manager name john. please help how to resolve this
    since making too many time dependent master data will over load the system so user do not want that. also is there any way to load delta from flat file in bw version 3.0
    i will reward 100% point if anybody can clarify the approach to make this happen
    soniya

    Hi,
    If you set the master data attribute as "time dependent" it will track such changes as well as validity dates.
    Of course, you would not make even the majority of master data time-dependent, but in cases where modeling calls for it (such as this), it probably should be utilized.  It will not "overload the system".
    Please be clear - while master data InfoObjects contain over-write functionality, an InfoCube does not.  Data loaded into a cube simply is an "insert".
    For your generation of delta, note that the ODS object contains a change log mechanism.  This change log can generate a "delta" from a flat file load or any kind of load.  This delta can then be used in other data loads sourced from the change log.
    Also, you might consider a technique to load a complete history of master data into an ODS object.  You can model an ODS without any key figures, but be aware the defauly will be "update", where the only complete history is in the change log.  You could implement a "technical key" in update rules, so that each record gets a unique identifier, preventing over-write.  Alternatively, if you are on BI in SAP NetWeaver 2004s, you can use a write-optimized DataStore object, which automatically assigns a unique technical key to each record (so that you have complete history), but has no change log.
    Thanks for any points you choose to assign -
    Ron Silberstein
    SAP

  • Query Designer Master data Time Dependent

    Hello
    im with this problem
    i have master data:
    material/till/since/price/description
    1/14.01.2010/01.01.1000/20/Material1-old
    1/31.12.2010/13.01.2010/15/Material-new
    cube:
    material/date/quantity
    1/01.01.2010/5
    1/15.01.2010/20
    in my querty designer, i put the 0calday with selection options
    when i insert for example 01.01.2010
    its couting the "material-new" ( 15*5) it shoudlnt
    it should calculate the old one. (20*5)
    how can i fix it?
    regards,

    Hi Amit,
    At "Query properties" screen, you can define a "Key date".  It can be fixed or it can be calculated from a user-input variable.  If you do not specify one, the default key date value is the date on which the query is executed (today).
    For time-dependent data, the key date determines the time for which the data is selected (material price, in your case).  However, there is only one key date per query.  You can't make it dynamic depending on the value of 0CALDAY in every transactional data record.
    Perhaps you might consider the option of adding 0AMOUNT to your InfoCube, and precalculate the formula quantity*price using an ABAP routine which reads price from InfoObject Q table, filtering by OBJVERS='A' and DATETO/DATEFROM=0CALDAY.
    I hope this helps you.
    Regards,
    Maximiliano

  • Master data - time dependent - reduce volume..

    Hello,
    I have following BW 3.5 scenario: InfoObject which is marked as data target. In the object definition I have different attributes. One of this attribute is indicated as time dependent.
    The InfoObject is filled via two update rules. In this two update rules the valid "from date" is filled with each load (monthly) from system date. The "to date" is fix value.
    I have following example:
    Date to              Date from           Used (U) / New (N)
    25.05.2008     01.01.1000          
    10.06.2008     26.05.2008          N
    15.07.2008     11.06.2008                  N
    07.04.2009     16.07.2008          N
    15.04.2009     08.04.2009          N
    31.12.9999     16.04.2009          N
    So with each full load I have an additional record.
    Is there a standard function / module that loops over my time dependent table (q-table) and only if there is a change (e.g. from N to U) an additional record is created.
    Any idea how to create a routine. How should coding look like?
    Any input is welcome.
    Thanks in advance.
    Edited by: starwars2010 on Apr 6, 2011 3:11 PM

    Hi,
    You do this when you want to maintain the history. Like for 0COSTCENTER master data, most of it is time dependant. As an example, the person responsible for a costcenter...you want to know who it is and also who it was earlier. This can only be done with time dependant master data as it adds the from and to fields to the data.
    Hope this helps...

  • Activating Master data time out problem

    Dear all,
    when i try to activate master data, it gives error message "time out" . in which tcode i can increase tha time out duration?
    Thanks

    Hi John,
    Please check the thread below:
    Activate time-dep. master data (0EMPLOYEE)
    This also  suggests to run the master data activation program in background, This will solve your issue,
    -Vikram

  • How to find the customer master creation time?

    Hi All,
    I want to know the time when created the CUSTOMER MASTER RECORD.
    Is there any SAP TABLE for this purpose?
    Thanks in advance.
    Nanan

    Hi,
    Go to XD03 --> Enter your Customer number
    Then go to Enviroment-->Multiple display
    You will display all changes of this customer.
    Execute --> You can see date and time of creation
    Or Use OV51 is the same
    Rgds

  • Performance with Referenced Master on Time Capsule vs. Attached Hard Drive

    My managed master library on my MBP is getting too big and I am running out of hard drive space.  I am considering going to a "hybrid" situation, where all projects that have already been edited and stored in folders can be relocated to referenced.
    Considering my options, I am wondering how Aperture will perform with referenced masters stored on the networked Time Capsule drive, as opposed to having to plug in a USB3 or Thunderbolt hard drive every time I want to re-edit those old photos (which is not very often).
    I came across this article, which says to use a locally mounted drive:
    http://support.apple.com/kb/TS3252
    However, I am not sure exactly what that means.  When I connect to the Time Capsule, it does show up as a mounted drive with a "data" folder that I can interact and store things on.  Not sure if this counts as "local", but from my experience it seems to move pretty quick.
    Does anyone have any experience storing the referenced masters on a Time Capsule.  My plan would then be to periodically back that one Time Capsule folder where all masters will be placed to a harddrive stored off-site and also set CrashPlan up to backup that one folder.  Thanks for any input... otherwise, I guess I will test it and see how it goes, since I rarely/never go back and re-edit images.

    It can be done, but you are "saving" the cost of an inexpensive external drive by accepting the cost of a convoluted administrative set-up.  IME, for one person or any organization small enough to _not_ have a dedicated IT person/staff, that is a false economy.  Typically, one of the admin tasks won't get done or won't get done right (you might need more space for back-ups on your Time Capsule, or you might forget exactly how you set up the TC drive to hold your Originals and put off moving more to it).
    Drives are inexpensive, and bargains.  For rarely loaded referenced Originals you don't _need_ anything faster than USB 2 (FW400 or any faster connection rec'd).  Additionally, if you have room on your Time Capsule for your referenced Originals, then you have room for their backup.  Put the referenced Originals on a new external drive, and back it up to Time Capsule.
    And then you don't have to worry about pulling your Originals through a network.  They will be locally mounted.
    My 2¢.
    --Kirby.

  • Postfix/master "master exite time has arrived"

    Recently I've been seeing lot's of these entries in the mail.log - every minute.
    I found an archived discussion at https://discussions.apple.com/thread/2251240?start=0&tstart=0
    Archived or not I'd like to bring it up again since in google the archived solution was the first entry and didn't provide a solution.
    I found a good explanation of what is going on here http://mykle.com/msl/?p=502
    The issue here seems to be, that the server was trying to transmit an email that took it too long - took to long = more than 60 seconds. You can change this behavior in the file /System/Library/LaunchDaemons/org.postfix.master.plist
    Convert the file to xml with sudo plutil -convert xml1 /System/Library/LaunchDaemons/org.postfix.master.plist
    edit the file - choos editor you like - the key that says "60" to something bigger (I made it 600 = 10 Minutes)
    Convert the file back to binary with sudo plutil -convert binary1 /System/Library/LaunchDaemons/org.postfix.master.plist
    Unload the plist with sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist
    Load the plist with sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist
    This worked for me - thanks to Michael?

    Good info.. thanks for posting

  • Master data time dependant attribute in query for several dates

    Hello all,
    I need to create a query to display prices for a material in different periods. 
    The user will enter a period interval.  For each period, they want to know the material price the last day of that period.
    Material price is a time-dependat attribute of material, and I created one formula variable to display it. The problem is the using the key-date of the query only works for a date, but not for severals.
    Is there any other way to do it?
    If not, the only solution I find is to have in the infoprovider the prices that I need, but I don't think this is a good practice.
    Any suggestions?
    Thanks!

    I have just seen something: in fact the created lines are:
    Key1   Compound1   fromdate    todate    attr1      attr2
    0001      L      01.01.1000      01.01.2006          <empty
    so as you can see, the right interval is created but the attributes are not up to date.
    Cheers.
    Cyril.

  • Master data Process chain running long time

    Dear SDN Team,
    PC Process Chain: General Master Data - time running is about 4.5 hours . how we can improve running time.
    There are 15-25 info objects are loading from this process chain.
    any steps to improve the performace
    thanks and kind regards,
    Lakshman Kumar G

    Hi,
    Go to the function module RSD_IOBJ_GET to find the object name of the dimension. Go to SE37 & proceed as follows.
      I_IOBJNM = 'Info Object Name'
      I_OBJVERS = 'A'
      I_BYPASS_BUFFER = 'X'
    and then Execute the FM.
    Double click on the "'E_S_VIOBJ'" and find the number in the field 'u201ENUMBRANR‟'
    and add  BIM to the number taken  from NUMBRANR.
    Goto SNRO T-Code and enter BIM+the number and edit.
    From Edit--> Set up Buffering --> Main memory, select the buffering check box and enter approx 500.
    This needs to be done for all the master and your dataload performance would improve.
    Regards,
    Mani

  • Time dependent material master data

    Hello,
    Would you please explain me how to make Material master data time dependent?
    Points will be rewarded!!
    Best Regards,
    Adeel

    Hello Siggi,
    Thanks for your respond.
    I am using BW3.5 and for 0materia there are lots of attributes and for every attributes there is a "time dependent" click. Do I have to click all of them? Can you explain the theory behind that?
    Mater data will be maintained respectively if I can change it to time- dependent.
    Thank you very much,
    Adeel

Maybe you are looking for

  • Unable to trigger my event

    dear experts,                         I need to add some extra features to title bar of my alv report.i got some documents and iam trying on that.Here in my program its displaying the newly created icon but when i click on that icon its not displayin

  • HTTP Server is not currently supported with Solaris 10

    I am having a problem to start the HTTP Server on Solaris 10 (I am installing HTTP Server as part of HTMLDB installation on Solaris 10). I had a problem to install it at first, however I've found on 'AskTom' that unsetting ORA_NLS33 helps and it did.

  • How do I put another FB icon back on my iphone?

    I removed the internet FB icon off my iphone and am now unable to figure out how to get another FB icon back on the phone....(remember its the internet not the app icon)

  • CLIENT_SEND_FAILED error code: 500, error text: Internal Server Error

    Hi, Developed Proxy <-->PI<-->JDBC SELECT scenario and getting the following error. - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">   <SAP:Category>XIServer</SAP

  • Document on XI 3.0

    Hi,   Is there any good document available on XI 3.0 (new installation) on AIX/ORACLE platform. We also have BW 3.5 and Solution Manager 3.2. I basically need something like after installation what are the things to be done by BASIS ADMIN. I already