This widget could not be displayed.

From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication with USB Raw device

Hello, i was trying to establish communication with a USB raw device. While testing in Measurement & Automation eXplorer it's working properly. But when trying in labview, i was getting the following errror. I was giving *IDN? command to write buffer and trying read the response from VISA Read. Can anyone suggest me how to solve this problem.

 

0 Kudos
Message 1 of 24
(3,760 Views)

Is your device IEEE 488.2 compliant?

Are you able to send *IDN? command from MAX?

 

 

0 Kudos
Message 2 of 24
(3,753 Views)

You are reading too fast after the writing. Try the Basic Serial Read/Write example that ships with LabVIEW.

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 3 of 24
(3,752 Views)

@Even Deejay wrote:

You are reading too fast after the writing. Try the Basic Serial Read/Write example that ships with LabVIEW.


What mean "too fast" from your point of view? There are no any requirements for delay between write and read I/O operations. You can read answer immeaditely after writing. In case if device will not able to deliver required data, then Timeout will occurred.

 

The correct example for USB RAW communication in this case is "USB RAW - Bulk.vi" (located in LabVIEW x.x\examples\instr\visa.llb)

 

 

Message 4 of 24
(3,747 Views)

Yes, i was getting response in MAX. I don,t know whether it is 488.2 compliant or not. I was using a Transcend pendrive

0 Kudos
Message 5 of 24
(3,740 Views)

Why on earth would a pendrive response to a *IDN? request?

0 Kudos
Message 6 of 24
(3,732 Views)

I am getting response in VISA session of MAX. But while executing the VI I am getting The error.

 

0 Kudos
Message 7 of 24
(3,701 Views)

Response from MAX....

0 Kudos
Message 8 of 24
(3,695 Views)

Nonef of what you are doing is making any sense. You are certainly not getting any response in MAX. The simple fact that you managed to install a VISA driver for it is meaningless.  And where in the world did you get the idea that you would get a response from sending *IDN? to a pendrive? You just cannot make this stuff up. Why even bother with creating a USB RAW interface to a pen drive? Why would you want to override the windows driver for it?

Message 9 of 24
(3,678 Views)

@Dennis_Knutson wrote:

Why even bother with creating a USB RAW interface to a pen drive? Why would you want to override the windows driver for it?


That could be great exercise...  Smiley Happy

Message 10 of 24
(3,666 Views)