LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview application that uses RS232 port not working on windows 7

Hello Everyone,

I have this equipment that has an HMI application made in labview (i'm not quite sure which version, looks like it was created in 2011). The HMI is dead it was running Win XP Pro. I've replaced it with a new one and its running Win 7 ultimate. The application installs no problem but it cannot communicate over COM port. To test, I installed it on another windows XP computer and that worked right away without anything. I don't have access to the source file I only have the installer files. 

One of the things that I noted, when I launch the application in Win7 the COM led on the equipment PLC is blinking relatively slow as compared to when connected to XP computer the LED is blinking super fast.

 

I've been struggling with this for a week now. 

 

any help will be greatly appreciated.

 

Thank you

0 Kudos
Message 1 of 12
(3,631 Views)

With the few details you gave, an RS-232 LabVIEW application that fails to work on a new PC, I suspect you missed installing the VISA drivers on the new PC.

0 Kudos
Message 2 of 12
(3,601 Views)

Hi,

Thank you for reply. I did download the newest VISA drivers and installed them. But that did not help either. Do I need to configure something? I also installed NI-Serial driver. In the NI-SERIAL troubleshooter, it does not detect any serial port for some reason. I'm not sure if that has anything to do with it.

 

 

0 Kudos
Message 3 of 12
(3,593 Views)

NI Serial is only if you have NI brand serial cards.

 

I'm sorry but there isn't enough information in your messages to help you further.  For example WHICH version of VISA did you install?  VISA only supports certain LabVIEW versions.  So imagine it probably only supports certain versions of LabVIEW built executables.

 

If you think it was built in 2011, then I suggest a version of VISA compatible with 2011.  https://www.ni.com/en-us/support/documentation/compatibility/16/ni-visa-and-labview-version-compatib...  (look at the .xlsx file at the bottom of the page which is more complete.)  Try VISA 14.0

0 Kudos
Message 4 of 12
(3,585 Views)

Thank you for the advice. I will definitely try that. I had installed the latest version that was available to download yesterday.

 

I'll keep you posted. 

 

Thank you

0 Kudos
Message 5 of 12
(3,575 Views)

Hi,

So I tried the VISA v14, and 15 and it did not help. 

I think the required VISA and labview runtime are in the installer and are installed with itbit on win XP I didn't have to install anything extra.

The new computer(proface) I'm using has on board COM port, I have also tried usb to serial adapter. With the way the omron PLC led is blinking it seems like communication is only happening one way. 

I found another post here from 2011 with similar issues. There they mentioned that they had to load device driver DVD in windows 7 to make it work.

Here is the link:

https://forums.ni.com/t5/LabVIEW/Labview-2009-Windows-7-com-port-issue/td-p/1734400?profile.language...

 

 

0 Kudos
Message 6 of 12
(3,512 Views)

What is "itbit"?

 

Take a screenshot of device manager in Windows so we can see the Ports branch of the tree expanded.

 

Take a screenshot of NI-MAX (Measurement and Automation eXplorer).  Make sure the Devices and Interfaces and Software branches of the tree are expanded.

 

 

0 Kudos
Message 7 of 12
(3,504 Views)

Hello,

Sorry it was a typo it was supposed to be "it but".

Please see screenshot attached below. I have also used a serial sniffer to get some data. it does look like there is communication both ways but I am not sure how to read the data. Those files very big to attach here.

I also wanted to mention that I am currently trying this on a different Win7 machine to rule out the system. I am running into same behaviour. Here I am using USB to Serial adaptor.

Download All
0 Kudos
Message 8 of 12
(3,458 Views)

According to those screen shots it looks like it should work. 2 stop bits is a bit unusual, as is 38400 baud, but if it fits the instrument it should be fine.

What i usually do is try to perform the commands in MAX to verify Communication and settings. Apart from drivers for com ports and usb-dongles it shouldn't be much hassle.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 12
(3,450 Views)

Hello, thank you for reply.

I'm also thinking this could be as simple as windows permission problem. Even though I'm launching it as administrator but I don't know if some dependacies running along side it maynot have permission. It does launch tftpd application along with the launcher, I've run that with as administrator as well.

0 Kudos
Message 10 of 12
(3,443 Views)