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.
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.
05-07-2012 04:28 AM
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.
05-07-2012 04:54 AM
Is your device IEEE 488.2 compliant?
Are you able to send *IDN? command from MAX?
05-07-2012 05:04 AM
You are reading too fast after the writing. Try the Basic Serial Read/Write example that ships with LabVIEW.
05-07-2012 05:24 AM
@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)
05-07-2012 06:03 AM
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
05-07-2012 08:10 AM
Why on earth would a pendrive response to a *IDN? request?
05-09-2012 05:57 AM
I am getting response in VISA session of MAX. But while executing the VI I am getting The error.
05-09-2012 06:02 AM
Response from MAX....
05-09-2012 09:10 AM
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?
05-09-2012 09:29 AM
@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...