How to run some part at only startup(Initialisation)?

Dear All,
                  I want to send the query only once when i start the program not continuosly during the programme, so what i should ,can anybody suggest me, please!!!!!!!!!!!!!
Thanks in Advance
Rujuta

Hi,
If i understood your query right,
This is what you meant: In a continous process(loop) you want a part of code to execute(sending a query) only once (in the very first iteration).
If I have understood your query right, any of these attached VI should do the job
Only on the first iteration(loop zero), the true case will execute and a pop up message will come. ( first loop_1.vi)
For all successive iterations, the code inside the true case will not execute.
It this is not what you are looking for, do post your question in a bit more detail.
Regards
Dev
Message Edited by devchander on 12-26-2005 05:07 AM
Attachments:
First loop_1.vi ‏19 KB
First loop.vi ‏16 KB

Similar Messages

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • Xfce runs some apps twice at startup

    Usually Xfce runs conky and keepassx twice during the startup. I tried cleaning ~/.cache/sessions while unlogged, but it didn't work.
    These apps figure only once in xfce4-sessions-settings and these are my settings.

    I had this problem in XFCE, ages ago, worked around by auto-starting a bash script, rather than the apps themselves, then having a bit of checking in the bash script - snippets:
    #!/bin/bash
    export DISPLAY=":0.0"
    # To get evolution to use gnome's secrets keyring
    # From http://bugs.archlinux.org/task/18930
    if [[ -z "$(pidof -s gnome-keyring-daemon)" ]] ; then
    export `gnome-keyring-daemon -s --components=pkcs11,secrets,ssh`
    fi
    # Optimize firefox databases
    for f in ~/.mozilla/firefox/*/*.sqlite ; do sqlite3 "$f" vacuum ; sqlite3 "$f" reindex ; done
    # Done here, so it takes effect reliably!
    xrdb -merge ~/.Xresources
    # Make pidgin minimized at startup
    sed -i -e "/list_visible/s/value='1'/value='0'/" -e "/list_maximized/s/value='1'/value='0'/" ~/.purple/prefs.xml
    # Run terminal if not already running
    pgrep -u myusername xfce4-terminal > /dev/null || xfce4-terminal &
    (sleep 15 ; if [[ -z "$(pgrep -u myusername xscreensaver)" ]] ; then xscreensaver -no-splash ; fi) &

  • Qosmio G20: How to run programs and films only on second display

    Is it possible to select which programs are displayed on the secondary display (tv)?? If so how.
    Also if I output a film to the tv it plays on the laptop sound and all. How can this be stopped i.e only play on the tv?
    Norskman

    Hi
    Usually you can change the display devices with the function FN+F5.
    Then you can change the option to notebook/LCD, LCD, notebook/TV, TV
    If you use the software like WinDVD so you have firstly change the display device and then use the software.

  • How to run the processRequest initialization only once

    My home page has a table that is initially populated based on the users userId.
    The user can then select a differnt user to display data for.
    From the table, the user can drill down to another page. If the user uses the browser back button (need to press twice), he is returned to the search results correctly.
    If instead the user clicks on the returnNavigation link, the query initialization in the processRequest is fired again.
    Is there a way to only fire this query initialization when the page is first loaded ?
    Similiar type of problem where I set the pagetitle to a parameter passed from the original page. If the user then drills to a 3rd page and returns using the returnNavigation link, the data is still the same but the page title (set in the processRequest section) is set to null

    Well, first thing is that issue subject is kind of misleading. You cannot have control over the inherent calls to processRequest but what is required is putting up some logic to overcome your issues.
    You can maintain a session flag to track your status of first time page load. With the help of this flag, you can conditionally initialize the query. Same applies to page title issue.
    One more suggestion, never use browser back button.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to run a script op Indesign startup?

    Hi,
    I have a script that runs fine when manually running it in inDesign CC.
    Now i need that script to run automatically when a file is opend in InDesign.
    I put the script in "stratup scripts" folder. But get the error that there is no active document. The script runs before the document is opened.
    on: http://forums.adobe.com/message/4005956 sommthing is mentioned but i just can't get it to run!
    Do i need to install the APID toolkit (only has a plugin for CS4 and lower) or APID toolassistent? And when i do? what then?
    I'm not an IT guy.
    Can anyone help?
    Tnx

    Hi Mi_D,
    Like i mentioned i'm not a IT/programmer.
    This is mijn script now:
    var document = app.activeDocument
    var items = document.allPageItems;
    var textFrame = null;
    for(index = 0; index < items.length; index++)
        if(items[index].name == "fitText")
            textFrame= items[index];
    if(textFrame != null)
        var minimumHorizontalScale = 50;
        var horizontalScale = textFrame.parentStory.horizontalScale;
        while(textFrame.overflows && horizontalScale > minimumHorizontalScale)
            textFrame.parentStory.horizontalScale = horizontalScale--;
    What do i have to do to make it work?
    tnx

  • How to select some settings programmatically at startup?

    I developed a plugin which performs some stuff upon a PDF being opened. I would like to add at least one action: "clicking" the option called "Click to show one page at a time" every time certain class of PDF files is opened. How is this performed programmatically?
    The question is actually more general. Where are the settable settings documented?
    TIA,
    -RFH

    Thanks for your kind assistance, Leonard.<br /><br />This is the situation: all the PDF files that will be processed by the system I am developing will be generated by a server program that I am writing.<br /><br />Therefore, all the PDF files will contain the necessary statement to be shown in "SinglePage" view. I will make sure to insert the view mode in every created file.<br /><br />HOWEVER, the sample files that I am dealing with right now do not have such instruction in the PDF "code".<br /><br />That's why I am looking for a way to program Acrobat itself, and I seem to be pretty darn close. All I am missing is the 2nd. parameter in this statement:<br /><br /> AVAppSetPreference(PDLayoutSinglePage, <what the heck goes here?>);<br /><br />Thanks,<br /><br />-Ramon

  • How to run a app that only works in 10.4

    My version of Vectorworks only runs in 10.4
    I want to upgrade my Mac to 10.6
    I do not want to reboot into a 10.4 hard drive to just run Vectorworks.
    I want a solution that would run 10.4 simultaneously like Classic was when OSX first came out.
    Any ideas?

    Sorry, that is not possible.
    Allan

  • How to restore some parts of Keychain

    Hello,
    My Macbook Pro is backuped with Time Machine.
    In Keychain, I opened a crypted note and discovered it is empty.
    How is it possible to restore the note (or the whole keychain) with Time Machine ?
    Best regards
    Alef

    you can not restore bits of keychain. but you can restore the entire keychain. quit keychain access and restore the file home directory/library/keychains/login.keychain.

  • How to run desktop application

    Hi! I've programmed for years JSP, Servlets and Applets, but never a desktop application, so... my problem is that I don't have any idea on how to run it. I mean, of course I know how to run some application in my own desktop (java applicationname) but my doubt is, what I need to install in the client desktop or how must I do my package in order to run without the need for installing the SDK. Because, as I known, the "java.exe" comes with SDK, and of course, I don't think that I need to install de entire SDK in all my clients desktops in order to run my application.
    Any help will be very appreciated!

    You should give them the Java Runtime Environment. You will find a java.exe there too. E.g.
    C:\Program Files\Java\jre1.5.0_02
    The principle problems you will have to consider are:
    1.) How easy, and often, will you have to update your program? You might need to consider something like Java Webstart, for example.
    2.) What are the security considerations? If you need access to a database you will have difficulty keeping passwords secure. You may want to obfiscate code, for example.
    3.) If the applications are communicating with a central resource how will you deal with simultaneous usage. Coming from a web application background this is nothing new to you I guess but you may want to consider a J2EE application server, for example.
    4.) You need to consider whether you stick with what you know and develop an intranet approach to internal applications.

  • How to run application

    Hi! I've programmed for years JSP, Servlets and Applets, but never a desktop application, so... my problem is that I don't have any idea on how to run it. I mean, of course I know how to run some application in my own desktop (java applicationname) but my doubt is, what I need to install in the client desktop or how must I do my package in order to run without the need for installing the SDK. Because, as I known, the "java.exe" comes with SDK, and of course, I don't think that I need to install de entire SDK in all my clients desktops in order to run my application.
    Any help will be very appreciated!

    JRE (= Java Runtime Environment) suffices to run an application.

  • Why is my macbook pro running slow.  It runs slow even if only one app is open, especially if it's a browser.  I don't know how to read Etrecheck, but was hoping someone who does can help me out.  Would be super grateful.  :-)

    Hi.  This is my first time posting.  My Macbook Pro with Os X Mavericks has been running super slow since before I installed Mavericks so I'm pretty sure it's not the OS that has the problem.  It runs slow even if only one app is open, especially if it's a browser, particulary google chrome.  If mail is open...forget about it, down to a crawl.  I don't know how to read Etrecheck, but was hoping someone who does can help me out.  Would be super grateful.  :-)
    P.S. - Also, it sounds like something is loose inside my mac.  How should I proceed?
    Thanks in advance.
    Hardware Information:
              MacBook Pro (13-inch, Late 2011)
              MacBook Pro - model: MacBookPro8,1
              1 2.8 GHz Intel Core i7 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
              OS X 10.9.2 (13C1021) - Uptime: 0 days 23:21:37
    Disk Information:
              APPLE HDD HTS547575A9E384 disk0 : (750.16 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 749.3 GB (603.2 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Gatekeeper:
              Mac App Store and identified developers
    Kernel Extensions:
              [not loaded] com.leapfrog.driver.LfConnectDriver (1.8.0 - SDK 10.7) Support
              [not loaded] com.seagate.driver.PowSecDriverCore (5.0.1) Support
              [not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.0.1) Support
              [not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.0.1) Support
              [not loaded] com.seagate.driver.SeagateDriveIcons (5.0.1) Support
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist
    Problem System Launch Agents:
              [loaded] com.paragon.NTFS.auth.plist Support
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [loaded] com.leapfrog.connect.shell.plist Support
              [loaded] com.macpaw.CleanMyMac2.Agent.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [running] com.sophos.autoupdate.plist Support
              [running] com.sophos.intercheck.plist Support
              [running] com.sophos.notification.plist Support
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.google.keystone.agent.plist Support
              [running] com.seagate.SeagateStorageGauge.plist Support
              [running] com.sophos.uiserver.plist Support
              [running] org.chromium.chromoting.plist Support
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.adobe.ARM.[...].plist Support
              [failed] com.adobe.ARM.[...].plist Support
              [loaded] com.facebook.videochat.[redacted].plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
              [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
    User Login Items:
              Activity Monitor
              Dropbox
              Google Drive
              younity
              EvernoteHelper
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.2.4.18058 Support
              nplastpass: Version: 2.5.5 Support
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
              FlashPlayer-10.6: Version: 13.0.0.206 - SDK 10.6 Support
              Silverlight: Version: 5.1.20125.0 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.206 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 5.2.4.18058 Support
              SharePointBrowserPlugin: Version: 14.4.1 - SDK 10.6 Support
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
              Slick Savings: Version: 1.0
              Slick Savings: Version: 1.0
              Surfon: Version: 1.2.2
              Pearltrees Extension: Version: 6.0.13
              Mindomo Bookmarks: Version: 1.0
              Ebay Shopping Assistant: Version: 1.1
              Zootool: Version: 0.7
              Amazon Shopping Assistant: Version: 1.1
              Pocket: Version: 1.7.1
              Searchme: Version: 1.3
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
              TuneUp Visualizer: Version: 2.4.0 - SDK 10.6 Support
    User Internet Plug-ins:
              Picasa: Version: 1.0 - SDK 10.4 Support
    3rd Party Preference Panes:
              remoting_host_prefpane  Support
              Flash Player  Support
              Paragon NTFS for Mac ® OS X  Support
    Time Machine:
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 697.84 GB Disk used: 136.06 GB
              Destinations:
                        NO NAME [Local] (Last used)
                        Total size: 3.41 GB
                        Total number of backups: (null)
                        Size of backup disk: Too small
                                  Backup size 3.41 GB < (Disk used 136.06 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   6%          Activity Monitor
                   5%          WindowServer
                   1%          InterCheck
                   1%          sysmond
                   0%          ocspd
    Top Processes by Memory:
              152 MB          Finder
              115 MB          HelpViewer
              111 MB          mds_stores
              86 MB          InterCheck
              57 MB          WindowServer
    Virtual Memory Information:
              983 MB          Free RAM
              1.03 GB          Active RAM
              584 MB          Inactive RAM
              1.01 GB          Wired RAM
              17.41 GB          Page-ins
              222 MB          Page-outs

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • For some reason, when my Macbook Pro starts up, all of the MS Office applications open.  This was not happening when I first purchased the laptop, and I never added these apps to the startup menu.  How do I remove these apps from startup?

    For some reason, when my Macbook Pro starts up now, all of the MS Office applications open.  This was not happening when I first purchased the laptop, and I never added these apps to the startup menu.  How do I remove these apps from startup?

    By default Mac apps do not close when you close the window you were working in. Unlike in Windows when you click the top right X icon in any program is closes the window and the program shuts down. On Mac OS X clicking the X in the top left hand corner only closes that windows and leave the program running in the background. If they are left open and you reboot they will restart with the system and load a window for them.

  • I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page word document, some recipients get only one page.  Also sometimes when I burn an image from iPhoto on to a disc, only part of the image appears.  Why?

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

  • I'm using an older mac (2008 iMac).  Things were fetting slow and I used a program called DupZapper to get rid of a lot of duplicate files.  It worked and my computer is running better.  The only problem is now InDesign crashed at startup.  I have the ori

    I'm using an older mac (2008 iMac). Things were getting slow and I used a program called DupZapper to get rid of a lot of duplicate files. It worked and my computer is running better. The only problem is now InDesign crashes at startup. I have the original disks and serial number (CS3)  The error message is "required resources are missing".  Same message if I try to uninstall.  Any clues as to how to re-install?

    reset your preferences and retry launching id:  InDesign Help | Setting preferences
    if that fails, uninstall (properly with the uninstaller), clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

Maybe you are looking for