LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Run-Time Menu Not Found in User.lib

Our Instrument Run-Time Menus are getting lost.

 

This is because we have some computers that are 32 bit and the code is located at

C:\Program Files\National Instruments\LabVIEW 2011\user.lib\InstrumentDrivers

 

Other computers are 64 bit and the code is located at

C:\Program Files (x86)\National Instruments\LabVIEW 2011\user.lib\InstrumentDrivers

 

The directories are thus slightly different because of how Windows treats the location of 32bit LabVIEW running on a 64 bit machine.

 

 

Does anybody have an easy work around?

 

 

 

Mark | CLA
0 Kudos
Message 1 of 4
(2,486 Views)

Mark,

 

From this KnowledgeBse it looks like custom run time menus need to reside in the same folder as the VI calling them.

 

http://digital.ni.com/public.nsf/allkb/17803AA31C8C07C986256CFD0080D609

 

Can you ensure that the custom run time is in the same location on all machines?

 

Regards,

J Newk
Systems Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,464 Views)

We are not able to ensure the run time menu is in the same location on all machines.  

 

The problem is the user.lib moves depending on if it is a 32 bit or 64 bit operating system.  

 

 

 

Mark | CLA
0 Kudos
Message 3 of 4
(2,458 Views)

I'm confused by "lost".  Do you mean when you build the path to your custom menu within your vi or are running some executable?  Is this code you have written?  If so, then maybe a simple check when initializing the paths might work.

 

If it is as simple as just having to decide between those two directories, then I would just check to see if the win64 bit directory exist, using "file directory info" vi.  If it doesn't' exist you should get an error, then check to see if the other path exists, it should hopefully, and use that.

 

Not sure if this is what you need.

 

 directory info.png

0 Kudos
Message 4 of 4
(2,453 Views)