05-12-2009 09:30 AM
Hi dears,
I am a beginner in Labview. I have a program made by one colleague. It works properly in the PC where it was wrote. When I copy it to another PC, it runs. but it can not write and read the right settings and values from the instruments. The labview versions are the same and the GPIB is reconigzed.
Thanks for your help!
Milton
Solved! Go to Solution.
05-12-2009 10:35 AM
GPIB is recognized by what? Did you install MAX along with NI-GPIB? Did you install the NI-VISA runtime engine?
Doing a copy of an exe is generally a bad idea. You should really create an installer and include all of the hardware drivers and LabVIEW runtime.
05-12-2009 11:13 AM
Hi Dennis,
Sorry! I think my problem is basic.
I mean the GPIB was previously installed on the PC. I opened the MAX and made "scan of instruments". It identified the instruments(two). About the Visa Runtime Engine, I have not idea if it was installed. How can I use it or know if it is installed? How can I create that installer?
The program open and run. The instruments answer the program, but if I set any values it can not accept.
Thanks,
Milton
05-12-2009 11:20 AM
MAX lists all of the installed software.
If you have LabVIEW 8.x, then creating an installer is simply a matter of going to the Build specifications in the project, right clicking, and selecting New>Installer.
05-12-2009 11:56 AM
Hi Dennis,
I created the project and added the vi to it. But the problem is still there (the program run, comunicate with the lock in properly, but with the electrical source it can not set right values). Do you have problems, when you write a program in one PC and run it in another? Or could I run the vi directly from a Pen drive?
Thanks,
Milton
05-12-2009 12:02 PM
I don't know what you mean by adding a VI to the project. On the standalone pc, did you open up MAX to get a list of installed software? With MAX, you should also be able to communicate to the instrument directly.
No, I have no problems to run an exe on other pcs as long as all of the drivers are installed correctly. Running from a pen drive is actually a difficult thing to do.
05-12-2009 12:15 PM
Hi Dennis,
I had only the vi. I opened a new project and added the vi into. After this I made your instructions about build specifications >(right click) > new > installer. About MAX, it lists the instruments and the GPIB. I will try your last instructions.
thanks,
Milton
05-12-2009 12:30 PM
Go back to my original question about NI-VISA. You should know whether or not it is required. It's either in the code you wrote or it's not. Since you did not mention it as being listed in MAX, if your program requires it, then you need to install it.
I also have no idea why you created a new project. Did you not save the project when you first created the exe?
05-13-2009 02:50 AM
Hi Dennis,
I have one vi that I copied from the PC where it was wrote to another PC. After your first answer, I opened a new project and added this vi. Saved and follow your advice about "build specifications" > new > installer. I took this project, copied and pasted in the other PC. How can I install the NI Visa?
Thanks,
05-13-2009 09:12 AM
You do not copy and past the project anyplace. You leave it where your LabVIEW development is. In the project, there is an Additional Installers listed under categories. Go there. Select the NI-VISA runtime engine. Build the installer. Copy the built files to the pc without LabVIEW. Run the setup program.
All of this is explained in the help.
You could also download the runtime from support.