LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create an executable with Serial

I have searched through all of the knowledge bases and I still haven't found my answer. So here is my problem. I have created an executable in Labview 6.1 which will talk to an instrument using a serial cable. When I run it in Labview it runs fine. When I run the executable it doesn't locate the serial port from the serial dropdown control. I created an installer to install my executable and the runtime engine. I also installed NI-VISA. It still doesn't work until I install my full Labview program. I figure I must be missing one driver somewhere. What am I missing?
0 Kudos
Message 1 of 6
(2,995 Views)
What kind of drop-down control are you using? Is it just the VISA Resource Name control or something else? Are you maybe getting the com port names from the visaconf.ini file? You should be aware that Com1, Com2, etc, are aliases and that with just NI-VISA installed, the names are ASRL1::INSTR, ASRL2::INSTR. Could you perhaps post your VI for someone to look at?
0 Kudos
Message 2 of 6
(2,995 Views)
I experienced the same problem. NI told me I had to install the driver from
the installation disk on the target machine. This worked!

Ron@ld

"DMerchen" wrote in message
news:5065000000080000004EA70000-1042324653000@exchange.ni.com...
> I have searched through all of the knowledge bases and I still haven't
> found my answer. So here is my problem. I have created an executable
> in Labview 6.1 which will talk to an instrument using a serial cable.
> When I run it in Labview it runs fine. When I run the executable it
> doesn't locate the serial port from the serial dropdown control. I
> created an installer to install my executable and the runtime engine.
> I also installed NI-VISA. It still doesn't work until I install my
> full Labview program. I f
igure I must be missing one driver
> somewhere. What am I missing?
0 Kudos
Message 3 of 6
(2,995 Views)
Yes it was just the VISA Resource name. I uninstalled and downloaded NI VISA 3.0.1 again and it seemd to work. I also talked to NI and was told I only needed the executable and the NI VISA driver to run my program which was what I thought. I ran into this before and installing NI VISA fixed it then. I will have to see when the customer gets the disk if this is working. Here is the VI's.
Download All
0 Kudos
Message 4 of 6
(2,995 Views)
Which driver...NI VISA? I am wondering if there is a compatibility problem I am running into.
0 Kudos
Message 5 of 6
(2,995 Views)
With older versions of VISA, all I ever did was install VISA run-time or the full version (that was more typical since I usually have a GPIB card to install). I just got LabVIEW 7 with VISA 3 so I haven't tried the app builder with the install Serial Port Support yet. I'll do that soon so see if there's a bug.
0 Kudos
Message 6 of 6
(2,995 Views)