I am having trouble deleting files and folders after creating in the same .VI

I have a larger .VI that runs an automated balancing routine for a large rotating mass.  The test needs to create some folders and files so that as the rest is run multiple times, there is a way to track how units did under test and when they were tested.
The attached .VI is only the portion of the code that creates the files and folders, waits for user input, and then deletes them if the test is cancelled before data is collected.  There are other elements, but they are irrelevant given that I can't even get the stripped down code to work.  I have checked the permissions on the deepest file (within both folders) and I am unable to get 777(oct) permissions on this file which could be the only problem I have.  Does anyone have any suggestions?
Attachments:
test1.vi ‏47 KB

Here are a couple of things:
Frame 0: the pane properties are saved with the file, so once they are set you never need to set them again. Delete the property node and associated constants.
Frame 1:
Shouldn't "Serial#" be a control (and an integer)? You do a complex song and dance to add leading zeroes. Simply format your serial number with format "%04d"
Shouldn't "Operator" be a control?
Frame 2: That loop needs a small wait statement. Since STOP is always true when the loop ends, the later case structure seems unneeded.
Frame 3:
the STOP function seems unneeded. the VI will stop anyway since there is no code left.
never use default tunnels for references.
All your error outputs are "disconnected" and write to the same indicator. Mist likely you'll loose intermediary errors.
Overall, you should use a state machine architecture instead of sequences. It will be much more flexible and will take even less diagram space. The indicators can be outside the state case, so all states can write to them. No locals needed.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • My Macbook Air can delete files and folders and take them to Trash Can but cannot delete from Trash Can . Cannot empty trash securely.

    My Macbook Air can delete files and folders and take them to Trash Can but cannot delete from Trash Can . Cannot empty trash securely.

    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.

  • I'm Having trouble with OWA and Certs after the Rollup 7 for SP3 installation. any idea? update 2961522-

    Hi, everyone.
    I'm Having trouble with OWA and Certs after the Rollup 7 for SP3 installation. any idea? update 2961522-
    after running get-OWAVirtualDirectory or test-OWAConnectivity i'm getting a message that says "OWA it's Orphan, No Metadata information can be found."
    I only have the OWA users impacted.- anywhere users, and ActiveSync are working well.-
    Thanks,
    Fabian Alberto Campo
    MCT-MCSA 2012-MCITP365-MCTS
    Fabián A. Campo H. Consultor tecnico @ IXO Ltda. MCT MCP MCTS MCSA HP-APS Cra. 67 No. 167 – 61 of 303 Bogotá, Colombia

    Hi Fabian,
    Is there any error code when user access their mailbox on OWA. Please confirm if there is no results returned in EMS when you run Get-OWAVirtualDirectory cmdlet. Also check whether there is any Event Logs related to OWA in Exchange.
    In IIS manager, make sure the OWA virtual directory is listed in the Default Web Site. In EMC, we can navigate to Server Configuration > Client Access, select server and turn to Outlook Web App tab. Then we can click Reset Virtual Directory in the right
    Actions pane to reset OWA virtual directory.
    Additionally, please restart IIS service by running iisreset /noforce from a Command Prompt window.
    Regards,
    Winnie Liang
    TechNet Community Support

  • HT3916 My Adobe say's I have a damaged iTunes LP and when I delete it and redownload it I get the same message . How do I fix this

    My Adobe say's I have a damaged iTunes LP and when I delete it and redownload it I get the same message . I have also lost several iTunes LP's since I purchased the iCloud Match this seriously annoys me. How do I fix this.

    Hey Ancient Rocker,
    If you are having issues with your purchased LP’s in iTunes, then the best way to get those back is to check in the previous purchase section of iTunes. The following article will take care of that part.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If they do not show up then you can report the issue to iTunes.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933
    To report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase, follow these steps:
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Regards,
    -Norm G.

  • My google map that was on my website now has been replaced with a sign that says (mobileme is colsed).  I have tried to delete this and reinstall google maps, but the same thing appears. Can anyone help?

    My google map that was on my website now has been replaced with a sign that says (mobileme is colsed).  I have tried to delete this and reinstall google maps, but the same thing appears. Can anyone help?

    See this page for info about Google maps...
    http://www.iwebformusicians.com/iweb-snippets/map-tutorial.html
    ... how to get the code and paste it into an HTML Snippet.

  • I am working in LR 5.7. I am having problems moving files and folders from my internal Mac drive to an external drive.

    My process is to drag files or folders from one location to another. Sometimes it works, but it takes a VERY long time. Sometimes it does not work. For example, I tried to move a folder with 329 images. LR processed for 13 hours and moved 58 images; then it stopped and gave the message "…error copying files to the destination you selected. The following files could not be copied." Then it noted the files not copied. Does this look like a LR problem? A hardware problem? Any suggestions on how to fix would be appreciated.

    Jim has a very good suggestion. There are many factors at work here:
    1) How are you connecting the external drive to the computer?
    2) How big are files (329 x 1MB is not the same as 329 x 25MB)?
    3) What is your computer specification?
    4) Do you have any power saving settings on (in particular something that would send the computer/hard drives to sleep)?

  • How to share files and folders between users of a same mac

    Hello,
    I would like to share a folder among users of the same Mac. I have a folder called toto, containing files and folders and i would like to share toto with other users of my mac. I would like the other users to be able to read and write every file contained in the shared folder toto.
    Is it possible ?
    Thanks a lot,
    Franck

    Yes, that works for items that are already there, but would have to keep being repeated for newly-created items.
    Actually, using chmod -R 777 <folder> raises a Unix question for me that perhaps a more knowledgeable person here can answer for both of us.
    Setting the  "x" bit on an enclosed folder would make it "searchable", which is what you want here, while setting the "x" bit on an enclosed file would make it "executable", which would not be intended.   It's  my understanding that if you use chmod -R 777 you will set the "x" bit on all enclosed items, including the files, while using, say, chmod -R a+rwX would only set the x bit on enclosed folders, not the enclosed files. My question for someone here is, should you therefore never use chmod -R 777 on an enclosing folder and instead always  use something like chmod -R a+rwX?  Does it make any difference in practice whether or not your datafiles are inadvertently made "executable?"

  • How do you open multiple binary files and plot them all on the same graph?

    I have three different binary files and I want to plot all 3 of them onto a graph.
    I am familiar with opening and reading a single binary file. (Thanks to the help examples!) 
    But to do multiple numbers at the same time?  I was thinking of putting 3 different 'reading from binary file' blocks with the rest of the 'prompts', 'data type', etc.. and then connecting them on the same wire.
    However, I got into a mess already when I tried to read one .bin file to dynamic data type --> spectral measurements --> graph waveform.  The error was Not enough memory to complete this operation...  Why is that?  That didnt happen in the help example "Read Binary File.vi"...  Has it got something to do with the dynamic data type?
    Thank you for your time.
    Jud~

    Have a look at the image below and attached VI.  Simply enter the different paths into the PathArray control.
    R
    Message Edited by JoeLabView on 07-30-2008 09:59 PM
    Attachments:
    multipleBinary2Graph.vi ‏18 KB
    multipleBinary.PNG ‏5 KB

  • Little help please regarding deleting files and folders...

    My wife has a MBP and has accumulated some old items in her documents folder that she'd like to delete. She has a USB mouse but the "right click" doesn't appear to work. She's running 10.4.11 and can't reveal the files in icon mode to facilitate dragging to trash. Certainly there is a sequence of keystroke commands that will allow these files to be effectively trashed, but our "control/delete", or "apple/delete", or "option/delete" doesn't do the trick after highlighting the subject file. Help please! TIA!

    To delete a file or folder, high light it then using the keyboard type Command Delete and that will delete it. If you have multiple files and/or folders the same keyboard commands apply.
    Regards,
    Roger

  • Problem with Read-only user being able to add and delete files and folders.

    The setup:
    Computer #1
    iMac (intel) running 10.5.5
    File sharing ON
    Sharing folder on external USB drive called 'iTunes' (but not the drive volume itself)
    Users:
    - Everyone = Read Only
    - Admin(me) = Read/write
    - UserA = Read Only (with account PW and username identical to local login for computer below)
    Computer #2
    UserA's iBook G4 running 10.4.11
    When I go to finder>network>iMac>connect it prompts me to login which I do and then select 'iTunes' folder which is visible and mounts successfully. I can see all files, access them all. Life seems great. Then I discover that I can also modify and delete files from the iBook, and create and delete directories.
    I'm new to networking and although I've setup and managed minimal networking tasks on PCs before, this is my first foray into the Mac networking world. Please help.
    What am I doing wrong? What haven't I set?
    Thanks in advance.

    Sorry, I should have clarified this in the first email.
    When I login from the iBook, I am logging in under a read-only user (not as myself, who is admin on the iMac). The user on the iBook has only been given read-only permissions on the iMac yet is able to add and delete files.
    This read-only login/PW however, is the admin account on the iBook, but that shouldn't allow this person to write on the iMac so far as I understand things...right?

  • Having trouble deleteing phots and albums

    I have been trying to delete photo from the photo library on my 4s itdoes not give me that option. I also created a photo album that i cannot delete it of the pics from my other albums that i created i have no  problems with including the camera roll any suggestions

    Connect and select iPhone in computer iTunes Sidebar, in Photos pane, un-checked said albums and do a sync.
    It is the same method for putting/deleting photos onto iPhone, choose select/de-select and followed by a sync.

  • For CS6 is there an easier way to redirect all my files and folders for all of the programs?

    Hey adobe people, Im wondering, I know you can setup each preference individually, but I want to redirect all the catched space, storage of brushes, and etc for all my programs into another disk volume as in changing c/ to e/. Is there a way to do this with in one program to make it easier? I don't want to accidently delete files that all the adobe programs can't find.
    The reason is I don't want to store anything other then the programs on the SSD, and in theory I want the other drive, so it can run faster.

    There is no global option for this.
    Mylenium

  • Writing to a file and Reading from it "AT THE SAME TIME"

    Hello,
    If you have a vi (vi 1) that is generating and storing data to a file. Is it possible to write ANOTHER vi (vi 2) that reads & plots the data located at the same file (BTW, vi 1 will still store data to the file while vi 2 is reading the data)
    All I am trying to do is to plot data that is generated from a different vi (vi 1) somewhat in "real time". Unfortunately, I cannot access the vi (vi 1) that is generating the data and add a diagram to it. I have to build my own separate vi (vi 2).  Is this possible?
    Thanks in advance

    Once you open the file, you can't access it again until the original reference is closed. You might want to look at a functional global architecture. You use a case structure to determine how to access the data. Initialize, write, read, save are common examples of sections inside the functional global.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/D2​E196C7416F373A862568690074C759

  • How can I get my favorites files and folders after upgrading to a new version?

    Hi.
    I recently rebooted my computer back to factory condition an upgraded to the newest version of fire fox.
    I lost all my favorites, bookmarks and important folders. Is there a way I can restore that information back to fire fox?

    Not if you didn't backup your personal data in the Firefox program folder or were using Firefox Sync.
    You should always backup your personal data before reformatting the computer.
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/kb/Backing+up+your+information

  • Having troubles in Photoshop and Lightroom after update

    I am working on a PC, with Windows 7-64 bit and Adobe Creative Cloud versions of Lightroom and Photoshop. Everything is up to date both operating system and Adobe.
    I just noticed the following problems this weekend.
    1. I cannot import into Lightroom. When I insert a CF card into my reader Lightroom opens as it should but I am unable to import - there is no import button or menu selection to do so.
    2. I cannot send any files to be opened in Photoshop. Photoshop does not see the file to be opened and a dialog opens asking what file to open. All that I can see are icons for the Canon CR2 files - even in Bridge.
    3. In Photoshop I cannot open any of my CR2 files in ACR, it is not seen as a valid file. I can, however open PSD files.
    All of my problems occurred after the latest Creative Cloud update to the Adobe Content Viewer.
    What can I do to regain my functionality? Any help will be appreciated.
    Thanks for your help.

    I ran the CC Cleaner tool but there are failed records. The instructions say I should contact customer service if that happens.
    Exactly how/where do I do that?
    I need to get this all fixed so I can get back to work! Sorry for thee rant, its been a rough week...
    Thank you for your help.

