File path changing my code?

Hi,
I am using labview 7 to take voltage readings from a discharge detector, convert them to digital using NI PCI 4474 card then hopefully integrate them. A program for a similar function has already been written for the same card, but when i copied this program to a different PC and changed the file directory, the wire from task out on the DAQmx Stop Task.vi to the DAQmx Clear task.vi "task in" gets broken, and I can't figure out why or how to solve this. I know I need to do quite a bit of development to this program for it to meet my specific needs, but this just makes no sense, can anyone please help?? I've posted the code below.
Cheers  
Attachments:
ScanTestb.vi ‏154 KB

Start by looking at the file path. 
You can write the base path in "Folder Path", such as C:\test_DA (or whatever you want).   The right-click the "Folder Path" control and select Data Operation and make current value default.  Just to try as a quick fix ..
RayR
Message Edited by JoeLabView on 06-02-2008 07:36 PM
Attachments:
DefaultPath.PNG ‏9 KB

Similar Messages

  • DATA Log file path change in sql

    Dear experts,
    due to non avaibility of space in disk i have move my SAPLog file in another drive, but now my SAP working fine but when i try to change path in SQL 2005 its not giving me permission to do.
    please let me know how to change log file path in sql 2005.
    & if infuture i change my SAP 1 DATA file path how we change configure new path for dabase  in SQL 2005.
    Regards,
    jitendra.

    Hi
    Kindly go thru below web links. before start the process stop the SAP instance.
    http://support.microsoft.com/kb/224071
    Set the log DB size - http://help.sap.com/saphelp_nwce72/helpdata/en/f2/31ad9b810c11d288ec0000e8200722/content.htm
    and ref the SAP Note 363018
    Regards
    Sriram

  • Blu-ray Ojbect: slideshow raams, Error:"internal error 11" (file path not found), Code:11, Note ""

    I have no idea what is going on.  I have 8 slideshows in my Encore cs4 project.  I delete the one it says is bad and redue.  Then it goes to the next one and says this error.  The file that is being imported that is said could not find file path is right were all the other files are.  Any ideas?

    Encore Roxio component problem http://forums.adobe.com/thread/400484?tstart=0
    More on Encore and Roxio http://forums.adobe.com/thread/528582?tstart=0 or direct to
    http://kb.roxio.com/search.aspx?URL=/content/kb/General%20Information/000070GN&PARAMS
    Long File Names Cause Crashing http://forums.adobe.com/thread/588273
    Encore Tutorial http://www.precomposed.com/blog/2009/05/encore-tutorial/
    Also... the more DETAILS, the better... This is aimed at Premiere Pro, but may help
    A link with many ideas about computer setup http://forums.adobe.com/thread/436215?tstart=0
    Work through all of the steps (ideas) listed at http://ppro.wikia.com/wiki/Troubleshooting
    If your problem isn't fixed after you follow all of the steps, report back with the DETAILS asked for in the FINALLY section, the questions at the end of the troubleshooting link... most especially the codec used... see Question 1

  • How to specify a file path in java code to run on Unix machine?

    Hi
    I have a problem when running my project Swing on Unix machine.
    In my code, the user will press a button and then the program will look for the file "ReadMe" in the folder "Documentation" , and reads the content of this file. My code is "Documentation\\ReadMe" and it works well on PC. (The folder "Documentation" is in the same directory with my Java code).
    But when I try on Unix, the program can not read the file. It can only read the file "ReadMe" if I take this file and put it in the same directory with my Java code ( this means not through another folder). So how can we make it read the file in a folder ? It seems that "Documentation\\ReadMe" does not work in Unix, or the symbol "\\" does not work.
    I would be thankful if anybody can help me with this.
    Thank you very much

    You really shouldn't use any path method, as neither are very consistant or platform independent. The JVM provides a way to grab resources from the classpath. These resources can be any data at all, in fact, it's how java itself locates classes. Here's an example how you would do this in a non-static method.
    public URL getReadMe() {
      // In this context the forward slash is universal
      String docDirectory = "Documentation/"
      // We have to use the classloader to grab the resource
      ClassLoader cl = this.getClass().getClassLoader();
      // Next we get the resource 
      URL readMeURL = cl.getResource(docDirectory + "ReadMe");
      return readMeURL;
    }The URL can be used in whatever way you need to get the information out of the resource. If it was an image you might use the "Toolkit" to make an image object out of it. The great thing about this method is it will work even if your loading the program out of a Jar file. The resource paths start at the top of the classpath, just like classes.

  • Compensate for file path changes in dynamically loaded HTML?

    I'm using DWCS3 to work on a site which has the HTML inside a "Content" folder. The site's programmer uses AJAX to load the HTML into ASPX files which are in the root folder. So, although the HTML files are in the Content folder, all of their relative paths (links, images, etc.) must be set as if they are in the root folder.
    My question is this: In design-time, is there any way that I can get Dreamweaver to treat the files in the Content folder as if they were in the root folder?
    Thanks.

    Thanks for answering, Murray.
    That's what I'm doing now, but it makes some of the features in Dreamweaver unusable. For example, in the Link Checker each of the root relative links in these documents shows up as a broken link, and the items to which they're linking appear as orphans. I know this can be managed with another workaround (moving the files into the root in design time, and then moving them back into the Content folder before publishing).
    I was just wondering if there was a setting (or script, plug-in, etc.) in which I could tell Dreamweaver to treat these files as if they were in the root.

  • Song file paths changed to images

    i have my music folder set to an external harddrive and for some reason SOME of the songs to another harddrive and is pointing to random image files....is there any way to fix this and get it to find the correct files without re adding themm and trying to figure out which ones were added and then sorting duplicates again...???

    i have my music folder set to an external harddrive and for some reason SOME of the songs to another harddrive and is pointing to random image files....is there any way to fix this and get it to find the correct files without re adding themm and trying to figure out which ones were added and then sorting duplicates again...???

  • File path for excel file

    Hi Everyone,
    I am writing and reading data from an Excel file (see code) and it works but I have to specify the path in the script and if I want to change the file I have to change the file path in the code.
    I would like to create a window that pops and asks the user to pick the excel file he wants to work with, copy the path and replace
    "C:\Users\Public\Documents\National Instruments\DIAdem 2012\Documents\Constant Radius\USED\Test.xlsx" by that path.
    I hope someone can give me a hand with this.....
    Thanks
    Leo
    Dim Excel,a Set Excel = CreateObject("Excel.Application") Excel.Visible = TRUE Call Excel.Workbooks.Open("C:\Users\Public\Documents\National Instruments\DIAdem 2012\Documents\Constant Radius\USED\Test.xlsx") a=Excel.ActiveSheet.Cells(1,1).Value Excel.ActiveSheet.Cells(1,4).Value = RV1(1) Excel.ActiveSheet.Cells(2,4).Value = RV1(2) Excel.ActiveSheet.Cells(3,4).Value = RV1(3) Excel.ActiveSheet.Cells(4,4).Value = RV1(4) Excel.ActiveSheet.Cells(5,4).Value = RV1(5) Excel.ActiveSheet.Cells(6,4).Value = RV1(6) Excel.ActiveSheet.Cells(7,4).Value = RV1(8) Excel.ActiveSheet.Parent.Saved = FALSE Excel.Quit Set Excel = Nothing
    Solved!
    Go to Solution.

    Dim Excel,a
    Set Excel = CreateObject("Excel.Application")
    Excel.Visible = TRUE
    Call Excel.Workbooks.Open("C:\Users\Public\Documents\National Instruments\DIAdem 2012\Documents\Constant Radius\USED\Test.xlsx")
    a=Excel.ActiveSheet.Cells(1,1).Value
    Excel.ActiveSheet.Cells(1,4).Value = RV1(1)
    Excel.ActiveSheet.Cells(2,4).Value = RV1(2)
    Excel.ActiveSheet.Cells(3,4).Value = RV1(3)
    Excel.ActiveSheet.Cells(4,4).Value = RV1(4)
    Excel.ActiveSheet.Cells(5,4).Value = RV1(5)
    Excel.ActiveSheet.Cells(6,4).Value = RV1(6)
    Excel.ActiveSheet.Cells(7,4).Value = RV1(8)
    Excel.ActiveSheet.Parent.Saved = FALSE
    Excel.Quit
    Set Excel = Nothing
     Hi,
    I am just repasting the code. I don't know what happened earlier but everything went on the same line, sorry

  • XsltCollaboration code file path exceeds 255 characters

    All,
    I'm trying to build a Deployment Profile for a CAPS project containing an XSLT Collaboration Definition. I managed to build the Deployment Profile previously with persistence turned off. After turning on persistence (Persistence for Reporting set to 'Yes' on the only Business Process in the project) and re-building the Deployment Profile I was greeted with an Exception dialog containing the following:
    com.stc.codegen.framework.model.CodeGenException: code generation error at = svcXCDXform - XCE CodeGen
    XsltCollaboration code file path
    C:\DOCUME~1\DAMIAN~1\LOCALS~1\Temp\builds\prjBPXformdpBPXform\svcXCDXform_ejb\xcdXform_Runtime_Handler.java
    exceeds 255 characters. Shorten XsltCollaboration name or recreate Connectivity Map with shorter name to solve this problemI don't think turning persistence on has anything to do with this error but mentioned it because that was the only change I made before re-building. Can anyone shed some light on why CodeGen is building in my local temp folder and not the Path which I have set in the Enterprise Designer | Build Options? Is this a completely different path?
    FYI - I am using Java CAPS 5.1.2.
    Thanks,
    Damian

    Change the Windows Environment Variables for the Temp folders to something like C:\TMP
    Not sure but i've noticed that the folder specified for CODEGEN_LOCATION is ignored in older versions of JCAPS.

  • Change file path of embedded pictures

    I'm sort of a beginner with Applescript, but I created an application in it that takes screenshots of different web pages and saves them in my Pictures folder. I have a proposal template in a Word document that has these pictures linked and embedded into it. Whenever I want to create a new proposal, I run the application and get the specified images I need, and update the links in the Word doc so that the new images display. I then break the links and save the doc as something else. 
    Anyway, I have a colleague who would like to use this application. The files in the Word doc are linked to Macintosh HD/users/Me/Pictures. How can my colleague easily set all the images in the Word doc to their own file path, ie Macintosh HD/users/MyColleague/Pictures?
    Something like
              tell application "Microsoft Word"
                        set the path of active picture to "Macintosh HD:Users:MyColleague:04-ReportMenu.jpg"
              end tell
    Multiple salespeople will eventually be using this script. If I could add a function into my Applescript app so that whenever the proposal template is opened, the path to the images is changed to that users's picture folder, that would be amazing. Other solutions are welcomed.

    Sure, thanks for the reply. My organization created a sales proposal generator in Word. It creates a sales proposal based on some user inputs. Embedded in the proposals are demonstrations of our product in the form of screenshots of our product from our website. One of our designers updates the standard images with customized branded images for the client we are pitching. It's very time consuming to get these new branded images from the web, crop them and swap them out in the Word proposal, so I created an app that will do it. The app visits a list of pages, takes a screenshot of the Safari window and pastes a named image in my Pictures folder. I embedded the images in the Word doc so that they link to my Pictures folder. All I have to do is update the links and I have a new branded proposal. It works great on my own machine, but if I share it, the path obviously breaks and the Word image update doesn't work.
    Here's a snippet of my code. The following takes a screenshot of our site and saves it in Pictures:
      -- Report Screenshot
      delay 1
                        tell application "Safari" to set the bounds of the front window to {0, 20, 915, 935}
                        delay 0.1
                        tell application "Safari"
                                  tell window 1 to set URL of current tab to "https://website.com/demox?rm=report"
                                  delay 4
                        end tell
                        do shell script "screencapture -o -l$(osascript -e 'tell app \"Safari\" to id of window 1') ~/Pictures/05-Report.jpg"
              end tell
    The links in Word update to the brand-specific images I just grabbed once I select Edit -> Links -> Update Now
    I need a quick way, in Applescript, to update /Users/me/Pictures/photo.jpg to Users/MyColleague/Pictures.jpg in Word. Does this help at all??

  • :-)  How can we change the default file path for Bank file ( dmee ) ?

    Hi All,
    We encounter a problem.
    Electronic bank file ( created after a F110 run ) are created, in an automatic way to the DIR_TEMP directory. ( On the SAP server )
    How can we change the default file path for Bank files ( dmee ) ?
    We'd like to specify another path.
    Thx for your help.
    Erwan

    Hello,
    Make sure that you have created the directory in transaction code AL11 with the help of basis consultants.
    You can link your PC directory to the application server.
    You can maintain the path whether your file needs to get saved in OBPM4 against your DMEE structure example GB_BACS etc.
    If you do not maintain any path in OBPM4, then the file gets saved to temporary directory. If you give the directory path name in OBPM4, then the file gets saved to that directory with numbers 0001, 0002, 0003 etc till it reaches 9999 and reset from the beginning.
    If you give the path as well as file name as ABCD, then the file gets generated to that directory folder with ABCD0001, ABCD0002, ABCD0003 etc. till it reaches ABCD9999 and reset from the beginning.
    Hope this solves your problem.
    Regards,
    Ravi

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • Can I change the file path that itunes reads my music files from? 65000 files trying to be transferrd from external to internal HD. I dont want itunes to manage my collection, just read it. thanks

    Can I change the file path that itunes reads my music files from?
    I have about 65000 music files that i have transferrd from my external to a new laptop internal HD.
    I have organised the folders myself as I use a PC and do not want itunes to organise the folders because when I'm searching through music on windows it is sorted out by artists/albums with 'the...(eg  The Beatles)' under 'T' instead of 'B'.
    Long story short.... Is there any way that I can keep my itunes library as it is on the external HD and copy it to the new laptops C drive, keep all the info (playlists etc) and still have the same folder structure as on the external HD?
    Or, is there any way of making windows sort things in alphabetical order like it is in itunes (eliminating the 'the' issue)?

    The files that weren't inside the media folder on the original machine need to be copied over to exactly the same paths as they had on the source machine. See this thread for an ongoing discussion of a similar problem. See also this post on migrating the iTunes library.
    tt2

  • External hard drive -- old file path from a previous laptop is still where to find my songs,  how do I change?

    My iTunes library is a mess, it is stored on an external hard drive.  My old laptop died unexpectedly and I didn't have a problem resetting the file path for the library on my new laptop.  The other day my son was trying to update his iPod when I wasn't home and I don't know what he did.... GRRRR  Any songs I purchased on my old laptop are now not able to be found.  When I click on 'get info' on a song it shows the old file path from the old laptop.  Songs that I purchased since the new laptop are still playable and great.  I know my songs are still there but I can't seem to get the file path to reset on the old music.  HELP!!! PLEASE

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or an external drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • How to set the File Path to run a javascript using Plugin Code?

    Hi All,
    Im new to Indesign Plugin Development.Can any one help me out with my problem.
    What i want to do is to run a javascript using Plugin Code.When i went through this forum i was able to find out that i should use the IscriptRunner Class to automate this.I could also figure out that the Member Function to use is "CanHandleFile" &"RunFile".
    The first parameter in CanHandleFile & RunFile Member Function is to specify the path of the JavaScript File i suppose!I could also find out that IDFile has to used to set the file path Information.
    But im clueless how to set the Javascript FilePath using IDFile.Can any one help me how to do this?Any Code Snippets Please?
    Waiting for reply.
    Thanks
    myRiaz

    Hi,  Andreas<br /><br />  Can you explain this in detail? I found it in your post before.<br /><br />  The content of elements are returned through the Characters callback function:<br /><br />From ISaxContentHandler.h:<br /><br />/**<br />        Receives character data<br /><br />The parser will call this method to report each chunk of<br />        character data. SAX parsers may return all contiguous<br />        character data in a single chunk, or they may split it into<br />        several chunks. But all characters in any single<br />        event must come from the same external entity so the<br />        Locator provides useful information.<br /><br />Note some parsers will report whitespace using the<br />        IgnorableWhitespace() method rather than this one (validating<br />        parsers must do so).<br /><br />@param Chars The characters from the XML document.<br />        */<br />virtual void Characters(const PMString& chars) = 0; <br /><br />  What i have done is implement my own SAXContentHandlerServiceBoss, and in my file XXXSAXContentHandler.cpp, I override the fonctions StartElement, EndElement, and Characters() like below: I add the PMString xmlData to collect the file content:<br /><br />class XXXSAXContentHandler : public CSAXContentHandler<br />{<br />void XXXSAXContentHandler::Characters(const WideString& chars)<br />{<br />xmlData.Append(chars);<br />}<br /><br />void XXXSAXContentHandler::StartElement(const WideString& uri, const WideString& localname, const WideString& qname, ISAXAttributes* attrs)<br />{<br />xmlData.Append("<"); xmlData.Append(localname); xmlData.Append(">");<br />}<br />void XXXSAXContentHandler::EndElement(const WideString& uri, const WideString& localname, const WideString& qname)<br />{<br />xmlData.Append("</"); xmlData.Append(localname); xmlData.Append(">");<br />}<br /><br />}<br /><br />and in my program, I use the code below to call the fonction I overrided, but I dont know how I can get the String xmlData I defined in the XXXSAXContentHandler.cpp<br /><br />InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br /><br />InterfacePtr<IK2ServiceProvider> xmlProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, kXMLParserServiceBoss));<br /><br />InterfacePtr<ISAXServices> saxServices(xmlProvider, UseDefaultIID());<br />InterfacePtr<ISAXContentHandler> saxHandler(::CreateObject2<ISAXContentHandler>(kXXXSAXContentHandlerServiceBoss));<br />saxHandler->Register(saxServices);<br />bool16 parseFailed = saxServices->ParseStream(readStream, saxHandler);<br /><br />Can you give me any help?<br /><br />Thanks and regards!

  • File path control-how to avoid the user to change the path string

    Hi all,
    I'm using "File path control" to chose file name. I don't want the user to write the path in the control directly (by typing) but only to choose the file via the button on the right.
    I can implement this behaviour with path indicator and button of course. But I belieave that it can be done more elegant - only disable the part with the string - not the whole "File path control". But how? I tried to customize the control but not success.
    Is it possible?
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    Path.vi ‏44 KB

    The way I've done it is to make the path part of the control tiny and hide it behind a string indicator.  Then whenever the path control changes value (by pressing the Browse button), I populate the string indicator with the path value.  Here's a sample VI demonstrating this method, saved in LabVIEW 8.0.
    Hope this helps,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    path_browse.vi ‏12 KB

Maybe you are looking for