12-07-2012 07:03 PM
Hello All,
My Configuration:
WIndows 7 64bit
LabVIEW 2010 32bit with application builder SP1
My application runs fine as source code but when I build it the serial vis used do not work and report the following error:
-1073807246
Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->Initialize Serial.vi
Is there a work around for this problem?
Thanx,
Karl
12-07-2012 09:19 PM
12-10-2012 12:53 AM
Hi jkarl,
Error 1 means parameter passed to the input is invalid or it treats the input as wrong input,
Are you sure that you have COM port in your CPU ?
Please verify this.
Thanks
12-10-2012 01:00 AM
@Ranjeet_Singh wrote:
Hi @jkarl,
Error 1 means parameter passed to the input is invalid or it treats the input as wrong input,
Are you sure that you have COM port in your CPU ?
Please verify this.
Thanks
Where do you see Error 1 in the OP? Look again.
12-10-2012 01:10 AM
What i mean to say friend that -1073807246 i.e. VISA cannot access it. Now a days moden PC there is no COM port so for this you need to use some third party software. Same like error 1. I am not focusing on Error 1. I can see error code in problem, May be my words are not correct.
12-10-2012 01:19 AM
I don't think you looked up the error. It means the resource is there, it just can't be accessed.
12-10-2012 02:25 PM
Hello All,
So it turns out that LabVIEW can hold open this port and I may not have closed it properly as well in my code, but the problem goes away when I exit LabVIEW and run my executable without LabVIEW resident
Thanx,
Karl
12-10-2012 02:30 PM
@jkarl wrote:
Hello All,
So it turns out that LabVIEW can hold open this port and I may not have closed it properly as well in my code, but the problem goes away when I exit LabVIEW and run my executable without LabVIEW resident
Thanx,
Karl
That is correct. Which is why you need to close out your ports when you are done with them.
12-10-2012 02:50 PM
A lot of serial port problems can be eliminated with a simple VI containing the VISA Close.vi and input the COMport you are using. If you have created a VISA Alias for the port, use the COMport # instead. Run this VI any time you get that error message. Saves having to quit LabVIEW and restart.
As you have figured out, LabVIEW can hang onto a port and not release it cleanly if you open the port and the VI does not close it properly. This happens when your VI croaks during execution and fails to close the port or if you use the Abort Execution button on the menu bar to stop the VI during execution.
JohnCS