Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial config error -1073807246

hello,
     we have a problem opening a MOXA com port. The error code is -1073807246. My operation system is WIN2000. There is no other program controling this com port. 
    The reason is that we used a instrument ,whic is continual send data to this serial port.Therefore serial port buffer is full.  So sometimes labview can not open the port.  How can I solve this problem. (As i know: program using winAPI function can solve this problem)

Any help will be very appreciated!  Thanks!
0 Kudos
Message 1 of 4
(3,999 Views)
VI_ERROR_RSRC_BUSY BFFF0072h

The resource is valid, but VISA  cannot currently access it.

 

 

try to use the windows hyper terminal to control your serial instrument, hopefuly after that you find a solution

"Only a life lived in the service to others is worth living..." - Albert Einstein
0 Kudos
Message 2 of 4
(3,995 Views)

Thanks for your reply.

I know the error code's meaning . The key issue is labview how to empty the serial buff or reset port error flag. Because my system use some instruments which are send data continously via RS232. When my system is not running, instruments still send data to MOXA serial port. So the serial port buffer will  overflow and labview can not open the serial port.

Best regards!

0 Kudos
Message 3 of 4
(3,983 Views)

hello,

NI VISA also can solve this problem, just clear or discard the read and/or write buffer contents by using viFlush function in the programm flow.

BR

 

 

"Only a life lived in the service to others is worth living..." - Albert Einstein
0 Kudos
Message 4 of 4
(3,979 Views)