06-12-2015 11:17 AM
I encountered -2147352567 error when opening a serial port using LabView 2010.
The software was working perfectly fine until I upgraded Visual Studio from 2010 to 2012. However, exe files previously built by another computer would work. If I build a exe file and run it on another computer, it would also work. It just doesn't work on this computer.
I re-installed visa441full.exe and re-registered MSCOMM32.OCX. Didn't fix the problem. Then I un-installed Visual Studio 2012 and put 2010 back. Also didn't fix the problem.
Any idea ?
Thanks
06-12-2015 11:27 AM
According to this NI-VISA and LabVIEW Version Compatibility for Windows
You need at least VISA 5.0.1 to work with LabVIEW 2010
06-14-2015 10:24 AM
It worked before with VISA 4.4.1 on all computers
06-14-2015 10:54 AM
It was pure luck then because that KB articile says it is not compatible.
06-15-2015 02:17 PM
I uninstalled VISA4.4.1 and installed 5.4.1.
Problem exactly the same. BTW, My LabView is 2011, not 2010. Sorry
The strange thing is it had been working for years. Even now when it is not working, I can build a .exe file and the file will run without problem on all other computers with the 4.4.1 installed.
I must have screwed something else.
06-15-2015 02:34 PM
What is Auto_MFT.vi? I'm not familiar with that.
Your error message shows that the error is undefined, but also that it might be related to ActiveX.
What would ActiveX have to do with VISA in this case?
06-16-2015 12:07 PM
Auto_MFT.vi is the program I wrote.
In the program, I am trying to open a serial port using ActiveX
06-16-2015 12:17 PM
06-17-2015 02:04 PM
I attached the vi and the error screen shot. It won't let me attach the exe file.
The exe file would run successfully on any computer with VISA 4.4.1 and LabView 2011 run time engine. Just can't run on the computer from which it was built.
Further complicated the problem, after installing/uninstalling VISA, I lost the port tree from Device Manager. I can't see my COM port anymore. Tried a few suggestions on the web. Didn't fix the problem. Any idea on how to get it back?
06-17-2015 02:49 PM
Let's stop talking about VISA because this has nothing to do with VISA.
I'm changing the name of the thread.
I'd recommend getting rid of the MSComm active X control. It is being made obsolete by Microsoft anyway.
Change your VI's so they actually use VISA.
That error message, when I google it, seems to be generic to many ActiveX situations and says an input is invalid. Your error message says it is happening at property node argument 1. That is either CommPort or InBufferSize. ( I don't remember if those lists of arguments start at 0 or at 1.)
I'm going to assume it is the very first argument which is CommPort. Is the number you are wrigin into that (#1) the a valid comm port number?
You can try to fix this problem by paying attention to the clues that LabVIEW is giving you. But I'd highly recommend getting rid of the ActiveX stuff and start using real VISA.