Automatically save using build path

Hey everyone.
I bet there is an easy solution to my problem. But for the life of me I cannot find it.
I have this VI that measures pressure. It works brilliantly but I when I want to save the data the VI produces I have specify a file name using a string control, if I don't it prompts me to write it. This wouldn't be a problem except for the fact that it has to log data quite often and I can't always stay around the computer when its running. I therefore wrote some code that automatically creates a unique string (not shown in the picture) but when I attach that string to build path string terminal I prompt me to write a file name instead. 
In short: I want my VI to automatically create a file with unique filename (e.g.. "Timestamp_Operator_type_of_measurement_measurement_number") 
Any thoughts, I've tried altering the options for the path control but it doesn't seem to work.
Thank you in advance
Atamsih
Solved!
Go to Solution.
Attachments:
PressureVI.png ‏49 KB

Hey BillMe
When im probing the path that im inputting is "C:\users\RI-DEMS\Data" which is what i want.
The file name input probe says "26-11-2012 11:14 63.txt" which is a timestamp and the measurement number. 
But the output of Build path remains "not a path" why is that?
And of course you're right. I should put the path outside the loop. 
Hope this helps in determingen the problem.
Atamsih
EDIT: Fixed typo with forwards slash instead of backslash in pathname

Similar Messages

  • Eclipse nightmare: Trying to use Build Path without muddling up the project

    I'm working on a team project for the first time ever, which is a little scary. We are using Subclipse. As soon as I downloaded the project, I noticed that I don't get any error warnings. Soon after, I noticed that Ctrl H fails to search the project.
    I thought this was all Subclipse's fault, and tried a clumsy workaround by copying the project. I had noticed that the package icon doesn't appear for the folders holding the source files and realized this is the problem. I guess Eclipse doesn't know which files are the source files. I would have thought it could tell because they end in .java, but that shows how little I know.
    After wrestling with this for hours, I figured out that I could use Build Path -> Use as source folder. For a split second, I thought I had finally solved the problem. But then all of a sudden tons of error messages showed up in every file. It turns out that when you use Build path -> Use as source folder, it moves your source folder and changes the names of the subfolders. So how on earth do I just tell Eclipse where my source files are without it moving everything around and screwing up the whole project?
    Please, somebody tell me what is going on before I pull all of my hair completely out.

    codinatrix wrote:
    I'm working on a team project for the first time ever, which is a little scary. We are using Subclipse. As soon as I downloaded the project, I noticed that I don't get any error warnings. Soon after, I noticed that Ctrl H fails to search the project.
    I thought this was all Subclipse's fault, and tried a clumsy workaround by copying the project. I had noticed that the package icon doesn't appear for the folders holding the source files and realized this is the problem. I guess Eclipse doesn't know which files are the source files. I would have thought it could tell because they end in .java, but that shows how little I know.
    After wrestling with this for hours, I figured out that I could use Build Path -> Use as source folder. For a split second, I thought I had finally solved the problem. But then all of a sudden tons of error messages showed up in every file. It turns out that when you use Build path -> Use as source folder, it moves your source folder and changes the names of the subfolders. So how on earth do I just tell Eclipse where my source files are without it moving everything around and screwing up the whole project?
    Please, somebody tell me what is going on before I pull all of my hair completely out.I have encountered similar issues with Eclipse and--though I'm not an expert--I have used Eclipse a lot.
    Can you tell us more about your project folder structure (as it exists in SVN)?
    Generally speaking, here's what I would do when start a new Eclipse project from SVN using Subclipse:
    1) Delete your current project and start clean.
    2) Open the SVN Repositories view in Eclipse
    3) Right-click the folder you are checking out as your project (for example, if your project is called ProjectFoobar and contains a trunk, right-click the trunk folder... don't check out all of the branches--use svn switch instead) and do a Checkout.
    4) Select 'Check out as a project in the workspace
    5) Give it a project name.
    6) 'Check out HEAD revision' (presumably)
    7) Depth: fully recursive
    8) Next
    9) Workspace location: make sure this the workspace you intend to create the project in
    8) Finish
    Hope that helps.
    -Thok
    Edited by: Thok on Apr 29, 2009 7:07 PM

  • Build Path will not save

    I was using a source folder before and was outputting to a
    different folder.
    I recently altered those settings to comply with some project
    regulations, now... the settings in Flex Build Path won't save.
    For example, I was relating to a Flex Library Project, now I
    don't, so I removed it but every time my project reloads, it shows
    the old setting under Flex Build Path.
    The same goes for the Output Folder and Output URL.
    Output Folder resets to bin
    Output URL resets to previews settings
    I've rechecked spellings and other mistakes, no problem
    there.

    you could manualy open following files : .project
    .actionScriptProperties
    .flexProperties and make your changes there.
    also make sure to update run and debug configurations with
    new settings.

  • Using rules to automatically save attachments in Apple Mail...

    Every time I get an attachment of a certain type from a certain person, I need to automatically save the attachment and run a script on it. Using Apple Mail, I've got the script part worked out, but I still need to automate the saving part... any ideas?

    If it is going to be called from Mail rules, it would need to be wrapped properly. Here is the script it came from. You would'nt need the on run handler.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">using terms from application "Mail"
    on perform mail action with messages theMsges
    set theAttachmentPath to (path to desktop) as text
    tell application "Mail"
    repeat with ThisMessage in theMsges
    set Attached to mail attachments of ThisMessage
    repeat with ThisAttach in Attached
    set FileName to name of ThisAttach
    save ThisAttach in theAttachmentPath & (FileName)
    end repeat
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    using terms from application "Mail"
    on run
    tell application "Mail" to set sel to selection
    tell me to perform mail action with messages (sel)
    end run
    end using terms from
    </pre>

  • Ever since I had updated my phone to ios 6, i noticed that it no longer saved photos to my camera roll.  If i download a picture on on an app, it will not automatically save it to my camera roll as it used to do, nor does it save any image

    Ever since I had updated my phone to ios 6, i noticed that it no longer saved photos to my camera roll. If I take a picture on Instagram, it will not automatically save it to my camera roll as it used to do, nor does it save any image, I just want it fixed.

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • Automate Save as, Reader Extended for 160 .pdf forms using a script or macro?

    I have 167 pdf forms made using Adobe Acrobat Pro X. when I sent out a test it could not be saved using Adobe reader. I know how to Save As; Reader Exended pdf; Enable additional features.  this also forces me to create yet another document called something different like mydoc-2.pdf. Since you can't save these feature in the existing one?
    Is there a way to automate this using javascript or something so I don't have to do each one.
    1. open each pdf documewnt
    2. set the Save As; Reader Exended pdf; Enable additional features.
    3. save as name -2
    repeat 1-3 for 167 files in folder A

    There is no Adobe supported means for automating the application of usage rights, apart from their LiveCycle Reader Extensions server-based product. This is a very intentional restriction.

  • Flex Build Path: fiber.swc, playerfds.swc & dcradSwcs automatically added after I removed them

    Hi,
    I'm working on an application which uses old Flex 3.4 (used for Adobe LiveCycle). This SDK already contains fiber.swc and playerfds.swc so I removed them from Flex Build Path. But if I reopen the project, the removed lines are there again.
    So whats wrong? Bug? This is a serious issue for me since some classes from newer fiber.swc is not backwards compatible to version 3.4.
    I'm using Flash Builder Premium 4.7. It would be great if I could solve that because I have to remove these paths everytime I open the project.
    cu Floh

    Few things I've discovered that might be able to help you.
    Make sure you download both the newest version of the playerglobal.swc (for flash player 10.1), and replace it either in your SDK files, or have it in a library (in Flex 3 you need to disable the older playerglobal, I'm not sure about FB 4)
    Use the newest OSMF.swc available from the OSMF downloads page.
    Make sure you have the compile settings for OSMF set up in your compile line (mangle for FB4 if needed):-define CONFIG::LOGGING false -define CONFIG::DEBUG false -define CONFIG::FLASH_10_1 true
    I've been able to compile flex projects using OSMF doing these steps.
    Hope this helps.
    -Will

  • Loading profile using -profile "path" in most recent WIN32 Nightly build.

    I was accustomed to loading a specified path to a folder containing a user profile, which worked for me previously from a shortcut that points to the executables path and '-profile "path to folder" ' . . I am looking to reinstate the browsers capacity to load said profile, as I rather liked that feature. Thank you for your help and continued patience.
    wubalubadubdub

    These articles should help, if you've forgotten how to use -profile "path" from the command line or Firefox shortcut
    http://kb.mozillazine.org/Bypassing_the_Profile_Manager
    http://kb.mozillazine.org/Shortcut_to_a_specific_profile

  • Library Build Path + Interfaces

    New interfaces created within a Flex Library project (using Flex Builder 3 or Flash Builder 4) are not automatically added to the project build path in the same way classes are. Is that a design feature (expected behaviour) or is it a bug? It seems a bit strange, to me at least, that interfaces need to be added to the build path manually.

    You're right, this is a bug.  I have logged it here: http://bugs.adobe.com/jira/browse/FB-20407
    Thanks for mentioning it.

  • Terminal Command, how to set defaults write, make application(s) use directory path where file last saved?

    Does anyone know whether there's a terminal command to make all applications remember/use the last directory/path where I last saved a file?
    For example, let's say there are (10) ten PDF's on a website, and I want to use Preview.app to open and save each file to the same directory.
    Problem is, after each time I save a file, Preview.app doesn't automatically remember/use the last directory where I saved my file(s).
    Forcing me to navigate back to the same directory after each time I save a file; super-annoying.
    But, for some reason, when saving images from the web, Firefox remembers the last directory where I saved the file (jpeg).
    So I'm hoping there's some way, possibly a terminal command to set/force all applications (including Preview.app) to remember/use the directory/path where file(s) were last-saved.
    Anyone?

    Get the third-party utility Default Folder X 4.4.9.

  • Build path from string control

    Does anyone know why when I Use a string constant fed into a build path function my vi creates the file properly but when I change it to a control so that I can input a number to the file name I get error 1059 unexpected file type?
    Solved!
    Go to Solution.

    I'm trying to write to a file each time I update data. Everything was working fine until i realized that each time I stop excecution and start back up I lose all data if I replace it again so I wanted to be able to add a new number of my choosing each time to the file name but keep the full base name. I also wanted it to save in a base location while creating a new folder for each month and each day. If i a string control and concatenate it the error comes from the open/create/replace function but doesn't come up when I use a string constant.
    The first picture is my vi and the 2nd is the sub vi used to create the folder if it doesn't exist
    Attachments:
    File Saver 1.jpg ‏45 KB
    File Saver 2.jpg ‏58 KB

  • Share project configuration with team and Build Path?

    Question 1:
    Is it possible to share the Flex Builder project settings (Flex Build Path, etc.) with other users?  It would be nice to be able to do this so all developers on a team do not have to follow a step-by-step procedure for setting up a project.  For example in a Java Project you can simply check-in the project and classpath files and new developers don't have to spend anytime setting up their ide.  I took a look at what flex is doing and it appears it saves this information (at least some of it) in the plugins directory.  I can't find exactly where but it seems very odd.
    Question 2:
    When setting the Flex build path is there a way to set-up a SWC Folder that recursively adds SWC's in sub-directories?  We pull in Flex libs from artifactory which places them into an un-flattened structure.  Since all the libs are in sub-dirs they are not found.  We have to manually add each lib individually?
    Any ideas on either of these questions?  Thank you.

    Re: Question 1.
    Do you mean check into SVN or similar? Anyway, it seems Flash builder is saving some configuration about build paths etc. in the .actionScriptProperties file, which is found in the root folder of a project. Another option might be to export the project as a Flash Builder project by right-clicking it in the package explorer and choosing Export?
    Re: Question 2.
    Afaik the IDE doesn't support recursively going through a folder to find all swc:s. You could probably solve this using an ANT script. E.g. the following script recursively copies all files with .swc extension from the libraries (AS3) folder to the libs folder of a project.
    <project name="swcTest" default="copy.swc" basedir=".">
        <property name="swc.src" value="${basedir}/../../libraries (AS3)/" />
        <property name="swc.dest" value="${basedir}/libs/" />
        <target name="copy.swc" description="Recursively copies swc files from source to target folder">
            <echo message="${swc.src}" />
            <echo message="${swc.dest}" />
            <copy todir="${swc.dest}" failonerror="true" flatten="true">
              <fileset dir="${swc.src}"
                       includes="**/*.swc"
              />
            </copy>
        </target>
    </project>

  • Java build path as appose to j2ee depenencies ?

    if i understand right j2ee depen. basicly means one is in another's build path and has to be deployed under the same war ?
    another thing , if i placed one java application in a j2ee project build path why do i have put the same jar in both of 'em ? wil it be deployed twice ?

    after copy&paste the missing entries from a .classpath-file of a local project to my NWDI-based projects .classpath file, the build errors are gone.
    but how to do that automatically?
    and still errors occur in the develop-config perspective:
    <i>ERROR: failed to resolve reference "sap.com/tc/..." for DC "....":Cannot find compartment of used component: sap.com:tc/wdp/metamodel/content</i>
    kr, achim

  • Stubborn Build Path errors

    I created a new Java project in Eclipse from an existing folder. I am getting errors like -
    Unbound classpath variable: 'JRE_LIB_CORE' in project 'RFT'
    Unbound classpath variable: 'JRE_LIB_GRAPHICS' in project 'RFT'
    Unbound classpath variable: 'JRE_LIB_SERVER' in project 'RFT'
    Unbound classpath variable: 'RATIONAL_FT_LIB' in project 'RFT' (I am using Rational Functional Tester API)
    I tried removing these entries from Project Properties -> Java Build Path -> Libraries, and as a replacement, added JRE System Library. When I save these settings, the errors do not go away. And when I check project properties again, all my changes have been reverted back - the variables I had removed are back.
    Can someone help?
    Thanks

    Best I can suggest is that that is entirely an eclispe problem.
    So at a minimum it should be phrased that way (subject) and an eclipse forum would be the best place to ask.

  • Including Library in Build Path

    I am using Eclipse 3.x,
    How do I add External Libraries in my Project
    Ans: Add all the external Jars in the build path (from project properites)
    What if its a huge hirarchy ?
    Ans shoud be: make a userlibrary and link that library to the folder which contains all jar files (hirarch of folders), and then include that userlibrary to your project.
    Problem; If I create userlibrary, I have to select the jar files .. not the higetst level folder, which contains all the jar files ... This is what I dont want. I want to just select a folder.. and that all, and then use this folder as the build path .. "HOW do I do this ""??
    -

    In eclpise, Drop all jar files under the lib folder of your project (including folders and subfolders).
    Right click on the project icon, go to <properties><java build path><libraries>
    Navigate to one of the sub folders. click on the top jar file, hold down the <shift> key and then click on the bottom jar file. All jar files between are selected. Add them to the project. Since this is a one-time-only effort, I wouldn't spend too much time trying to find a better short cut. You can pretty quickly go though each subfolder and get what you need.
    If you insist on your way, perhaps you need to repackage all the folders and subfolders with thier jar file in an all enclosing jar file with a manifest. I dont know how to do this.
    An alternative is to read up on Maven (the more modern way of automatically adding jar files and thier correct versions to a project). However, it will probably take you a long time to come up to speed on it.

Maybe you are looking for