Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Who can I define for an executable application the com-ports for VISA controlls?

Hi,
I want to use an executable version of my application on a pc, where LabVIEW is not installed. I defined the values of my VISA controlls with MAX, leading to the standard names "Com1" and "Com2" for the seriell ports.

But on the pc, where I want to use the application, the standard names are not recognized, leading to an error.

What can I do?

Thanks for your help!
0 Kudos
Message 1 of 6
(4,146 Views)
Don't use the VISA alias in this case. Use the actual VISA resource names which are:
ASRL1::INSTR = COM1
ASRL2::INSTR = COM2

This should work on any computer. Make sure of course that the computer has VISA installed.
0 Kudos
Message 2 of 6
(4,146 Views)
Thanks, but this leads to 2 new questions (which I try to write this time without a stupid mistake like who instead of how 😉
1.) Does installing VISA on another pc require a licence of LabVIEW? Can the installation of VISA be combined with the installation of the executable?

2.) How can I remove the changes in LabVIEW, that MAX did for defining the com names without uninstalling MAX?

Thanks for your help!
0 Kudos
Message 3 of 6
(4,146 Views)
1) there was recently discussion of exactly this issue here on the forum at this location http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000BB2A000...

2)I don't think you have to redefine the names, VISA is supposed to recognize both aliases and resource names. I just tested the viOpen command and it returns proper results with both "COM1" and "ASRL1::INSTR". so if you just change t
he string you pass to viOpen everything should work fine.
0 Kudos
Message 4 of 6
(4,146 Views)
Thanks!
It seems to exactly what I searched for!
0 Kudos
Message 5 of 6
(4,146 Views)
Hi,
your links were very useful and some of my problems are solved. But the automatic installation of the VISA-driver doesn't work. I'm using LabVIEW6.1 with VISA2.6. I have included all files of the NI-visa directory of the LabVIEW-CD as support files in my application and inserted the setup-file "NIvisa26.msi" as executable in installer settings/advanced.
When I install my application, the following error message is displayed:

"Internal error 2743. NI_CA_EXE,
(installpath)\data\NIvisa26.msi"

I didn't found the error in the knowledge base.

Another problem is, that all install files (NIvisa26.msi and the required *.cab files) are copied to the data directory of my application. If the installation would work, I had to delete this files "per
hand", which is a little bit stupid for an "automatic installation".

Though my questions are:
1.) What is the problem with the internal error?
2.) How can I install the VISA-driver without copying the install files in the data directory?

Thanks for your help!
0 Kudos
Message 6 of 6
(4,146 Views)