LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

relative path

I have a source file test.c in dir C:\temp\proj\ps12\
In that sourcefile i want to load a panel form dir
C:\temp\uir.
How can I make a relative path to the uir dir ?
I have treid "MakePathname" but that only adds a path to a current path.
0 Kudos
Message 1 of 5
(3,297 Views)
try this:

hpanel = LoadPanel (0, "..\\..\\callback.uir", PANEL)) <= 0)

Steve
0 Kudos
Message 2 of 5
(3,297 Views)
Hello,
In CVI 5.5 and above, you need to have the UIR file in the same directory as the executable, or you have to specify the full path for the uir file in the LoadPanel function, like:

LoadPanel(0, "C:\temp\uir", MY_PANEL);

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,297 Views)
I beg to differ but, I have CVI 6.0 and this works for me:

hpanel = LoadPanel (0, "..\\..\\callback.uir", PANEL)) <= 0)

Check your examples directory.....

Steve
0 Kudos
Message 4 of 5
(3,297 Views)
Mmm... I suppose the absolute path for a uir file was required only in CVI 5.5, and not in 6.0. Thank you very much for correcting me.

Mika
0 Kudos
Message 5 of 5
(3,297 Views)