LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa error

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

Download All
0 Kudos
Message 1 of 16
(4,751 Views)

According to this  NI-VISA and LabVIEW Version Compatibility for Windows

 

You need at least VISA 5.0.1 to work with LabVIEW 2010

0 Kudos
Message 2 of 16
(4,746 Views)

It worked before with VISA 4.4.1 on all computers

0 Kudos
Message 3 of 16
(4,698 Views)

It was pure luck then because that KB articile says it is not compatible.

0 Kudos
Message 4 of 16
(4,684 Views)

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.

0 Kudos
Message 5 of 16
(4,639 Views)

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?

0 Kudos
Message 6 of 16
(4,627 Views)

Auto_MFT.vi is the program I wrote.

In the program, I am trying to open a serial port using ActiveX

0 Kudos
Message 7 of 16
(4,596 Views)
Then VISA is irrelevant. I don't understand the purpose of not using VISA but since you aren't, you would need to at least post the custom code or check a Microsoft board since it is a visual studio problem.
0 Kudos
Message 8 of 16
(4,585 Views)

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?

Download All
0 Kudos
Message 9 of 16
(4,554 Views)

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.

0 Kudos
Message 10 of 16
(4,541 Views)