Jump to content

LabVIEW Search paths


Wim

Recommended Posts

Hi,

 

I want to adjust the search paths in LabVIEW and i was wondering if I can add an entry to search the 'current project path' including subdirs.

(a bit like teststand, current sequence path and subdirs)

 

Reason:

I have a few testsystems which run a teststand operator interface and a source distribution of my drivers (vi.lib, instr.lib and user.lib included)

 

However... we have one system with teststand and labview development, for debug and test.

 

If I build a project (teststand deployment) of my drivers, I get them in 1 folder structure. A projectfile with ALL subvi's needed vi.lib, instr.lib and user.lib included.... works on the testsytems BUT

 

when I open this project in the dev env... the project has conflicts on Xnode support, picture to pixmap, Imagedata.ctl, ....

 

I think that adding a search path in LabVIEW to search 'Current ProjectDir' including subdirs will solve my problem but I don't know the syntax for  'current project dir'  

 

don't even know if this is possible.

 

Thanks for your reply.

 

Wim

Edited by Wim
Link to post

Sure you can add or change LabVIEW search paths.  Open LabVIEW and go to Tools >> Options >> Paths, be sure and uncheck Use Default.

 

I've never had to really change this because it would search for missing VIs relative to where they used to be so as long as the file structure was duplicated it worked fine.

Link to post

@Hooovahh   I know where to adjust, just don't know how to add 'Current Project File directory' 

 

But thanks for your reply ;-)

Edited by Wim
Link to post

@Hooovahh   I know where to adjust, just don't know how to add 'Current Project File directory' 

 

But thanks for your reply ;-)

Yeah sorry.  I read your post several times and couldn't tell if you knew of the function or not.  I know of no way to set this path to the current project.  There are likely ways to do this programatically.  I assume this information is just stored in the LabVIEW.ini.  That INI could be updated.  Not sure if it can be done on opening a project, but if it can I suspect that the Project Provider Framework could do it.

@Hooovahh   I know where to adjust, just don't know how to add 'Current Project File directory' 

 

But thanks for your reply ;-)

Yeah sorry.  I read your post several times and couldn't tell if you knew of the function or not.  I know of no way to set this path to the current project.  There are likely ways to do this programatically.  I assume this information is just stored in the LabVIEW.ini.  That INI could be updated.  Not sure if it can be done on opening a project, but if it can I suspect that the Project Provider Framework could do it.

Link to post

Just had an idea...

 

in older versions of labview you could copy LabVIEW.exe and LabVIEW.ini and rename them.

Both could boot LabVIEW with different settings.

 

If this still works, I can remove the search paths to user.lib, vi.lib and instr.lib in the original LabVIEW.ini and try to load the build project with this one.

 

With the other LabVIEW.exe and other settings I should be able the use the default search directories.

 

I'm gonna give that a try on monday before trying the project provider framework.

 

Wim

Link to post

I don't have the link, but I remember someone else telling me that you can choose the INI file to use, in a command line switch.  This forces LabVIEW.exe to use a different INI file somewhere else on disk.  You could have a batch file that launches LabVIEW.exe with an alternate INI this way too.  I've never tried this so sorry if this is incorrect information.

Link to post

I don't have the link, but I remember someone else telling me that you can choose the INI file to use, in a command line switch.  This forces LabVIEW.exe to use a different INI file somewhere else on disk.  You could have a batch file that launches LabVIEW.exe with an alternate INI this way too.  I've never tried this so sorry if this is incorrect information.

 

http://www.labviewwiki.org/Custom_LabVIEW_configuration_file

Link to post

:-(

 

A quick test with changing the search paths did not solve my project conflicts ...

 

So... going further with specific INI files will not solve my issue.

 

Thanks for your support.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By drjdpowell
      I am just starting on trying to be able to use Python code from a LabVIEW application (mostly for some image analysis stuff).  This is for a large project where some programmers are more comfortable developing in Python than LabVIEW.  I have not done any Python before, and their seem to be a bewildering array of options; many IDE's, Libraries, and Python-LabVIEW connectors.  
      So I was wondering if people who have been using Python with LabVIEW can give their experiences and describe what set of technologies they use.
    • By Yaw Mensah
      I have installed Labview 2020 on Dedian Buster using the rpm to deb conversion method via alien. Due to Architecture mismatch i deleted the *i386.rpm files before conversion.
      My Problem is that after creating a project at "Build Specification"-> "rigth click" i am only able to select "Source Distribution". Application does not show up as an option. 
      I will be grateful for any suggestions.
      Thank you in advance.
    • By javier_r
      VIPM.io now allows you to post LabVIEW Resources, Ideas, and Tools. For example, you could post a link to a video tutorial or blog article about a package. You can also post ideas, like feature requests or new tools. Best of all, package developers are notified when you post your ideas and resources, and you can comment and discuss posts with the community. Take a look at this video to learn more: https://www.vipm.io/posts/664960df-f111-4e13-989a-24be8207182d/

    • By Shuvankar Das
      I want to connect My ccd camera with labview. The details of my system is given bellow. I cannot connect it please help   OS:  WINDOWS 7, 64bit   LabView Run-Time 2013(64-bit) NI-IMAQ 4.8 NI-IMAQdx 4.3   Camera: QICAM Monochrome Cooled (QIC-F-M-12-C) Model QICAM Resolution 1392 x 1040 Sensor 1/2" Sony ICX205 progressive-scan interline CCD Pixel Size 4.65 x 4.65µm Cooling Type Peltier thermoelectric cooling to 25˚C below ambient Digital Output 12 bit Video Output FireWire (IEEE 1394b) Max. Frame Rate 10 fps full resolution @ 12 bits Pixel Scan 20, 10, 5, 2.5MHz Mount Type C-mount optical format  
       
    • By javier_r
      Hello everybody!
      Wondering how many people have tried the new vipm.io site. We have added a ton of features to make it easy to Discover LabVIEW Tools and there are some cool ones coming soon.
      Check it out and let me know what you think 😀
       
      Javier

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.