Initiate a timer

I'm a new on programming JavaCard, and have a question about how to use the timer. I want to make an application that is running once every hour.
How do set the timer value the first time, when I don't want to use a menu? I have tried to set the timer in the installation of the applet, but I get errors, so I guess that is not possible to use the proactive handler at that time?
Please help!!!

The following should start a timer (give or take a few syntax errors):
private static final byte START_TIMER = (byte) 0x00;
private byte timerId = 1;
// Initialize the command
proHdlr.init(PRO_CMD_TIMER_MANAGEMENT, START_TIMER, DEV_ID_ME);
// add the timer id
proHdlr.appendTLV((byte)(TAG_TIMER_IDENTIFIER | TAG_SET_CR), timerId);
// add timer value
proHdlr.appendTLV((byte)(TAG_TIMER_VALUE | TAG_SET_CR), timerData, (short)0, (short)3);
// Start proactive session with the mobile
result = proHdlr.send();
With timerData being the byte[] array containing the timer time-out value.
That being said, I launch this from a menu... I actually wouldn't know where to put it by default. I suppose you could use the profile download (which really starts the applet, right?) as some sort of trigger, but this part is best answered by someone else.
Instrumental for this to work is of course that the mobile (*) supports timers, because it is the mobile who will generate the time-out event.
Jimbo.
(*) "Mobile", or more generically, the "Card Acceptance Device"

