LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code 1073676294 in visa read

Hi
 
I am communicating to my instrument over a serial link using string commands with the the code attached.  I keep getting the error code 1073676294 pop up at the serial read function.
 
This is strange though because the VI seems to execute ok, i.e. the error handle transmits the ok message despite the error code popping up.
 
Can anybody shed light on this?
 
Many thanks
 
Ashley
0 Kudos
Message 1 of 5
(11,944 Views)
I looked up the error code, and all it's saying is that when you called VISA Read, it returned the same amount of data that you requested and there could be more waiting.  This happened because you have the property node with "Bytes at Port."  I imagine this is just a warning.  If you set the byte count input of VISA Read to something high like 4000 instead of using the property, you won't get the error.  Make sense?
0 Kudos
Message 2 of 5
(11,931 Views)
Many thanks Marc
 
Does indeed make sense
 
Regards
 
Ashley
0 Kudos
Message 3 of 5
(11,922 Views)

Hi,

wouldn't setting the bytes to read at a very high number (4000 is suggested) have some negative side effects (lowering performance springs to mind).

I have this error even though I've been a good boy and checks the number of bytes at port with the "serial instr" node (the serial instr returns a too low bytecount) and I'm looking for a solution.

0 Kudos
Message 4 of 5
(11,720 Views)
Not really. It will stop reading when it gets to a termination character. I always just set it to a number bigger than what I'm expecting. If it never gets a termination character and isn't able to get as many bytes as you told it, you'll get a timeout expired before operation completed error. Although that shouldn't happen if everything is set up right. The error Ashley was getting is really just a warning, though. It's telling her that there still might be data at the port. Simply adding 1 to 'bytes at serial port' would probably even get rid of the error.

Message Edited by Marc A on 03-29-2007 08:37 AM

0 Kudos
Message 5 of 5
(11,714 Views)