Is it possible to get an event notificati​on when a file is changed ?

Dear,
I have to do something on a file or folder when this is changed from outside the program. I can write a loop and look regularly to the change date. However to avoid unnecessary CPU processing, I would like to be notified when a file is changed. Can this be done by events in LabVIEW ?
Thanks in advance for your reaction.
Best regards,
Marc

Marc VH wrote:
Dear,
I
have to do something on a file or folder when this is changed from
outside the program. I can write a loop and look regularly to the
change date. However to avoid unnecessary CPU processing, I would like
to be notified when a file is changed. Can this be done by events in
LabVIEW ?
LabVIEW
has not a build in disk event handler. On Windows I would call the
Windows API functions FindFirstChangeNotification together with the
according event handling APIs. Or maybe since LabVIEW does not run on
9x systems anyhow anymore use ReadDirectoryChangesW instead.
Enclosed is a simple example using FindFirstChangeNotification. It is
all enclosed in one VI using an internal shift register. This limits
the function to be used for on change notification at the same time
only. In order to make it deal with multiple change notifications one
would have to change quite a bit of the VI, possibly taking out the
create, retrigger and close operation into individual VIs passing an
uInt32 between them for the change notification handle.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Attachments:
WIN File Change Notification.zip ‏29 KB

Similar Messages

  • Hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?

    hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?
    we have tried using video light box, but this doesnt seem to work.

    There's an example of one at the buttom of ths page...
    http://www.iwebformusicians.com/Website-Movie-Video/YouTube.html
    Rather than link to the file, the movie is on a separate web page and uses the code shown on this page...
    http://www.iwebformusicians.com/Website-Photos/Image-New-Window.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Is it possible to get a count of all the class files in a Flash Builder project?

    Is it possible to get a count of all the class files in a Flash Builder project?
    Thanks!

    Resultsets are one per connection unless you have copied them. Do you have lots of connections are you properly reusing them or at least closing and discarding all references?
    See tutorial and Javadoc of API too

  • Hi, I have an iphone 5 and unfortunately got sat on and is now bent, it worked fine bent for 3 months as the glass did not break, today how ever the screen has stopped working. Is it possible to get hold of another casing and have the electronics changed

    Hi, I have an iphone 5 and unfortunately got sat on and is now bent, it worked fine bent for 3 months as the glass did not break, today how ever the screen has stopped working. Is it possible to get hold of another casing and have the electronics changed ?

    You didn't look hard enough:
    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4S
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149

  • Why do I get the spinning beach ball when I try to change from Events to Photos.  How do I fix it?

    Why do I get the spinning beach ball when I try to change from Events to Photos.  How do I fix it?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Is it possible to get an event, if user end transaction with /n?

    Hello,
    i have written an own control component(combination from enjoy controls(Toolbar, Tree and Splitter) in ABAP. If the User end the transaction with the gui status BACK END or CANCEL, I got a PAI and can say save_layout( ) set screen 0 leave screen, that next time the control has the same layout. If the user leaves the transaction with /n, I get no PAI to save the layout. If there are any event that I can catch to save the layout of my control. I find the class cl_system_transaction_state with event transaction_finished, but this event is only raised by commit work or rollback work.
    Thanks & Regards

    Hello,
    There is no event triggered on a "/n".
    Users should know that "/n" leave the transaction brutaly without any confirmation
    Sorry
    Regards
    JM

  • Why do I get duplicate events in iCal when I input them on my iPhone?

    Every time I add a new event on my iPhone (as opposed to my iPad or desktop) I get a duplicate entry. This started to occur a few days ago for no apparent reason. This does not happen if I input the event on any other device.
    Is there a way to solve this?
    Thank you for the help!

    This happened to me and finally figured out what the problem is I think. I have MobileMe syncing set up on my iPod Touch and also had set in iTunes to do syncing to the iPod Touch - so one set was coming from MobileMe and another was coming from iTunes on the Mac that the iPod Touch hooks up to.
    So I turned off the Syncing in iTunes and now I only have one set of things on the iPod Touch.
    I think the reason for this duplication is that even without MobileMe you can keep the Mac and the iPod/iPhone/iPad in sync - the problem seems to be when you do have MobileMe that you probably don't want to have devices be syncing to both MobileMe and to the Mac as well.
    To disable the iTunes syncing go to the "Info" tab and deselect the checkboxes for "Sync Address Book Contacts", "Sync iCal Calenders" and "Sync Mail Accounts". Bookmarks can only be synced with MoblieMe since there is no option for this in iTunes. I also have checked the "Sync Notes" checkbox, but not sure if I should have this checked or not. I don't have two duplicate sets of Notes on any device, so for now am leaving this as is.
    I think Apple should fix this problem as it seems like a common complaint.
    Hope this helps...
    -Bob

  • Is it possible to get LS name from SLD when the scenario is executed

    can I create a scenario that gets the Technical system details of the Business system from SLD?
    Can I have a Soap - File scenario, in which case, once the request comes from Soap, corresponding Business system's Technical system details ( like LS name and client no ) should be taken from SLD and send as a file.
    Is this possible ??
    if yes, how?
    Regards,
    Venkat.

    Hi
    Technical system details - Not sure if that is directly possible..
    but an option would be to use a FixValue/ Valuemap function provide a Key & get the value
    to generate the Key, use a UDF, get RUNTIME constants to make a key
    check this link for constants http://help.sap.com/erp2005_ehp_04/helpdata/EN/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm
    e.g
    java.util.Map map;
    map = container.getTransformationParameters( );
    String const;
    Const = (String) map.get(StreamTransformationConstants.CONSTANT_NAMEfromlink);
    return const;
    if you want XI's information, then you can try this
    String sysSID = (String)System.getProperty("SAPSYSTEMNAME");
    OR
    String sysSID = (String)System.getProperty("user.name");
    Regards
    Vishnu

  • Possible to get SID of current session when not logged on as SYS

    I would like to get teh SID of my current session, but access to V$MYSTAT is restricted:
    conn user/******@DB
    SQL> desc v$mystat
    ERROR:
    ORA-04043: object "SYS"."V_$MYSTAT" does not exist
    SQL> conn sys/******@DB  as sysdba
    Connected.
    SQL> desc v$mystat
    Name                                      Null?    Type
    SID                                                NUMBER
    STATISTIC#                                         NUMBER
    VALUE                                              NUMBERThanks

    Can you use [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#i1038176]SYS_CONTEXT for getting DB_NAME, INSTANCE_NAME, SID etc?

  • How do I get an event-based response to a graph cursor change?

    I want to respond to the user moving a cursor on a data (X-Y) graph. (LV 7.0)
    What I really want is an event called "Graph.Cursor.Value Change", which would supply me with the new coordinates, but I see no such event.
    If I use the MOUSE MOVE event to trigger obtaining the cursor values, it does not give me an event, until the cursor has stopped moving, the button is up, and the mouse moves off the cursor line.
    Sure, I could use a TIMEOUT event, and read it every 100 mSec, but I don't like the time lag.
    What I did was to set a flag TRUE on Graph.MouseDown and FALSE on Graph.MouseUp. I then choose an event timeout of 10 mSec or -1, depending on that flag.
    That works, but is there a more direct way that I'm missing?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    No, unfortunately there is not.
    To code around this limitation, I typically use the timeout event in a more complex way as follows:
    The timeout is wired to a shift register that is initialized with "-1" (no timeout). The value from the shift register then crosses the event structure and feeds to the shift register on the right in almost all event cases.
    I add two special event cases:
    (1) "graph-mouse down" puts a small number (e.g. 10ms) in the right timeout shift register
    (2) "graph-mouse up" puts again a -1 in the right timeout shift register
    (x) All other event cases (incl. timeout) wire the current timeout straight across to the right shift register.
    The timeout event contains the logic to read the graph cursors and associated actions.
    This way there is normally infinite timeout. Once the mouse goes down on the graph, the timeout executes at relatively rapid succession until the mouse is raised again. At which point everything quiets down.
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to get Remote Desktop Services running when in Sysprep Audit mode in 2012r2?

    Hi,
    I'm setting up some images for 2012r2 and personally like to be able to access the machines via RDP. I have broken out of the OOBE by pressing
    CTRL+SHIFT+F3, however, even though RDP is enabled (System --> Remote Setting) and running (Services --> Remote Desktop Services),
    when I run 'netstat -a', I cannot see any process bound to port 3389, as such I cannot connect. Have restarted the services just in case, but no dice.
    I most the other OS setups (Windows 7, 208R2) this is fine (assuming you update either the password in audit mode or enable RDP login with a blank password), but the fact that nothing is listening
    on 3389 means that no matter what I do, I will not be able to connect.
    Is there any reason why this is the case?
    Cheers
    Chris
    Chris

    Hi Chris,
    Thank you for posting in Windows Server Forum.
    Can you ping successfully the respective server?
    Initially check whether there is any firewall rule set which is blocking your connection. Please try to change the RDP port from following registry key and verify whether you can get access. 
    To change the port assigned to RDP:
    Caution:  Incorrectly editing the registry might severely damage your system. Before making changes to the registry, you should back up any valued data.
    1. On the Remote Desktop server, open Registry Editor. To open Registry Editor, Start Run, type regedit, and then click OK. 
    2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
    3. Locate and then click the following registry subkey: 
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Remote Desktop server\WinStations
    Note:  RDP-TCP is the default connection name. To change the port for a specific connection on the Remote Desktop server, select the connection under the WinStations key.
    1. In the right-pane, double-click the PortNumber registry entry.
    2. Type the port number that you want to assign to RDP in the
    Click OK to save the change, and then close Registry Editor.
    For more information you can refer following article (Point 2: You may have a Port assignment conflict).
    Remote Desktop disconnected or can’t connect to remote computer or to Remote Desktop server (Terminal Server) that is running Windows Server 2008 R2
    http://support.microsoft.com/kb/2477176
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why does my Keynote size get reformated on the IPad when PPT files do not.

    When I import a Keynote presentation in HD format dimensions (1920 x 1080) into my IPad Keynote folder, it reformats the entire presentation to 800 x 600 which defeats the whole purpose. I don't have this issue when I import a PPT presentation in QuickOffice Pro HD. So what's up, all the boasting of being ahead of everyone only to have a critical piece of software behind the times. I wondering if I am missing something and not using the IPad Keynote properly. Please advise.

    Your css link is looking for a file on your local machine so when you upload to the remote server the link is broken:
    <link href="file:///Macintosh HD/Users/KellysHomeFolder/Documents/btd-innovations/btdstyle.css" rel="stylesheet" type="text/css">
    Have you defined a folder for your site at the begining of the project?
    The link should look more like: (assuming btd-innovations is your site folder)
    <link href="btdstyle.css" rel="stylesheet" type="text/css">

  • Is it possible to restart a new PO release when partner function is changed

    Dear all,
    I have encountered an issue from one of our MM users. In the existing setting, system allows user to change the vendor code for the partner function PI (invoice presenter) after the PO has been partially/completely released. From my understanding, purchase order will be restarted to a new release if another release strategy is re-determined by changing the classification value(s). But for my case, the same release strategy need to be restarted.
    I would appreciate to anyone who gives valuable advise is helpful.
    Best and regards,
    Eddy Au

    I almost had this requirement too in my current project, but before I could find a solution for this, the client scrapped the idea. However, now that you have raised this issue, I'd like to figure this out too.
    There is one thing we could try, although I am not sure if this is correct. If we could generate a new print message if the PI Partner function is changed, and for the release indicator in your current strategy which has the 'Released' box checked, we could set the Changeable field to '6'. This way should the partner function PI change, it would generate a new message and restart the same release strategy.
    You could try this, I will also try and figure this out. This would only work assuming the first message generated when the document was saved is already processed, and now a new change message is generated.
    Regards,
    G. Coelho
    Edited by: Godwin Coelho on May 9, 2011 10:44 AM

  • I keep getting cannot fetch tray error when i try to change themes and so on. I am using my aol as a home page.

    I can't change themes, my Aol weather doesn't work. but if i delete it, it pops right back as soon as Firefox reloads or restarts. I am using Aol my homepage.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How  can i get the event of selected PageItem in ActionScript

    hi,
    when i select the pageitem on document then i want the event of that pageitem .
    Is there a possibility to get that event ?
    best thanks for any hint.
    govind

    Marcel,
    Please consult the "Tables" chapter in the UIX Developer's Guide. You can search for a method titled "doSelectionEvent" that will indicate how to deal with table selections.
    Hope this helps,
    Ryan Pollock

Maybe you are looking for