Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to run a Labview program in other pc

Solved!
Go to solution

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 

0 Kudos
Message 1 of 15
(4,578 Views)

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.

0 Kudos
Message 2 of 15
(4,570 Views)

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 

0 Kudos
Message 3 of 15
(4,566 Views)

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.

0 Kudos
Message 4 of 15
(4,564 Views)

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 

0 Kudos
Message 5 of 15
(4,558 Views)

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.

0 Kudos
Message 6 of 15
(4,555 Views)

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 

0 Kudos
Message 7 of 15
(4,552 Views)

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?

0 Kudos
Message 8 of 15
(4,548 Views)

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,

 

 

0 Kudos
Message 9 of 15
(4,537 Views)

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.

0 Kudos
Message 10 of 15
(4,522 Views)