LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve file paths from design tree?

Is there a way to get the relative or absolute from a file in the design tree (CWS or PRJ file) for use in the source code at compile time?

 

In other words, I have a project with this attached library:

2018-07-11 12_59_05-c__..._01005TF400-SW Auto Burn-In_01005TF400 Auto Burn-In.cws.png

This is a general purpose library that I use in multiple projects.  There's no guarantee that each project has checked out this source with the same local directory structure from SVN.

 

Using the cursor files in the library source looks something like this:

 

stopCursor = LoadCursorFromFile("\\Cursors\\stop_20x20.cur");

As you can imagine, that path easily gets corrupted.  It would be nifty to somehow have a lookup or macro that gets the path from wherever/however you've added the files to the file tree.

 

 

0 Kudos
Message 1 of 3
(2,381 Views)

What version of CVI are you using?

 

Can you right click on your items and select Explore Directory to open up the Windows directory where they are saved to get the file path?

Dane S.
Product Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,340 Views)

This is CVI 2017, version 17.0.0 (295).

 

Yes, I can explore directory the way you described.

0 Kudos
Message 3 of 3
(2,335 Views)