Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I read data from a USB device configured as USB raw in visa

Respected pals

                         I am new to labview. Regarding my project I am working on the data transfer between USB device and PC which is running labview on it

                          my aim is to get the data from the device under test as inputs to the labview test code. But I am finding difficulty in reading the data and the following errors                          are occurring.

                         Could not perform operation because of I/O error.

                         Timeout expired before operation completed.

                         The given session or object reference is lost

every time I had changed my code when one of the above mentioned errors occurred.

So I had decided to do the basic visa read and write operations but the output is same(errors)

is it possible to read data from a USB Radices? As I had tried the examples in labview also still the same errors are repeating.

So please help me out of the above mentioned errors.

Thank you.

0 Kudos
Message 1 of 4
(3,756 Views)
What is the make and model of this USB device? Did you receive details on the very low level USB protocol that it uses? You have to get that before you attempt USB RAW. Search for a series of nuggets posted by a user called Intaris for the best information on how to use a driver you create instead of a driver from the vendor.
0 Kudos
Message 2 of 4
(3,749 Views)
 
 
Thank you for your reply.
The device I am using here is POS system. I had to get the data from the device through USb port in to the PC which is running labview on it. Before configuring my device I had went through the nuggets posted by sir Ontario. And following them I had configured my device in visa by getting the VID&PAD. Now the problem is I cannot read the data from the device and I had attempted so in trying different ways but resulting in the errors which I had mentioned above. And the example in the labview USB bulk is also given the same errors. Regarding the solutions of these errors are given in the scope of serial port but not through USB port. So can you show me the path related to how to get the data from the USB port using VISA.
0 Kudos
Message 3 of 4
(3,738 Views)

As I said, you must have the details on the low level USB protocol from the vendor. You just can't decide to use USB RAW and hope it will work.

 

Is there software from the vendor that works? Perhaps you can find a USB sniffer program, remove the VISA driver, and run the vendor's software to see the communication. And actually, if the vendor has an api, that is by far the best way to communicate. The VISA USB functions should be considered as a last ditch effort and one that is not always possible.

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