08-24-2012 03:30 PM
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?
08-27-2012 02:47 PM
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,
08-28-2012 08:07 AM
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.
08-28-2012 08:48 AM
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.