Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Serial Communication

         Attached, is an example VI that continuously allows you to read and write to the scanner that I edited a little. if i write a command to the scanner that tells the scanner to ship an image, I should receive an image somewhere... no matter what i write, I receive nothing back, but when i read a barcode label it immediately gives me the code read on the barcode. Making it read untill the number of bytes is zero is not hard. Even if i set the number of bytes to read as 100 and I send a command i should receive something...
         The problem is even though i ask the scanner to ship the image, its as if its not being sent to be read. I sent the command through a terminal, I always get the image data, the command read back to me and  barcode information. So now, instead I want to do this using .NET assemblys, since the code that im using successfully gets me everything. would you know why I'm getting this error in labview through this .NET example?

Thanks!

error2.PNG

0 Kudos
Message 11 of 13
(2,253 Views)
A terminal program will usually automatically append one or more termination characters. You aren't appending any.
0 Kudos
Message 12 of 13
(2,239 Views)

Attached updated vi. it sends the command but it still doesnt give me the anything except the barcode information. at least it looks like its sending the command, but slower compared to the other program. Could you help me with the calling .NET assemble as well?
error3.PNG

0 Kudos
Message 13 of 13
(2,234 Views)