Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues reading data from a serial port in a LabVIEW executable file

I'm trying to create an executable file from a LabVIEW VI I've written in LabVIEW 2011.  The vi writes a command to a flowmeter via an RS232 cable and reads the response string.  I am using the Instrument I/O express vi to do the writing and reading.  The .exe file works fine on my computer (the computer where the vi was originally written) but I can't get it to work on any other computer.  When I open the executable it runs but no data is collected and when I stop the program I receive a VISA Read timeout error.  I've checked to make sure that the COM port is the same on each computer and I am able to use Hyperterminal to communicate with the flowmeter on the target machine.  I've installed the LV run time engine on the target machine.  Any suggestions? Thanks in advance for the help. I've attached the .VI.

0 Kudos
Message 1 of 6
(3,920 Views)

install NI-VISA?

0 Kudos
Message 2 of 6
(3,919 Views)

Hello twoss, actually what nyc recommended seems to be the solution, try installing the VISA runtime and let us know if the problem persists

0 Kudos
Message 3 of 6
(3,903 Views)

Ok I installed VISA runtime and the .exe still isn't reading data from the port. I'm getting the exact same error as before.

0 Kudos
Message 4 of 6
(3,887 Views)

Sounds like you are going to have to put in some debug helpers such as outputing error clusters to the front panel etc. in the executable to find out where the problem is.

 

Another obvious question - did you install LabVIEW runtime engine?

 

 

 

0 Kudos
Message 5 of 6
(3,882 Views)

I managed to get the .exe working thanks to a very helpful NI phone support tech. He thought the code from the instrument I/O assistant express vi might've somehow gotten corrupted. So I manually rewrote the code within the express vi and that worked. He wasn't exactly sure what might have happened but nevertheless I got it working. Thanks for the help!

0 Kudos
Message 6 of 6
(3,872 Views)