LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB raw out-pipe access

I'm trying to control a Metex M-3890D (aka Voltcraft M-3890D) Multimeter via its USB-port.
I've created the *.inf-file using the VISA device driver wizzard provided by NI. After installation
the device is shown in MAX as USB0::0x0925::0x1234::NI-VISA-0::RAW and I defined
MetexUSBDMM as VISA alias.
 
By using an USB-monitor I've explored that "0x65, 0x65" has to be sent to the Metex via
control endpoint to request the data, which will be sent via Interrupttransfer.
 
Based on an example given by NI I wrote a small VI to perform the request, but all that
I get is an error message (code -1073807302, VISA:  (Hex 0xBFFF003A) Unable to start operation
because setup is invalid (due to attributes being set to an inconsistent state)) or LabVIEW 7.1
crashes completly. You will find that VI as attachment.
 
My questions are:
 
What might be the reason for that error and how to correct it?
Is there anybody who ever used USB-raw communication within LabVIEW successfully and
could give me an example?
 
Thanks
 
Steffen
0 Kudos
Message 1 of 4
(6,233 Views)
Hello Steffen,

I don't know the Metex M-3890D but there are some tutorials and examples about USB raw.

USB Instrument Control Tutorial
http://zone.ni.com/devzone/cda/tut/p/id/4478

How Can I Communicate With a Device Using NI-VISA USB RAW Mode?
http://digital.ni.com/public.nsf/websearch/E3A2C4FE42D7ED0D86256DB7005C65C9?OpenDocument

Why is NI-VISA Unable to Control my USB Device?
http://digital.ni.com/public.nsf/websearch/273BB58D3B52CE6886256F3B00714D03?OpenDocument


Examples:

USB RAW Control Communication in LabVIEW
http://zone.ni.com/devzone/cda/epd/p/id/3637

VISA USB RAW Mode Get Interrupt Data Example
http://zone.ni.com/devzone/cda/epd/p/id/4516

USB RAW Bulk Communication with LabVIEW
http://zone.ni.com/devzone/cda/epd/p/id/3622

I hope it helps.

Regards,
Wolfgang

Message 2 of 4
(6,213 Views)

While loop,

 

Do you got to use USB-raw communication within LabVIEW successfully?

 

thanks

David Fiorillo
0 Kudos
Message 3 of 4
(4,838 Views)

Dr Shane wrote a two part Nugget series on getting started with USB.

 

Part 1

 

Part 2

 

I hope that helps,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 4
(4,834 Views)