Time based events

Hi there,
I'm new to LabView and I am unable to find a solution to the problem below.
I have a VI which takes a number from a control, when the number control changes, the voltage on the appropriate channel changes and it works fine however. it is for an experiment which needs the voltage to change at irregular intervals, any idea how I could automate this? My own thoughts were to read 2 columns off a spreadsheet, one containing the seconds into execution, the other containing the voltage to change to when that time elapses. Below is a simple example of data. There could also be any number rows, not just 4. 
Example:
Seconds| Voltage
5           | 7
7           | 6
11         | 8
406       | 4
A steer in the right direction would be much appreciated. 
Thanks

That image is actually a VI Snippet.  Here's the VI saved back to 8.6.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
Attachments:
Untitled 1.vi ‏25 KB

Similar Messages

  • To trigger Time-based events upon user's click

    Hi,
    I have series of images to be pop up when the audio is played. However this is to be triggered when user clicks on a button.
    Please advise.
    Thank you.
    Irene

    Not sure that I understand your question correctly, but have a look at the example in this blog post: Blog after Posterous? - ClickClick - Captivate blog
    These would be my steps:
    for the introductory audio (before first click): add it as slide audio
    for the audio associated with an image: attach it as object audio to the image
    follow the work flow described in the blog post: whenever an image appears audio will play.
    There is one drawback: if the user clicks again before the audio clip ends on the previous image, both audio clips will play at the same time. To avoid that:
    don't attach the audio to the image but
    add the statement 'Play ....' to the (shared or advanced) action that is triggered by the click
    contrary to object audio, whenever this statement 'Play....' is executed, any previous audio will be stopped.
    More info: Audio Objects: Control them! - Captivate blog
    Lilybiri

  • Time based event creation

    I am working on an application in Oracle Apex.  I have a situation in which I need to send a notification email to certain users , soon after the record creation time passes two hours . How do accomplish this.?
    Can someone suggest the best possible method
    George

    Hi George,
    gkthomas wrote:
    I am working on an application in Oracle Apex.  I have a situation in which I need to send a notification email to certain users , soon after the record creation time passes two hours . How do accomplish this.?
    Can someone suggest the best possible method
    George
    You can use DBMS_SCHEDULAR .
    Build you program that contains the logic of sending notification.
    and then
    1. create schedule to set the interval when you want to run your job for exampel : every 5mins, 10 mins, hour , daily etc.
    begin
    -- run every hour, every day
    dbms_scheduler.create_schedule(
    schedule_name  => 'INTERVAL_EVERY_HOUR',
      start_date    => trunc(sysdate)+18/24,
      repeat_interval => 'freq=HOURLY;interval=1',
      comments    => 'Runtime: Every day every hour');
    end;
    2. Create program to call a procedure which contains your notification logic
    begin
    -- Call a procedure of a database package
    dbms_scheduler.create_program
    (program_name=> 'PROG_SENDING_NOTIFICATION'
    program_type=> 'STORED_PROCEDURE',
    program_action=> 'pkg_collect_data.prc_send_notification',
    enabled=>true,
    comments=>'Procedure to send notification'
    end;
    3. create job
    begin
    -- Connect both dbms_scheduler parts by creating the final job
    dbms_scheduler.create_job
    (job_name => 'JOB_COLLECT_SESS_DATA',
      program_name=> 'PROG_SENDING_NOTIFICATION',
      schedule_name=>'INTERVAL_EVERY_HOUR',
      enabled=>true,
      auto_drop=>false,
      comments=>'Job to send notification every  hours');
    end;
    Check this link : http://www.apex-at-work.com/2009/06/dbmsscheduler-examples.html
    Hope this helps you,
    Regards,
    Jitendra

  • Time and event-based jobs

    Jobs scheduled based on time in DBMS_SCHEDULER. Can we changed to event-based without dropping the job?
    Thanks in advance.

    Hi,
    You can try this :
    - disable the job
    - set event_spec to be NULL for the job e.g.
    exec dbms_scheduler.set_attribute_null('j1','event_spec')
    - use set_attribute to set your time-based schedule
    - re-enable the job
    This should work.
    Hope this helps,
    Ravi.

  • Need help on Implementing timer based JTable update events

    greetings,
    i am writing a trap receiver that placed the entries in a jtable, and i am having a problem where the entires can arrive so fast they swamp the event thread. the solution i believe is to write a custom model that calls the table update events on timer based intervals. i have made an attempt at this, but cannot get it to work. has anyone done this, or possibly tell me where i have gon off the tracks?
    thanks in advance,
    here is my class:
    import javax.swing.event.TableModelEvent;
    import javax.swing.table.DefaultTableModel;
    public class TimerUpdateTableModel extends DefaultTableModel implements Runnable{
         Thread runner;
           int rowCtr = 0;
         public TimerUpdateTableModel(int initialDelay) {
             Thread runner = new Thread(this);
             runner.start();
         public void fireTableDataChanged(){
              //super.fireTableDataChanged();
         public void fireTableStructureChanged(){
              //super.fireTableStructureChanged();
         public void fireTableRowsInserted2(int firstRow,
                int lastRow){
              //super.fireTableRowsInserted(firstRow, lastRow);
         public void fireTableRowsInserted(int firstRow,
                int lastRow){
              //super.fireTableRowsInserted(firstRow, lastRow);
         public void fireTableRowsUpdated(int firstRow,
                int lastRow){
              //super.fireTableRowsUpdated(firstRow, lastRow);
         public void fireTableRowsDeleted(int firstRow,
                int lastRow){
              //super.fireTableRowsDeleted(firstRow, lastRow);
         public void fireTableCellUpdated(int row,
                int column){
              //super.fireTableCellUpdated(row, column);
         public void fireTableChanged(TableModelEvent e){
              //super.fireTableChanged(e);
         public void run() {
              while (true) {
                   try{
                        rowCtr = TimerUpdateTableModel.this.getRowCount();
                        System.out.println(rowCtr + "    " + (TimerUpdateTableModel.this.getRowCount() - 1));
                        //super.fireTableRowsInserted(0, TimerUpdateTableModel.this.getRowCount() - 1);
                        //super.fireTableDataChanged();
                        int nRowCount = getRowCount();
                        super.fireTableChanged (new TableModelEvent (TimerUpdateTableModel.this, 0,
                            nRowCount - 1,
                            TableModelEvent.ALL_COLUMNS,
                            TableModelEvent.UPDATE));
                   }catch(Exception e){
                        e.printStackTrace();
                   try {
                        Thread.sleep(5000);
                   } catch (InterruptedException ie) {
                   }catch(Exception e){
                        e.printStackTrace();
                   System.out.println("done");
    }

    i am having a problem where the entires can arrive so fast they swamp the event thread
    super.fireTableChanged Well, if you are using the above code every time you receive an update, then I suspect you would be having problems. The fireTableChange() event is an expensive method. It means you need to recreate the TableColumnModel and repaint the entire table every time.
    You should simply be using method like model.addRow(...), model.setValueAt(...) to make updates to the table.

  • File based event not triggering

    We are facing issue in file based event  scheduling.
    Files are getting created on the server path.But the event server is not  trigerring the event upon file creation.
    File Path is also correct.
    I checked the event server metrics ,In List of Monitored files,Last Notified Time is blank.
    This was all working fine since last 3 months.
    Recently we had some antivirus upgrades on server,after that this problem has started.
    I can read write and create files on the server path.But event is not getting fired.
    Server Details
    BO 3.1 FP 3.5
    Edited by: Rizwan Aamir on May 14, 2011 1:39 PM
    Edited by: Rizwan Aamir on May 14, 2011 1:40 PM

    I checked abot the userID used to restart SIA from Server Team.
    They Said the userid is not a NT id its a BO user ID Admininistrator account .
    Is it True that LoginID used to restart the SIA is a BO User ID and not a NT login ID.

  • Time Based Workflow - how to make it work?

    Hello,
    Has anyone successfully built a Time Based Workflow? Could you share your examples?
    For me it does not work properly.
    I have tried to set up 2 workflows: on Opportunity Close Date and Account Contract Expiration Date.
    - Account Contract Expiration Date: I want an Account Owner to get an email notification exactly 6 months before the contract with his client expires. However - the email is triggered each time the record is modified - so I have seen in the workflow monitor that users on the date of contract expiration - 180 days will receive as many emails as many times they modified the record! Is there a way to avoid this situation?
    - Opportunity Close Date - I want to send an email to Opportunity Owner's Manager - 10 days after the opportunity was closed. However - there will be the same issue as above + the wait action is not working with a PRE function.
    Please let me know what you think and if you have already built a Time Based Workflow that works correctly.
    Edited by: MagdaR on May 18, 2010 1:57 AM

    Let's start with the workflow for Opty Close Date.
    There are a lot of ways to do this, so you'll need to evaluate which way is best for your case, but the basics are to check to ensure that the opty is closed for the first time, then set the flag. In order to accomodate for the opty being closed when it is created, you will have to consider a post default for the flag in addition to the workflow.
    In this case, you could create a workflow on Opty using the before modified record saved trigger event. In the Rule Condition, have the workflow check for a closed opty and if the status changed to closed during this modification. There are a number of options to validate this, including sales stage = Closed/Won or Lost, Closed Date is populated for the first time, Status is closed. In any case, just validate that the opty was closed for the first time using the PRE Function (i.e., PRE(Closed Date) is null and PRE(Closed Date)<>Closed Date). When your condition is met, set a flag that will trigger the event. You could also add a date that the wf conditions were met the first time, to ensure that you track when the rule was originally triggered.
    The next step is to have a workflow that unsets the flag if the conditions are not met. Set the order on this one to follow the rule above.
    The last rule is the wait/email rule and it uses the when modified record saved event. This rule triggers on the flag being checked, then waits to send the email.
    Test this and validate that it will work for your purposes. Based on this workflow, you should be able to create the other one, and I can help if you have any issues.
    Good Luck,
    Thom

  • 1ms Time Loop / Event Trigger from Counter

    Hi.  I'm pretty new to LabView so I'm am hoping this is an easy question:
    I need to read the pulse signal from some reluctors (toothed wheels that pulse a signal with each passing tooth).  The amplitude of each pulse is above 2.2V so I was planning on using TTL counters.
    I need to record the status of 5 counters with each increment of one of the counters  For the RPM and tooth count, I can do this with a 1ms timed loop.
    Question:  Can windows successfully give a 1ms (accurate) timed loop?  I know this depends on how much I am doing inside the loop but, for now, I just need to read 5 counters and store the data with a timestamp.
    Is it possible to make a counter throw an event?  If the counter is incrememented, can LabView be notified to then go off and handle a block of code?
    Thanks for any help you can offer!

    I assume you also have an analog input card for the chasis?
    So, it's probably possible to get 1ms timing with software timed loops, however based on my quick check of the manual for your chasis
    http://www.ni.com/pdf/manuals/372780c.pdf (see section 2-2 for example)
    You can use an Analog Comparison Event or a PFI channel to trigger a sample (i.e. your generated pulse is the sample clock). This could allow you to use your pulse to trigger an analog sample. Now, this doesn't get you timing information (it just gets you the value of the analog input at the time the event occurs). To get a time, you can use the counters on the digital card in the same way. You have the counters be driven by a fast sample, on-board clock. Then you can use your pulse events again to sample that clock. So each pulse, you get one analog voltage sample and one time sample from the counter. The resolution on this counter will be great, depending on how fast your counters can be driven (sometimes NI counters can actually be driven faster than the fastest available clock on the card or chasis). 
    Or you can just do the software loop.

  • Time based animation

    Hello,
    I'm looking for opinions on which is the best way to animate your game for andoid and/or iOS with time based code.
    I have some knowledge of the subject, but have not tested the various methods on my mobile device.
    Some options i know of would be using an ENTER_FRAME event ,calculate delta-time, and used either a fixed or variable time step. (Or perhaps variable but with a limmit) Others have mentioned doing the same, but with a Timer calling the function rather than ENTER_FRAME.
    Also i have read of setInterval() as an option. Some reccomend to updateAfterEvent(), some dont.
    I think i may remember it was reccomended not to use timers with flash mobile??? I might be wrong about that.
    thanks for any input.

    What's wrong with a tweening engine like TweenLite / TweenMax... it's what I use.

  • Time based workflow

    There is a field "Delivery date" in oppty & we want to send a reminder mail 10 days before delivery date once that oppty is closed/won.
    So, how can i write that expression?

    Thanks but i know that i'll have to write time based workflow,however there is provision of wait for +10 days after some event happens & not -10 days.
    Ketki

  • Time Based Workflow - update existing activities?

    Hi, I've added a checkbox field to my activities template, and wondered if it is possible to update this field on existing >124K activity records using a time based workflow. <br><br> Has anyone come across this requirement, or have any thoughts on how to solve the issue? <br><br> Thanking you in advance for assistance.
    Edited by: Sherry10602332 on Oct 11, 2010 12:07 PM

    Hello SKJ
    Your requirement is to send an email notification to an owner if the Opportunity remains with sales Stage = "Inquiry" for more than 90 days.
    New Record Saved.
    This means even the opportunity can be modified but the sales stage should not change. For e.g. when i create a new record, I can have the sales stage as "Inquiry" and save. At a later date I can modify the description of the opportunity (this would change the modified date), but the sales stage remains at Inquiry. Thus the notification should go 90 days after the sales stage has been set and not since last modified date. Keeping this in mind the condition the rule condition "Rule Condition : Sales stage = "Inquiry" and modified date = Created date" needs to be modified as Sales stage = "Inquiry".
    Coming to Modified Condition:
    Trigger Event - When Modified Record Saved
    Rule Condition : (PRE('<SalesStage>')<>[<SalesStage>] AND [<SalesStage>]="Inquiry") OR ([<SalesStage>]="Inquiry")
    Wait 90 Days
    Revaluate Conditon = 'Y'
    Action Send Email Notification
    Explanation
    When you set the sales Stage as "Inquiry", the condition (PRE('<SalesStage>')<>[<SalesStage>] AND [<SalesStage>]="Inquiry") would be satissfied and then the workflow would trigger. After 90 days if the sales stage is still in "Inquiry", the second part of the condition "[<SalesStage>]="Inquiry" would be satisfied and the email notification would be sent. If the sales stage has been changed to other sales stage, then the condition would fail and the notification would not be sent.
    Regards,
    Paul Swarnapandian

  • Time-based access to WLAN/building for specific users using WCS/ACS

    Here's our situation:
    WCS: 7.0.172.0
    ACS: 4.2(1)
    MSE: 6.0.75.0
    For an hour or two each day during an event, we're trying to figure out how to prevent students from connecting to the wireless in a particular building.
    All students are in the same WLAN. Everybody on campus uses the same SSID. We dynamically assign users to WLANs based on who they are through ACS. In addition to 802.1x authentication, MAC address authentication is performed by way of ACS to our in-house NAC system, where all students have registered their computers with us. This currently uses the External ODBC Database option in ACS.
    Our contraints:
    - We want them to be able to access wireless at other campus areas during this time, just not in this one building.
    - Faculty/Staff needs to use the wireless in that building during that time. This prevents me from simply shutting down the radios temporarily.
    Has anybody attempted anything similar? Anybody have any thoughts or ideas?
    Ethan A. Cooper
    Network Administrator
    LeTourneau University

    Currently, IP and IPX extended access lists are the only functions that can use time ranges. The time range allows the network administrator to define when the permit or deny statements in the access list are in effect. Prior to this feature, access list statements were always in effect once they were applied. Both named or numbered access lists can reference a time range.
    For the further description following URL for the Time-Based Access Lists will help you.
    http://www.cisco.com/en/US/docs/ios/12_0t/12_0t1/feature/guide/timerang.html#wp10236
    I hope it may help you.

  • Time Based Service Request Escalation

    HI all
    we want to know, how to create time based service request escalation in Siebel CRM On Demand?
    thanks in advance

    What you can do within the application is have a report/dashboard to highlight the SRs that are over their planned SLA, but the user will have to be in the application to see it.
    If you want a time based WF, it currently is not available within R16, but you can write a relatively simple WS in combination with an integration event to solve this issue.

  • HT200196 iCal reminders are clogging up my computers, iPads and iPhone.  When I view the Calendar list in iCal, it seems it has added a new calendar every time an event is added.  I have a calendar list that has grown to over 100.  How do I remedy this?

    My laptop, iPad, and iPhone are being clogged by repeated iCal alerts.  Every time an event is added, it seems another Calendar is also added.  When I view the Calendar list in iCal, there are over 100...and the number is growing.  They can not be deleted with a simple "Select all" or "Delete All" and, when deleted individually, the list quickly grows to huge numbers again rapidly.  How do I keep this from happening and eliminate the excessive number of calendars?

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Sales orders in TDMS company/time based reduction  are outside the scope

    Guys,
    I have had some issues with TDMS wheras it didn't handle company codes without plants very well. That was fixed by SAP. But I have another problem now. If I do a company code and time based reduction, It doesn't seem to affect my sales orders in VBAK/VBUK as I would have expected. I was hoping it would only copy sales orders across that have a plant which is assigned to a company code that was specified in the company code based reduction scenario. That doesn't seem to be the case.
    VBAK is now about one third of the size of the original table (number of records). But I see no logic behind the reduction. I can clearly see plenty of sales documents that have a time stamp way back from what I specified in my copy procedure and I can see others that have plant entries that should have been excluded from the copy as they do belong to different company codes than the ones I specified.
    I was under the impression that TDMS would sort out the correct sales orders for me but somehow that doesn't seem to be happening. I have to investigate further as to what exactly it did bring across but just by looking at what's in the target system I can see plenty of "wrong" entries in there either with a date outside the scope or with a plant outside the scope.
    I can also see that at least the first 10'000 entries in VBAK in the target system have a valid from and to date of 00.00.0000 which could explain why the time based reduction didn't work?
    Did you have similar experiences with your copies? Do I have to do a more detailed reduction such as specifying tables/fields and values?
    Thanks for any suggestions
    Stefan
    Edited by: Stefan Sinzig on Oct 3, 2011 4:57 AM

    The reduction itself is not based on the date when the order was created but the logic enhances it to invoices and offers, basically the complete update process.
    If you see data that definitely shouldn't be there I'd open an OSS call and let the support check what's wrong.
    Markus

Maybe you are looking for