LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial vi build problems

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

 

0 Kudos
Message 1 of 9
(3,521 Views)
0 Kudos
Message 2 of 9
(3,514 Views)

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

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 9
(3,485 Views)

@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.

0 Kudos
Message 4 of 9
(3,480 Views)

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.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 9
(3,477 Views)

I don't think you looked up the error. It means the resource is there, it just can't be accessed.

0 Kudos
Message 6 of 9
(3,475 Views)

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

0 Kudos
Message 7 of 9
(3,456 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(3,450 Views)

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

0 Kudos
Message 9 of 9
(3,443 Views)