LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error message -1073807298 when connecting through USB

Hi,
 I am trying to retrive data from an instrument through serial port as well as USB,
 My vi works smoothly while connecting through serial port.
 But when i try to connect through USB Error code-1073807298
 is coming. This error comes when visa try to write to the instrument.
 From visa configure serial port.vi  no error is coming.
 Can someone suggest a method to solve this problem...Smiley Sad 
0 Kudos
Message 1 of 3
(3,045 Views)
Hi there,

If you are using the USB port, you will need to make sure that your device is detected before you can run your LabVIEW code.  Also, if you are trying to run the same code, and you're still referencing the serial port when you open your VISA session (aka the VISA Configure Serial Port.vi), you won't be able to communicate through a random USB port.  I assume when you say USB, you mean a direct connection with your instrument through the computer's USB port.  If you are using a USB to serial converter, take a look at this KB for that issue.

If you are trying to communicate with a device through USB, if it's a USB TMC device, it should show up in MAX and you should be able to open a VISA session to it without using the serial configure VI.  If it is not a USB TMC, you can follow this tutorial to set it up.

Hopefully this will help point you in the right direction!

Adam W
Applications Engineering
National Instruments

0 Kudos
Message 2 of 3
(3,026 Views)
I get exactly the same error code with a TCP raw socket connection, the weirdest thing is that I actually can read the result of the query. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
 
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA:  (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.

This is the ERROR  that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA:  (Hex 0xBFFF003E) Could not perform operation because of I/O error.
 
I enclosed the VI for your review,
 
Thanx in advance for your help,
0 Kudos
Message 3 of 3
(2,938 Views)