Maybe you are looking for

  • PDF to TIFF error: Image is too wide to output Acrobat X Pro

    I have been using Adobe Acrobat X Pro to convert PDFs to TIFFs.    All of the sudden this week I am getting an error saying the Image is too wide to convert.  These are files I previously converted without a problem.  I am specifying resolution of 36

  • Script to Update Item GL Class Assignments in OPM Inventory?

    We use OPM Inventory in our 11i.5.10CU2 process manufacturing environment. GL Class codes are assigned as categories to items in our OPM item master. We have a need to update the GL Class assignment to a new value for roughly 200,000 items. I've been

  • CURSOR-FOR LOOP

    Hello. I have this code I'm working on. A few facts: I'm running it in SQL Developer. I'm getting an ORA-06502 and ORA-06512 at line 138, 156 error. There are 2480 records total and the report should generate data on about half of that. I've tried ev

  • CDATA element mapping in Biztalk Mapper

    Hi, we have a input message which has an element called ParticleName. an example is:  <ns:ParticleName><![CDATA[TestingName]]></ns:ParticleName> There is a biztalk map which takes this message and transforms it into another. When i try test map, it d

  • Help please - Internet pages are loading but missing links + funny display

    Hello, I've recently borrowed this computer - it hasn't been used for a few years. I've managed to connect it to the internet but certain sites are not loading properly - the display is all messed up and the links are missing - nothing happens when i