Similar Messages

  • How do you initiate idle time in Servlet?

    In my servlet there is a process doing but I want to make some timer on that process.

    gtRpr wrote:
    What are you trying to do:
    If you want to deturmin how long it took to do something then simply:
    long time = System.currentTimeMillis();
    //Do what you need to do
    time = System.currentTimeMillis() - time;
    System.out.println("It took " + time + "ms to do the above");
    Can you make this a counter?
    Like a process loader (or progress bar) for example where the time increment from single value to max values after the program has finally been processed.
    Any idea gtRpr ?

  • Time Machine: Repeated errors when backing up for the first time using a new external firewire drive

    My Iomega 500GB firewire external drive failed on me last week and I have just replaced it with an identical model. I used to use the old drive with Time Machine on my MacBook Pro running 10.5.8 with no issues, until the drive had a hardware failure and stopped spinning up, hence the replacement.
    Two days ago I tried using Time Machine for the first time with the replacement external drive. The backup failed and each subsequent backup attempt has failed since then with a different error each time. The drive cannot be ejected using Finder (Finder says disk is in use and cannot be ejected even when no processes are running except for Finder and Time Machine has been disabled), by dragging it to the dock (hangs computer which can only be fixed by a hard reboot), in Disk Utilities (drive cannot be unmounted) or in Terminal ("no such file or directory").
    The first backup attempt failed after 3 hours of "preparing" with the message "The backup was not performed because an error occured while creating backup directory".
    I tried repairing the disk in Disk Utilities and Disk Utilities said the drive was OK ("the volume Time Machine Backups appears to be OK"). I tried ejecting the drive (hard reboot of computer and disconnecting the drive), plugging it back in again and trying again.
    This time it started backing up, then failed after a few minutes with the message "an error occured while copying files to the backup volume". I had a look at the troubleshooting suggested on http://web.me.com/pondini/Time_Machine/C3.html and followed instructions. It failed again, so I did a full reset as per http://web.me.com/pondini/Time_Machine/A4.html.
    It failed again, so I tried reparing the drive again in Disk Utilities and again it said it was OK. I tried using different cables and ports (Firewire 400 instead of Firewire 800), and backups still fail.
    I have turned off anti-virus scanning (Sophos). I have tried excluding it from Spotlight but this causes an error message from Spotlight. I have tried trashing the com.apple.TimeMachine.plist file and rebooting. I have tried selecting deselecting the drive as the back up in Time Machine preferences, selecting "None", then "Stop Backing Up" then quitting preferences, rebooting, disconnecting the drive, reconnecting the drive and selecting the drive again as the backup disk in Time Machine preferences. I have tried erasing the drive completely, rebooting, and trying to back up again.
    None of these have worked. This is a brand new drive and I do not want to have to replace it again if I do not have to.
    Does anyone have any suggestions? Thank you.

    Hello, some possible clues...
    Should you click “Start New Backup”? Not yet! If you see the dialog above, your existing Time Machine backup is corrupt, and you might not be able to recover data from it. But you can save a copy of the corrupt bundle and, perhaps, extract some data from it if needed.
    Ask yourself if Time Machine has saved data you might need before deciding what to do next:
    If you are sure you won’t need anything backed up before today, click “Start New Backup” and let Time Machine do its thing.
    Otherwise, click “Back Up Later” and save a copy before letting Time Machine start a new backup. Just look for a file called “computername.sparsebundle” (for network backups) or “Backups.backupdb” (for local ones) and create a copy with a different name. You can open sparsebundle files with DiskImageMounter and browse them like any other disk. More information is available here.
    There you go. If you click “Start New Backup” when you see this dialog box, Time Machine will erase all of your old backup data and start a new bundle. It won’t be corrupt, but it will be empty.
    Note that you can manually initiate a Time Machine backup integrity check by option-clicking the “Time Machine” icon in the menu bar and selecting “Verify Backups.”
    http://blog.fosketts.net/2010/08/11/time-machine-completed-verification-backups- improve-reliability-time-machine-create-backup/
    According to This Time Machine resource   “This appears only on Snow Leopard, and started with the Time Capsule Backup Update 1.0 in mid-May of 2010.  It also seems to have been included in the 10.6.3 v1.1 update and 10.6.4.”
    So, what can you do about it?  Grin and bear it, it seems, until Apple fixes it.
    One thing you can do to make the backup take less time is to connect your machine to your Time Capsule or other backup drive via Ethernet for the duration of the initial backup.
    http://www.theinternetpatrol.com/the-dreaded-time-machine-has-completed-a-verifi cation-of-your-backups-to-improve-reliability-time-machine-must-create-a-new-ba c kup-for-you-message-and-why-you-are-seeing-it/
    Time Machine: About "Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you."...
    http://support.apple.com/kb/HT4076
    Or a different/better solution in my experiences...
    Get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Or the most expensive one & my favorite, Tri-Backup...
    http://www.tri-edre.com/english/products/tribackup.html

  • Time Machine nuking backups, starting from scratch!

    ok, i just received this warning:
    and now i't doing a backup that is slated to take more than "several hours."
    is this common? how often can i expect this?

    Hello,
    Should you click “Start New Backup”? Not yet! If you see the dialog above, your existing Time Machine backup is corrupt, and you might not be able to recover data from it. But you can save a copy of the corrupt bundle and, perhaps, extract some data from it if needed.
    Ask yourself if Time Machine has saved data you might need before deciding what to do next:
    If you are sure you won’t need anything backed up before today, click “Start New Backup” and let Time Machine do its thing.
    Otherwise, click “Back Up Later” and save a copy before letting Time Machine start a new backup. Just look for a file called “computername.sparsebundle” (for network backups) or “Backups.backupdb” (for local ones) and create a copy with a different name. You can open sparsebundle files with DiskImageMounter and browse them like any other disk. More information is available here.
    There you go. If you click “Start New Backup” when you see this dialog box, Time Machine will erase all of your old backup data and start a new bundle. It won’t be corrupt, but it will be empty.
    Note that you can manually initiate a Time Machine backup integrity check by option-clicking the “Time Machine” icon in the menu bar and selecting “Verify Backups.”
    http://blog.fosketts.net/2010/08/11/time-machine-completed-verification-backups- improve-reliability-time-machine-create-backup/
    According to This Time Machine resource   “This appears only on Snow Leopard, and started with the Time Capsule Backup Update 1.0 in mid-May of 2010.  It also seems to have been included in the 10.6.3 v1.1 update and 10.6.4.”
    So, what can you do about it?  Grin and bear it, it seems, until Apple fixes it.
    One thing you can do to make the backup take less time is to connect your machine to your Time Capsule or other backup drive via Ethernet for the duration of the initial backup.
    http://www.theinternetpatrol.com/the-dreaded-time-machine-has-completed-a-verifi cation-of-your-backups-to-improve-reliability-time-machine-must-create-a-new-bac kup-for-you-message-and-why-you-are-seeing-it/
    Time Machine: About "Time Machine completed a verification of your backups. To improve reliability, Time Machine must create a new backup for you."...
    http://support.apple.com/kb/HT4076

  • Set a timer inside a gui

    Hello all,
    I want to lanch a gui.
    Inside the jBinit method i want to initiate a timer.
    If no one use the gui in for ex 5 minutes i want a specific action to take place(ex dispose)
    How do i do that?
    thank u

    http://java.sun.com/products/jfc/tsc/articles/timer/

  • Time Capsule - "Backup disk image could not be created"

    Trying to set up time machine and consistently getting this error message. I can login in to the device and see the drive and space quantity with the airport utility. Airport wireless network is working fine - just can't get past this error message when I initiate the time machine backup process. Ideas? mike

    Mike,
    "The Backup Disk Image Could Not Be Created"
    Here are a couple possible reasons for the error message, “The Backup Disk Image Could Not Be Created”:
    *Missing Computer Name*
    First you might be missing a computer name in the Sharing Preference pane. Go into System Prefs. Then Sharing. In the box labeled “Computer Name” is it empty? If it is blank, you need to put in a name for your computer. Otherwise Time Machine won’t be able to link this Mac with the previous backups.
    *Reselect Time Machine Backup*
    Next, the link to the network drive “Backup” has been lost. Go into System Preferences --> Time Machine --> “Change Disk…” and select the the backup drive again from the list of available volumes. Do this:
    Go to System Preferences --> Time Machine.
    Click the "Change Disk..." button.
    Select "None" and click "Stop Backing Up".
    Now click "Choose Backup Disk" and reselect your drive again.
    Close System Preferences and try backing-up again.
    Let us know if any of the above resolved your issue.
    Cheers!
    Message was edited by: Glenn Carter

  • Time Machine - strange increase in backup?

    Hello,
    I have a Macbook Pro 10.6.8 running Time Machine backups to a couple of externals - a Seagate and a WD. I swap them out (cabled) every week or two.
    Yesterday I began to manually initiate a Time Machine backup just because I wanted to catch the drive up that I swapped to from a week prior. I just clicked the "Back up now" feature like normal.
    It caught up as expected after several minutes.
    However, I'm noticing that if I click "Back up now" even when I havene't even used the computer I keep getting several-meg files backing up. I tested this by, literally, not using the computer for five minutes - no programs downloading anything were open, I don't download mail via client (I surf to Gmail), no VPN or anything I can think of that might be pulling in files.
    No matter what, though, if I click manual back up at any given time - even if the computer sat, untouched, I see it once again has 1, 4, or 10 meg files it's needing to take care of. This happened yesterday and now today.
    No, I don't do torrents or file sharing, I don't have this pulling double duty by sending iPhone or iPad stuff to it, either.
    My only thought is maybe it's automatic software updates trickling in over a few days but for some reason it seems out of character from what I normally see when I manually "Back up now." I manually checked the Apple-logo for software updates - nothing available. Normally, I could click "Back up now" and an hour or two later - nothing - it's complete. Not the case today... always a trickle of small, multi-megabyte files coming in needing to back up.
    Any ideas?

    I see that behavior often when I back up my Snow Leopard partition. It appears everything is getting backed up, so I don't worry about it. I don't know why it does that.

  • Menu to disappear when TIMER has expired

    Hello!
    I am developing a SIM Card Application!
    I want to show a menu for a specific time!
    I show a menu to the user, and initiate a timer at the same time. Once the timer expires, I want that menu to disappear.
    Nothing happens because the phone waiting for a Menu Respons from the user!
    How can i solve this problem??
    Best regards.
    FJ

    Whatever you had running when the system shuts down will automatically start up again after a reboot.  This is a designed behavior, so you don't have to worry about having to open everything you had running.  If you have Safari running and you reboot, it'll even open up all the pages you had open.
    I believe there is a way to turn this off in the System Preferences, but IMO, it's a pretty convenient feature.

  • Back Up Plan Lang!

    A Warring has UFC Assay Dark 40 results for the Botanist vs. Silva agitate book Fri period at the U.S. Depository Field in Cincinnati, River.
    In the primary event, Matt Chromatic faculty row off against Erick Woodland in a welterweight repugn. Costas Philippou faces Zoologist Larkin in the co-main circumstance.
    Weigh-ins for Saturday's UFC Essay Night 40 record took judge from City and the U.S. Incline Arena earlier today. [url=http://forum.tamquoccola.com/forum.php?mod=viewthread&tid=13787]Watch Game of Thrones Season 4 Episode 6 Online[/url]
    Realised and formal results of all the protector weigh-ins can be saved beneath, along with a video repeat of the proceedings.
    In the principal circumstance, welterweights Matt Chromatic and Erick Timber direct off, patch the co-main features Costas Philippou and Zoologist Larkin. FightLine testament be providing comprehensive play-by-play amount of all the activity, along with straightaway
    post-fight recaps and all your post-fight broadcast and message.
    Chromatic went directly after Woodland on the leg after both weighed in, exploit in his surface. Silva meet calmly looked eye-to-eye with Chromatic. Larkin came out wearing an Highest Warrior mask. The other pro fighter passed absent earlier this assemblage.
    The proceeding starts on Swordplay Advance at 6:30 p.m. ET before moving over to FOX Sports 2 at 8 p.m. ET. The six-bout primary correspondence airs on FOX Sports 1 turn at 10 p.m. ET from Metropolis.
    Prelim shielder Anthony Lapsley came in at 174 pounds, trine over the welterweight lessen for his conflict with Albert Tumenov. We will update you on if he tries to retrograde the weight or forfeits a allocation of his purse.
    The UFC returns to the Insect Port of City, River for Oppose Nighttime 40. The ending period I recall UFC beingness in Cincy, a Brazilian clotheshorse named Forest kneed an American gallant from Ohio to modification in the primary circumstance. If you want
    to couple much most the particulars and specifics of the fighters, select a look at the UFC's semiofficial Combat Nighttime 40 diplomat. Now, let's get into who's conflict, who's success, and who's prognosticating. As e'er, I am the papakha rocka, Jessica
    "Leg Spring TKO" Hudnall, there's "Blake BROrtles" Burnsy, the man who kicks suchlike a battle fearful and fights equal a motility crybaby, Vince "Show Drunk" Mancini, late paladin Cuomo are the actual think MMA is banned in the
    Corp Advise, Eric
    New York Ric" Jackman. Eventually, we human a new presenter, a fable beyond similitude. The inflammation of Wallabee Top Unit and the don of the Dagestani Knucklegame Cartel, THE GOD, Spectre Tackling Killah on MMA.
    Jessica: Tumenov let me downcast erst before, but dang it, I vindicatory can't get mad at a sheik nicknamed "Einstein". Lapsley isn't anything primary, and I'm pretty reliable "Einstein" can personage out any "Recipe". Tumenov
    wins by unvaried mind.
    Danny: With a cant equal Tumenov, you'd look him to be a proficient grappler. You'd be false. Lapsley has the plus on the priming, but he doesn't real know any takedowns from length in his accumulation. Tumenov lights him up on the feet and takes the unvaried
    determination.
    Vince: "The Direction?" Is he exploit to advertize me or make me a flavour rub? Anyway, Lapsley appears to be mostly a panorama guardian on wadding, and Tumenov is a Slavonic who's never been submitted. Elliptic interracial generalizations module
    tell you that Russians are hard to assert downed, so I gotta personage Tumenov.
    Burnsy: In a straightarrow up endeavour of nicknames, I'm giving this one to Einstein, because that upright makes Tumenov wholesome smarter and ranking in every way. "The Recipe" could go either way if I was crafting a "clever" heading,
    much as "The Direction for Success" or "The Recipe for Adversity." I honourable suchlike Physicist outmatch.
    Eric: Tumenov was highly touted effort into his UFC unveiling against Ildemar Alcantara, but emptied the gas vessel after one spheric and didn't put up often of a press after that. I could see Lapsley implementing a wrestling-heavy gameplan and stealing one
    from the deary. I'll sound the dice on Lapsley and the enkindle.
    Phantasm: basically Tumenov let the god behind parthian moment out b. but pal starks been on the brass with mad russians tryina address how to get son indorse to advantage and he eventually there younahmean. feeble ass name and all. he gon deal this one via
    firmness
    Lightweight - Justin "J-Bomb" Salas vs Ben "Manimal" Fence
    Jessica: Protect wasn't relinquished any favors in his commencement, existence a unpunctual match, fighting up in weight against a substantial hostile. Now he's rearwards behind to 155, and if he can accomplishment out in some unearthly copal action again,
    I'll image that should utilize him enough knowledge to put departed Salas. Mostly because "J-Bomb" is a terrible appellation, and I necessary that expended from the UFC quicker than a gallant wearing weird sensual apparel heads. Stratum wins by unanimous
    determination.
    Danny: When I sat downcast to do this reasoning, I mistyped Salas's constitute as Justin Salsa. That typo may not bed redeemed the fact that his sobriquet is "J-Bomb," but I'm rattling craving a burrito tract now. Ben Protect may valid like a unresponsive
    indie vocalist, but he doesn't acquire sufficiency struggle to mounting a continuous behaviour. Salas by firmness.
    Vince: I hit no intention. I'm action J-Bomb because it sounds similar one of my guild bros. Bro, advert when J-Bomb took consume Buttplug Katie after Lynchpin Plash and Dingleberry Dave got tazed by the cops? That was rad. J-Bomb is a fable, evidently he's
    accomplishment to win. I heard his dad owns a dealership.
    Burnsy: "J-BOMB!!! WHAT'S Leaving Downcast, J-BOMB!!! J-BOMB IN THE Shelter!!!" Sorry, that's how I move when anyone has "-Bomb" as portion as their soubriquet. You human to either be a echt badass to accomplish that play or you deglutition
    a ton of Jager Bombs. Either way, I like Protect to win this one.
    Eric: I don't bonk anything some Protect, as I didn't watch TUF: Smashes and Alex Garcia violently ended his UFC unveiling in low a bit. Cerebrate me Salas.
    Phantasma: Justin Salas fightfinder picture e'er reminded the god of any 90's gynaecologist dump. old "chromatic is the embellish of your energy" lookin ass motherfucker younahmean. typewrite a shitting we hadda cough a journeying bus wood ass for
    puttin on on solon than one happening endorse in the day. but then Ben Wall… son went on that valhalla initiate terminal time out when he was fightin Hector Lombard's nephew and defecation. callin for justin salas with the expert resoluteness here

    Hi Shanu,
    there is a Test-run modus.
    If it fails for some reasons, you will get a error message. Then you solve this error and repeat  AJRW or AJAB.
    regards Bernhard

  • Word 2007 won't save files with Acrobat Pro 9.0 Installed

    Last night an issue started occurring while trying to save a document in MS Word 2007 (part of an Office Ultimate install).  After about 10 hours of trying several suggestions from a variety of forums and MS suggestions I found that the only time I cannot save a file by traditional means is when Acrobat is installed.  I tried updating Acrobate and had the same thing happen.  MS says all that's left for me to do is get an answer from Adobe (I have to wonder if it's a copout).
    Steps taken so far:
    Disabled the PDF add-in - still unable to save Word files
    Removed PDF add-in - still unable to save Word files
    Removed entire CS4 suite - Word was able to properly save files
    Installed only the parts of the suite that I use frequently (Photoshop, Soundbooth, Premiere, Acrobat) - unable to save Word files
    Removed Acrobat Pro 9.0 - Word saves files properly again
    When I say it will not save a file I've tried the keyboard shortcuts for Save/Save As, Choosing the Save/Save As from drop down, and even attempted to save by closing the document.  When prompted with the option to save changes I say yes and nothing will happen, I have to close the document with nothing saved.
    I hate the idea of reinstalling Acrobat each time I need to use it to keep Word functional.  I've seen a ton of threads on other forums related to this issue.  Has anybody else seen this or know about a fix/work around?  Any help is appreciated.  Please let me know if additional detail is necessary.
    The operating system for the affected computer is Windows 7 32-bit.

    I installed each update individually (6 of them) and rebooted after each update.  Opened Word and attempted to save a document (after each update/reboot), the documents still cannot be saved (previously created documents still cannot have new detail saved).
    Decided to delete the Office folder in the following path: C:\Program Files\Adobe\Acrobat 9.0\PDFMaker\Office
    Opened up word and Acrobat went through an installation processes, to replace what was removed I assume.  After this was done I attempted to save a document and was still unable to do so.  Went back and deleted that Office folder in the above path again.  When opening Word this time I cancelled the installation process that Adobe was trying to complete.  Preventing the install of the settings and PDF add-in allowed documents to be saved again in word.
    I decided to try to remove the innactive add-in from my Word Options and received the following error message:
    "The connected state of Office Add-Ins registered in HKEY_LOCAL_MACHINE cannot be changed"
    Due to my deleting that folder?
    I suppose I could cancel that installation that initiates each time I open Word (or any other Office program that benefits from Acrobat Add-ins) but that will be a bit of an annoyance.
    Anybody have another suggestion, know what may need to be deleted from the registry to prevent the Add-ins installation when opening Word, or know where that setting can be changed?
    Hopefully getting close to a resolution

  • How can i check the duplicate NPD project name?

    Dear all,
    I would like to know on how i can check the duplicate NPD's project name? I found that some NPD's project is initiate serveral time with the same or semilar name from user name. Supposing the project name was "Smart Pilot". I always found that project may type differently such as "Smart PILOT","smart pilot" or even "Smart Pilots". Supposing i would like to validate all of these name before save by using validation framework, or custom validation. Is it possible?
    Supposing it was possible, can you please guiding me on how?
    Thank you so much in advance for all of the answer.
    Phaithoon W.

    So here is some example code for a quick validator. Note that this uses a hard coded English error message, rather than a translation. If you want to use translations instead, look at some of the examples in the ReferenceImplementations\Validation\SourceCode\ReferenceValidation folder in the Extensibility Pack, and review the Validation Training as well (in the ReferenceImplementations\Validation\Documentation folder).
    Note that the provided code is for demonstration purposes only and is not supported by Oracle.
    The classes:
    using System;
    using System.Data;
    using System.Xml;
    using Xeno.Data.NPD;
    using Xeno.Prodika.Application;
    using Xeno.Prodika.Services;
    using Xeno.Prodika.Validation;
    using Xeno.Prodika.Validation.Validators;
    namespace Oracle.Agile.PlmProcess.Validation
        public class NPDUniqueProjectNameValidatorFactory : XmlConfigValidatorFactoryBase
            protected override IValidator Create_Internal(XmlNode configNode)
                return new NPDUniqueProjectNameValidator();
        public class NPDUniqueProjectNameValidator : BaseValidator
            private const string sql = @"select 1 as dup from NPDPROJECTML where UPPER(title) = UPPER ('{0}') and FKPROJECT <> '{1}' and LANGID = {2}";
            public override bool Validate(IValidationContext ctx)
                var project = ctx.ValidationTarget as INPDProjectDO;
                bool hasDuplicate = false;
                string sqlToExecute = String.Format(sql, project.ProjectML.Title, project.PKID, UserService.UserContext.User.PreferredLanguage);
                using (IDataReader reader = AppPlatformHelper.DataManager.newQuery().execute(sqlToExecute))
                    if (reader.Read())
                        hasDuplicate = true;
                if (hasDuplicate)
                    ctx.AddError(String.Format("A project already exists with the name '{0}'.", project.ProjectML.Title));
                return hasDuplicate;
            private IUserService UserService
                get { return AppPlatformHelper.ServiceManager.GetServiceByType<IUserService>(); }
    Next, add the following to the ValidationSettings.xml file in config\Extensions:
    1. add the validator factory, with a reference name in the config:
    <ValidatorFactories>
            <!-- Custom  Validator Factory declaration goes here -->       
            <add key="NPD_CheckProjectNameForDuplicate" value="Class:Oracle.Agile.PlmProcess.Validation.NPDUniqueProjectNameValidatorFactory,ReferenceValidation" />
    </ValidatorFactories>
    2. Add a rule for NPD project Save event:
    <rule type="3202">
                <condition event="save">
                    <if type="NPD_CheckProjectNameForDuplicate" require="true" report="true" />
                </condition>
    </rule>
    Compile the reference example into a dll, and add that dll into web\npd\bin
    When you try to save a project with a duplicate name, it should now give you the error message.

  • I need an urgent help on LabView Coding

    Respected Sir,

    sir, can you please bulid a VI for me that-
    1]From Relay Off to On Position-
     can initiate a timer (When 'x' is ON), as well as turn ON a Numeric Indicator that displays the corresponding input voltage and when ('y' is ON), stops both the timer as well as the indicator and they both hold their values and must have a reset button to reset the values...
    2]From Relay On to Off Position-
     Also, now when ('x' and 'y' both are ON), when 'x' goes OFF, the timer should initiate and the indicator should display the corresponding input voltage and when 'y' goes OFF, both the timer and the indicator should stop, and they both hold their values and must reset their values..
    Sir, will it be possible to use two use timers and two indicators for this purpose.. sir, please help me out, me in a complete mess...

  • Urgent labView coding required

    sir, can you please bulid a VI for me that-
    1]From Relay Off to On Position-
     can initiate a timer (When 'x' is ON), as well as turn ON a Numeric Indicator that displays the corresponding input voltage and when ('y' is ON), stops both the timer as well as the indicator and they both hold their values and must have a reset button to reset the values...
    2]From Relay On to Off Position-
     Also, now when ('x' and 'y' both are ON), when 'x' goes OFF, the timer should initiate and the indicator should display the corresponding input voltage and when 'y' goes OFF, both the timer and the indicator should stop, and they both hold their values and must reset their values..
    Sir, will it be possible to use two use timers and two indicators for this purpose.. sir, please help me out, me in a complete mess...

    Please keep all related questons in one place:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=325397&jump=true
    Thanks!
    LabVIEW Champion . Do more with less code and in less time .

  • Calling another form when current form is in query mode

    I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
    I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
    if :system.mode = 'enter-query' then
    exit_form ;
    end if ;
    new_form('someform') ;
    (since exit_form in query mode is supposed to cancel the query).
    But in this case, the trigger ends with the execution of the 'exit_form' statement.
    Any help would be greatly appreciated.
    Thanks and regards,
    Rajesh Jayaprakash
    [email protected]

    I think the following will work:
    When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
    I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
    1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
    2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
    3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
    If this does not work, you could resort to:
    1) Set a Global Variable just before you call the EXIT_FORM builtin
    2) Initiate a TIMER
    3) Call the EXIT_FORM builtin
    4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
    5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
    It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
    If anyone knows any better ways of achieving this, please add another reply!

  • Modify the Due Date in a GP Process

    Hello everybody,
    I need to modify the Due Date on a given Process. All I have is the Process ID, that i get from a Parameter in my function... I got some code form several pages in the SAP Library, but i get an error in the line:
              IGPProcessInstance procesInst = rtm.getProcessInstance(proc, userContext);
    In this line a GPEngineException is raised, Any help will be greatly appreciated!!!
    This is the Code I have:
         IUser user = null;
         IGPStructure params = null;
    //        Get current user
         try {
                   IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   user = UMFactory.getUserFactory().getUserByLogonID(wdUser.getSAPUser().getName());
              //        obtain the Process template
                   IGPProcess process =
                   GPProcessFactory.getDesigntimeManager().getActiveTemplate(
              //        by specifying its ID
                   processId,
              //        and the user accessing it
                   user);
              //        obtain the Run Time Manager
                   IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              //        create a new, empty role assignment list
                   IGPProcessRoleInstanceList roles = rtm.createProcesRoleInstanceList();
              //        get the number of roles required
                   int rolenum = process.getRoleInfoCount();
              //        iterate over the required roles
                   for (int i = 0; i < rolenum; i++) {
              //          add a new role assignment to the list
                    roles.createProcessRoleInstance(
              //          by specifying the role's unique name
                    process.getRoleInfo(i).getRoleName()).addUser(
              //          add the current user to every process role
                    user);
              //          Here you see how to populate parameters with data.
              //          This example only works, if you initiate the "Time-Off process"
              //          that is delivered per default with the GP Framework.
              //          You find it in the gallery below "Examples".
              //          Otherwise no parameters are initialized.
              String proc = processId;  // Got it as a Parameter
              IGPUserContext userContext =  GPContextFactory.getContextManager().createUserContext(user);
                               /* En Exception is Raised in this line: */
              IGPProcessInstance procesInst = rtm.getProcessInstance(proc, userContext);
              Iterator notifs = (Iterator) procesInst.getNotificationInstanceEnumeration();
              IGPNotificationManager notifManager = GPProcessFactory.getNotificationManager();
              while(notifs.hasNext())
                      IGPNotificationInstance notif = (IGPNotificationInstance)notifs.next();
                      if(notif.isDueDateNotification())
                                IGPDeadline deadline = GPNotificationFactory.createDeadline(
                                                                                         IGPDeadline.DEADLINE_ABSOLUTE_POINT,
                                                                                         null,
                                                                                         0,
                                                                                         (java.sql.Date.valueOf("2008-02-29")).getTime());
                                notifManager.updateNotification(
                                                                     proc,
                                                                     notif.getActivityInstanceID(),
                                                                     notif.getNotificationID(),
                                                                     deadline);
                    params = GPStructureFactory.getStructure(process.getInputParameters());
                    if (process.getTitle().equals("Time-Off Process")){
                         IGPStructure struc = params.addStructure("Time_off_data.1");
                         struc.setAttributeValue("AbsenceTypeText", "Vacation");
                         struc.setAttributeValue("SimulationCode", 0);
                         struc.setAttributeValue("CompletionCode", 0);
                         struc.setAttributeValue("PaidFlag", true);
                    params.setAttributeValue("data", java.sql.Date.valueOf("2008-02-28"));
              //          initiate the process template by passing the Process template
                    rtm.startProcess(process,
              //          a name,
                    "Process started by API ",
              //          a description,
                    "This process has been started by an API",
              //          the initiating user
                    user,
              //          the role assignment,
                    roles,
              //          the initial parameters
                    params,
              //          and the user actually executing this action
                    user);
          } catch (WDUMException ex) {
          logger.traceThrowableT(Severity.ERROR,
          "Current user could not be resolved: ", ex);
          } catch (GPInvocationException ex) {
          logger.traceThrowableT(Severity.ERROR,
          "Exception raised when trying to start process: ", ex);
          } catch (GPEngineException ex) {
          logger.traceThrowableT(Severity.ERROR, "Exception raised when trying to start process: ", ex);     
         catch (UMException ex) {
         logger.traceThrowableT(Severity.ERROR,
         "Exception raised when trying to start process: ", ex);
    Edited by: Francisco Perez on Mar 10, 2008 3:41 PM

    Hello All,
    You can change the deadline of a Due date notification of an process as given below:
               IGPRuntimeManager rtManager = GPProcessFactory.getRuntimeManager();     
               String process = executionContext.getProcessId();
               IUser admin =   UMFactory.getUserFactory().getUserByUniqueName("administrator");
               IGPUserContext userContext =  GPContextFactory.getContextManager().createUserContext(admin);
               IGPProcessInstance procesInst = rtManager.getProcessInstance(process,userContext);
               Iterator notifs = (Iterator) procesInst.getNotificationInstanceEnumeration();
               while(notifs.hasNext())
                    IGPNotificationInstance notif = (IGPNotificationInstance)notifs.next();
                    if(notif.isDueDateNotification())
                        IGPDeadline deadline = GPNotificationFactory.createDeadline( IGPDeadline.DEADLINE_ABSOLUTE_POINT,null,0,(new Date(108,2,1)).getTime());
                        notifManager.updateNotification(process,notif.getActivityInstanceID(),notif.getNotificationID(),deadline);

Maybe you are looking for

  • Report for anoymous analysis of Time Quotas (IT2006)

    Dear all, we face the request to provide a view on all defined Time Quotas (InfoType 2006), where only the totals will be shown. Example: we have an overtime contingent OT employee 1 has 10hrs employee 2 has 20 hrs our goal would be based on selectio

  • How to make photos normal sized in ios 8 messages?

    In ios 7 and below, when you send or receive photos in messages, they show up as a decent size in the messages slot. However, with ios 8, the photos are just an atrociously large size in messages. Is there a way to revert to the normal photo size?

  • HELP with knockout

    Hello, I have a question I hope someone can help me with. (Im using AI CS3 on a Mac) Im creating artwork for a customer and need some help with a portion of the illustration. I downloaded a portion of the art from Clipart.com, this includes the panth

  • Import CD problem

    I import an album and it loads to multiple albums. I imported a CD and went through the steps and when I was done I had 3 albums by the same artist. One was the CD imported and the other 2 had slightly different names. I would like to load them into

  • Changing Hypervisor IP Addresses

    Hi Everybody- We set up our OVM cluster's networking, initially, in a very simple "get it working for testing" setup and need to make it more robust, utilizing all four network interfaces. We want to use two ports for management and migration and two