LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file path corrupted

I have one instrument that I can't get to work because LabView is looking in the wrong place for it. The files are on the c drive in the inst folder with all of the rest of the instrument vis, the other instruments work fine. when I look at the path on this PC by hovering over an existing and fully functional program, the path shows C:\Program Files (x86)\National Instruments\LabVIEW 2017\instr.lib\Keithley_2600_Series(2.5.0)_LV_2009\Keithley_2600_Series(2.5.0)_LV_2009. I've had trouble with this vi on other PCs but always got them to work. 

0 Kudos
Message 1 of 11
(2,246 Views)

1. make sure instr.lib is in the search path

        Toolbar => Tools => Options => Paths

        Click the pulldown menu, choose VI Search Path.

2. check the instr.lib path, make sure the Keithley folder is in there.

 

George Zou
0 Kudos
Message 2 of 11
(2,233 Views)
That is all correct. The vis appear in the instrument drop down. I tried running an example program and LV still can't find the vis.
0 Kudos
Message 3 of 11
(2,206 Views)

Are you using LabVIEW 2017 32-bit?  You may be running 64-bit and saved the instrument in the wrong version.

 

Suggestions:

1. Mass Compile the instrument folder (Tools -> Advanced -> Mass Compile...)

2. Open the VI Tree in the instr.lib folder and Save All

3. Open the sub-vi and it should show the browse dialog prompting for missing VIs.  Browse to find the VI and save the VI afterwards.

4. The path shown is 139 characters.  The driver may exceed the 255 character limit.  Rename the top folder.

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 4 of 11
(2,187 Views)

Thanks, I think I'm heading in the right direction anyway. Now I'm getting a GlobalVariable cmplaint.

Capture.PNG

0 Kudos
Message 5 of 11
(2,144 Views)

Hi R,

 


@RHutchings wrote:

Thanks, I think I'm heading in the right direction anyway. Now I'm getting a GlobalVariable cmplaint.


There should be no global variable within the device driver library!

 

Did it come with the original driver installation or did you add it to the library?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(2,131 Views)

It came with it. It lives in the Private folder

 

0 Kudos
Message 7 of 11
(2,126 Views)

@RHutchings wrote:

Thanks, I think I'm heading in the right direction anyway. Now I'm getting a GlobalVariable cmplaint.

Capture.PNG


It's not a "global variable" complaint; it's a scope complaint.  Your global is private in scope, and something outside the library is trying to use it.  Somebody coded something wrong.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 11
(2,076 Views)

Funny thing is, it's just this PC out of 5 or 6 that's complaining. I just got this PC from IT and had LabVIEW installed on it fresh. They didn't install the VISA so I had them do that today. It didn't help.

0 Kudos
Message 9 of 11
(2,050 Views)

I think I figured it out. After looking closely at the paths, I see they point towards the 64 bit version which didn't get installed on this PC for some reason. I'm having our IT guy install the 64bit version ASAP. I think this what mentioned in this chat somewhere but it didn't sink in.

0 Kudos
Message 10 of 11
(1,990 Views)