02-15-2009 07:48 PM
After distributing my LabVIEW .exe using an installer to a clean machine, the hardware configuration silent import (VISA 4.2, MAX 4.3) works ok and I can see all devices in MAX (ethernet, GPIB and DAQmx devices) including all aliases. MAX can communicate to all such devices (instrument communication interfaces) however in the LabVIEW executable and also working from the developement environment (LabVIEW 8.5) it returns errors when trying to talk to all instruments during the initialisation!
The strange thing is, if I then go into MAX and simply rename the aliases, hit save and name them back to the required aliases as set originally by the import and used in the code everything works well again!
This has happened on two clean machines now. I Simply have to tell the customer that the installer is not so seemless and in the readme I will have to explain this procedure unless anybody can help me on this or find work around! I could move to 8.6, newer versions of MAX and VISA to help solve the issue however all our testing has been conducted on these versions of software and time is practically running out!
Thanks in advance.
Kind Regards, Steve
02-16-2009 09:05 AM
Steve,
So from what I understand, it looks like the import was successful, all the settings and aliases were correctly imported and set and you can access everything correctly from MAX. But when the LabVIEW-built executable runs and tries to access those resources, it returns errors.
Two things I would like you to try at this time:
1. Grab a NI Spy log of when you are running your executable and send it to us.
2. I am assuming you are using aliases of the instruments in your executable. Try using actual resource names instead and see if it helps. Also get a spy log of when this new exe runs.
Pankaj