Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset USB device

How can I perform an USB device RESET using viUsbControlOut?
Image Hosted by ImageShack.us
0 Kudos
Message 1 of 5
(4,771 Views)
I think that the RESET will depend on the instrument. In fact, each USB instrument has its own command set.
0 Kudos
Message 2 of 5
(4,769 Views)
Which information should I get from the manufacturer in order to implement a soft reset?
Image Hosted by ImageShack.us
0 Kudos
Message 3 of 5
(4,769 Views)
In any case, your need to get from the USB Device manufacturer all the Device Command Set. In all this commands, you will find a "message" that can reset the device (Of course, if a reset functionality has been added to the device).

An USB device is "like" a GPIB instrument. When you want to reset a GPIB Scope, you need to know which SCPI message to send to the instrument, so you need to have the command set of the instrument. In no way, the scope reset is done by a Lv GPIB function, but by a message send by the Lv GPIB_Write function. This is exactly the same for the USB device.

Then, if you know the command to send, you need to send it by a function in Lv. You have 2 choices, depending on the USB device specifications:

Case 1: The USB device is compli
ant to USB Test & Measurement Class (USBTMC)
In this case, you just need to use a VISA_WRITE, with the command which reset the device. No configuration is required to communicate with a USB device compliant with the USBTMC.

Case 2: The USB device is not compliant to USBTMC (This is the case for all others USB devices)
In this case, this is a litle bit more complicated. The function you need in Lv to send your message will depend on the pipe (way of communication) use by your device. For knowing this, you need to read the documentation of you device.
This is clearly exlpain on step 3.2 at the following web adress:
http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument

I hope this will help.

Raphael TILLET
National Instruments.
FRANCE
Cordialement,
Raphael T
Message 4 of 5
(4,769 Views)
You will need to get from the USB Device manufacturer all the Device Command Set. In all this commands, you should find a "message" that can reset the device (Of course, if a reset functionality has been added to the device).

An USB device is "like" a GPIB instrument. When you want to reset a GPIB Scope, you need to know which SCPI message to send to the instrument, so you need to have the command of the instrument. In no way, the scope reset is done by a LabVIEW GPIB function, but by a message send by the GPIB_Write. This is exactly the same for the USB device.

Then, if you know the command to send, you need to send it by a function in LabVIEW. You have 2 choices, depending on the USB device specifications:

Case 1: The USB device is complia
nt to USB Test & Measurement Class (USBTMC)
In this case, he just need to you a VISA_WRITE, with the command which reset the device. No configuration is required to communicate with a USB device compliant with the USBTMC.

Case 2: The USB device is not compliant to USBTMC (This is the case for all others USB devices)
In this case, this is a litle bit more complicated. The function you need in LabVIEW to send your message will depend on the pipe (way of communication) use by your device. For knowing this, you need to read the documentation of you device.
This is clearly exlpain on step 3.2 at the following web adress:
http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument

I hope this will help you.
0 Kudos
Message 5 of 5
(4,769 Views)