path search

Hello

I have a txt file with some configuration entries for my labview application and I want to kown if I can use a funtion to automatically search for the path of the file wherever it is, or if I change my program and the file to a new pc or location I want it to be able to repath without me manually inputing the path. Is this possible?

What you ask is possible through one of two mechanisms:

  1. The text file is always in the same position relative to the calling VI.  In this case, you can build your path from the path of the call VI in stripping and adding directories.
  2. The text file is always in the same absolute position on the computer.  There is no research.  You can change this by the platform by using the structure of the conditional compilation and inset from the operating system.

You can do an exhaustive search of the entire file system, but you probably do not want the performance impact.  Option 1 is usually the best bet.

Tags: NI Software

Similar Questions

  • IK een javascript om vanuit photoshop illustrator paths search you i.e.

    IK een javascript om vanuit photoshop illustrator paths search you i.e.

    Hi Pragmeta,

    You will find an option to export paths from Photoshop to Illustrator.

    Go to file > export > traces to Illustrator.

    Please let us know if you are looking for another option.

    Concerning

    Sarika

  • [Help] LabVIEW issues finding paths...

    Is the 'tools'-'Options'------"Paths"------"Search paths" stored on the PC running LabVIEW or stored in the currently open VI?

    Also can I specify paths of research, for example: "-...-..." \.. \Library\MyLib\* ".

    Is the recursive search?  i.e. If there are subfolders with subfolders is he digging you are looking for the missing VI?

    The question I have is that I have a project in a directory structure defined by a control program Setup IE:

    Y:\test Equp\Project\Modules\Library\MyLib\ * (there may be one or more subfolders contain the VI).

    Y:\test Equp\Project\Modules\MyApplication\ * (there may be one or more subfolders contain the VI).

    On the target, the structure may be:

    C:\Final\Library\MyLib\*

    C:\Final\MyApplication\*

    The question is when I copy the files from there: on my PC C: on the PXI rack and open top level VI in "MyApplication", LabVIEW can not see the files in the "MyLib" until I say where a VI is in each subfolder in the "MyLib".  It is a pain, especially if I make changes and transfer the file in my PC as I also go through the process again!

    If I can spec a search path for library files, then just find them on my PC or PXI rack...

    Thank you

    ChristopherPovey wrote:

    Is the 'tools'-'Options'------"Paths"------"Search paths" stored on the PC running LabVIEW or stored in the currently open VI?

    It is specific to this PC. It is stored in the file labview.ini.

    Also can I specify paths of research, for example: "-...-..." \.. \Library\MyLib\*'

    You can, but this isn't really the solution to your problem.

    Is the recursive search?  i.e. If there are subfolders with subfolders is he digging you are looking for the missing VI?

    This is the meaning of the asterisk at the end of LabVIEW help:

    After selecting the directory, LabVIEW inserts the path in the text box next to the Browse button. You can change the path in this text box. When you select a path, LabVIEW search normally in this directory, but not its subdirectories. You can do the hierarchical search by adding an asterisk (*) for the new element of path. For example, enter LabVIEW / *, LabVIEW\ *, or LabVIEW: * search in LabVIEW and its subdirectories.

    The question I have is that I have a project in a directory structure defined by a control program Setup IE:

    Y:\test Equp\Project\Modules\Library\MyLib\ * (there may be one or more subfolders contain the VI).

    Y:\test Equp\Project\Modules\MyApplication\ * (there may be one or more subfolders contain the VI).

    On the target, the structure may be:

    C:\Final\Library\MyLib\*

    C:\Final\MyApplication\*

    The question is when I copy the files from there: on my PC C: on the PXI rack and open top level VI in "MyApplication", LabVIEW can not see the files in the "MyLib" until I say where a VI is in each subfolder in the "MyLib".  It is a pain, especially if I make changes and transfer the file in my PC as I also go through the process again!

    If I can spec a search path for library files, then just find them on my PC or PXI rack...

    Thank you

    The location of subVIs is saved with a VI, and it is a relative path. As you move the two directories should not be a problem finding the subVIs when you open the first level VI, so it is unclear why there is a problem here. You load VIs dynamically?

  • Problem call Matlab external function under Labview 7.1

    Hello

    I have the problem when I want to call my m.file function in the script Matlab under Labview 7.1, that labview does not seem to be able to find this external Matlab function. I searched this forum, someone talked about setting search path in the tool-> option-> Matlab search path, but it seems that it does not exist in the version 7.1.

    Is it possible to solve this problem in version 7.1 or update to the latest version, the only solution?

    Thank you

    Hello

    I think you're confusing the LabVIEW MathScript nodes and the MATLAB® script.  The MathScript node is introduced in LabVIEW 8.0 and the setting of path search that you speak to MathScript, reason why it does not exist in LabVIEW 7.1.  Look at the example of differential equation Lorenz for the MATLAB script node.  It shows how to set the path of research to be compared to the VI.  The example is found in the node of script examples\scriptnode\MATLAB - Lorenz Diff Eq.vi.

    MATLAB® is a registered trademark of The MathWorks, Inc.

    Grant M.
    Staff software engineer | LabVIEW Math & Signal Processing | National Instruments

  • deployment issues

    Hi all

    I'm new to Teststand and tried to deploy my Teststand applicatino on computer target for the last 2 days and have some questions about the deployment process.

    1. I developed my TestStand application on the D drive on my development computer. My computer has only the C drive. In this case, (note: TestExec.ini is also being rolled out) I would still need to:

    (a) change target the path search on the computer configuration after deployment, for example, adding/changing of all relevant paths in the configuration of the research to start with drive c. or

    (b) I can also do a few tricks, by setting configuration C: research in computer development, just for the sake of deployment. In this way, the deployment on the target computer will be the right search path (and the files output because directory report I specify a directory output fix reports). Then I have to change the configuration of the search on drive D for the continuation of the focus on the computer of deveopment.

    The question is: if I choose one) as deployment strategy, in order to add/change the configuration of the computer search target, I need a teststand development license. If I download a teststand development (evaluation) on the target computer, after the add/change the configuration of the search on the target computer, I disable the Teststand development and move the license to the license of deployment on the computer base target, this will do, right?

    2. shared variable deployment published network is not so straightforward. My target computer will communicate with a compactRIO with shared variables. The compactRIO controller is AES. I added a "deploy Labview Utility LIbrary step" in a sequence step and deploy this sequence on the target computer. I ran this sequence in order to deploy the variable shared on the target computer. However, I got an error saying that the shared variable library can not be deployed and to ensure that it has only shared variables in the library. I checked and you can see that there are only shared in the lilbrary variables. What could be the possible reasons? Can someone give me advice on this problem? Y at - it a tool that can scan the library and tell me if there is a 'hidden' in this library vi because I see nothing wrong with the library even with my big glasses.

    I think other shared, for example variable deployment options: a) maybe I need to download a system assessment deveopment LabView on the target and the copy on the Labview project and deploy the variable shared across the labview project. or (b) I can create a vi that uses the variable shared and using labview generation process for deploying the vi as exe. Check the option "deploy the shared variable" appropriate in the build process, run the exe on the target computer. This way I can deploy the shared variable. After deployment, disable the deveopment LabView evaluation license so there is only LVRTE on the target computer.

    (Not the one above) and b) sensible options such as shared variable deployment strategies?

    At this point, I realize that the TestStand deployment is a skill. There is no systematic deployment for TestStand approach. The experts out there agree? I just need a few entries so that I'm not on the wrong track. Thanks in advance for your comments.

    Yours,

    chati

    Hello chati,.

    version of the software you use?

    There is a known issue with the variables related to a shared library in old versions of LabVIEW.

  • Problem blackBerry Smartphones with updates/app loader/SoS - Blackberry Curve 8900

    The symbol of SoS came today and I looked up what may be causing it.  Nothing appeared to be damaged if the only other option was my software was not up to date.  Well, I installed the software for the device from RIM under my service provider, but oddly, I had no prompts to choose the directory in which I tried to install the software.  After installation, the Application loader loaded, and I clicked on "Start" on "software update."  I got a prompt saying: "Please connect your device" with a menu of dropbox and any options that it contains.   Now, my blackberry works with this computer (Windows 7) because I can access photos/music/etc through the storage using the USB.  The USB is connected when I try to use the Application Loader.   So ontop of the fact that I can't use my phone until it is updated and cannot update the phone due to software bug, I also can't FIND the path to failure again access software!  Like I said earlier, there is no no. PROMPTED to wonder where I have to install the software.  I looked on several forums for the automatic and same path SEARCH keywords such as "Research in Motion", "Device Manager", "Application Loader" and even "Blackberry" and none of these files allegedly exist.  I can access ONLY the charger of application through uninstalling and reinstalling the software, because it runs automatically after installation.  I hope that the program from a site legitimate BlackBerry (https://www.blackberry.com/Downloads).

    I am very, very upset by this phone. OnTop of the many bugs I've known throughout its use, its sad that I HAVE as a customer to update my phone my phone just otherwise stop across the network to my ISP until I do it.

    If I do not get immediate help on these issues through independent e-mail, personally never buy a Blackberry again and to discourage anyone from aswell.

    Kind regards

    Chris

    Already done this as I have explained in the original post.  Even then, I clicked on your link and was sent to the same Web site that I had already spent too except the one you sent me was strictly for East Asian languages, which I'm not going to download.  I had already downloaded the international and selected English.  The path to this program does not update the phone matter.  I have yet to come across a program that doesn't work than strictly on your C drive only.  Despite this, I have enough space on my C drive for the file - but it does not yet exist nor do ALL files/folders in the directory that was supposed to be created.
    Oh well, thanks for your help.  I guess I'll have to deal directly with RIM and waste more time with this phone.  Bugs, gel, blockings, reception loss/bad PC/updates to update software that are up-to-date and for the worst of all - a phone that forces all the reception off the power when you need to update, what a very good product.
    PS. other then Google Maps, no addons were never / have been installed. Phone never fell on a hard surface, but has a box of rubber for this instance.  Phone has no damage water (indicated by white strips) and no interior/exterior changes have been or is still made.  Never left in a hot/cold climate for long periods of time either.  So there is really no excuse other then a bad product.
    Wish me luck when they tell me to call my service provider of reception because it will not be the fault of phones; or, I will say to call microsoft, because it will not either rims software.  This is the circle of bad technical support.
    Thanks again.

  • The transition between two objects with color gradient

    Oh no! I want to make a smooth transition between objects of gradient color, but you can see a line. How can I make a smooth transition? It is not a transparant-gum... Please help me!

    probleem2.PNGprobleem.PNG

    try to use a gradient instead of the net?

    You can use the path search tool to convert forms in one section, then gradient to create the dark lines where are the current limits.

    Or you can use "pen" one of them, to blend the overlap, but you may need to add the pen to a slightly larger copy of the object and your current border point to create a mask in order to keep the edges you want to stay strong and just leave an edge of more than in the other form.

  • View object database lookup Table

    Hello

    I use JDeveloper 11.1.1.6.0.

    Reading Guide of Fusion Developer's for ADF on the sharing of the application module, I found the following note in Section 10.3.1

    Note:

    While the view read-only objects that you create to access lookup tables are ideal for inclusion in a module of the shared application, if you want to share the view object in an instance of shared application module, you must create the view object in the same package as the module of the shared application.

    My question is, why the view object must be in the same package as the module of the shared application? What are the consequences if it is not respected?

    Thank you.

    Kind regards

    Tim

    Hello

    to me, this looks like a bug in the documentation. I think that its meant to say that both, I and VO must be in the same project structure (the application package should not serious). However, I haven't run a physical test, so do not know if there would be a class path search problem (but why should there be). Probably best for you just run a test.

    Frank

  • The most effective way to create this color wheel?

    I know there are several ways to create a color circle, but in this case, there is a slight difference (ie. feature white) between the hidden images.

    I was wondering how you guys approached this creation. Thank you. Much appreciated!

    shutterstock_85920403.jpg

    The white line can be created by using the rotation tool or the transform command. In both cases, the degrees of rotation is determined by dividing the number of strokes by 360 degrees. Rotation tool, you can make a duplicate order to repeat the rotation, make sure that your rotation a copy not the original.

    Then it's you if you want the line color to match the background, or use the path search tools to cut the railways making individual piece of the wheel. This can be handy if you want to move a piece of the wheel outwards and resize it perhaps until drew attention to it.

  • Get the path after Spotlight search

    When I find a doc via Spotlight search, I know that I can click on it to access.  But how to get the full path of the file so I know the exact path where the file is located?

    Just hold down the command key to display the full path. The path appears at the bottom of the pop-up window of Spotlight.

  • When searching from a finder window, why are there no visible file path bar? Is where you enter something in the search engine.

    When searching for a finder window why don't the path bar of file at the bottom of the window disappears. Y at - it anyway to stay visible.

    Of course, I would like to know where the file or folder is where spotlight shows its conclusions. Is there a preference I need to change to make the default action to be one in which the path to the file still appears at the bottom of the finder window?

    Sorry, I discovered my problem. I didn't have a file selected in the list. As soon as I made the path to the file appears. Duh!

  • Is it CVI API functions that search fo a path given of him exist file? as "DirectoryExists.

    Is it CVI API functions that search fo a path given of him exist file? like C ++ Builder 'DirectoryExists', I tried 'FileExists', but unnecessary


  • How to stop the pop up message: do you want to add the _ directory to your search path?

    After you install LabVIEW 8.6.1f1 on a new PC, every time I choose one of my screws via her select a VI... palette, I get a pop up message saying: ' you want to add the "P:\CWalker\COREYs LabVIEW subs projects\Phoenix" directory to your search path?

    I've already added 'LabVIEW P:\CWalker\COREYs subs projects\Phoenix' in the option search for VI and restarted path LabVIEW, but the message does not appear.

    Yes, this is how I added the directory.

    Since then, I managed to stop the pop-up message.

    Of course, I had deleted some of the default values, such as "-*" of the VI option search path and that caused the popup message.

    Thank you!

    Corey

  • dll search path

    Hello

    I use a dll (created in CVI) in my main project.

    I have a few projects where I use the same dll. problem is that each project I need to keep a local copy of the dll that is not intended.

    I need to keep a single copy of the dll and I need to get from this path for all my projects.

    even thought I put it in the System 32 folder, my program is showing error as shown below

    Project link errors
    => Could not open the external module
    => abandoned the charge of the library 'path\filename.lib '.

    (1) at - it a setting I need to change to find the path of the dll?

    (2) how do I tell the program to search for the file in the path specific? Please tell the procedure

    concerning

    Phani

    (1) do not place the lib file in each project files. If you used the file add to the project and added the file the path of original project lib lib, the correct lib file will be used. Don't forget to replace the old dll in the system32 with a new one. You can configure the project to automatically copy the dll in system32.

    (2) Windows search dll several ways. The most common is search in system32 and the application directory.

    (3) you can add a path to the loadlibrary function (not recommended). If you use loadlibrary, you don't need the lib file, but you must specify to the linker how functions you need from the dll looks like. It works as a plug-in. The dll is not loaded until absolutely necessary. Documentation to read carefully before using this feature

  • Display the full path of the files found in the search tool

    I just moved my business to a new processor, and I can't figure out how to see the full path objects that I find using the search tool.  It is not enough simply to see the name of the folder in.

    Under Folder Options, I checked all the options available to display full path names, but all I get for a path name is [name of folder] results.

    What Miss me?

    How to display full path name?

    The game, 29 July 2010 17:54:45 + 0000, rtorstrick wrote:

    I just moved my business to a new processor,

    "PROCESSOR"?

    "CPU" means "Central processing unit". In modern furniture
    computers, the CPU is a relatively small chip, one
    integrated circuit. It is on the motherboard inside the computer
    case. It is not the case itself, or the entire computer, which
    includes the case and what it contains.

    I don't know how incorrect practice of the appeal of the entire computer
    the 'CPU' has started, but here's my proposal: when you buy a computer, you
    normally get the deal and what is in it, with a monitor,
    keyboard, mouse and perhaps a printer. All of these devices
    connect to the case. Because everything connects to the case, the case
    are "Central" to everything, and the term "central unit".
    has been misunderstood and misapplied it.

    and I can't figure out how to see the full path objects that I find using the search tool.  It is not enough simply to see the name of the folder in.

    Under Folder Options, I checked all the options available to display full path names, but all I get for a path name is [name of folder] results.

    What Miss me?

    How to display full path name?

    Right-click on a file name, the research found and choose "Properties".

    Ken Blake

Maybe you are looking for