LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I decode an USB-Com data stream

Hi

I do have a scanner which is connected via USB Port (no converter used). For the communication with the PC a USB-Com port driver is installed. In LV I am using the visa serial lib to send commands to the scanner at the specified RS232 Com-port settings which works so far.

The problem I have is to decode the jpeg data stream coming from the scanner. With the same settings of the visa read.vi I get a data stream which is not correctly formated and I assume there is a mismatch or problem with the protocol or read visa.vi I am using. When I check the data coming from the scanner with an USB sniffer I see the correct data!

 

Question:

How do I read such data transfered via an USB-Com port driver with LabView? Can I use the visa read.vi therefore (visa write.vi is working)? Do I need to install a different driver first?

 

Thanks in advance

 

0 Kudos
Message 1 of 2
(2,760 Views)

Did you try to use NI SPY to check the flow of information? Programs -> National Instruments -> NI SPY

0 Kudos
Message 2 of 2
(2,722 Views)