LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Nugget: 2 of n : USB Control transfers using VISA

Started a new thread <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;thread.id=475966" target="_blank">here</a>
0 Kudos
Message 21 of 36
(3,739 Views)

Does anyone know where the last link points to?

 

0 Kudos
Message 22 of 36
(3,560 Views)

Try this.

 

http://forums.ni.com/t5/LabVIEW/USB-RAW-Interrupt-Out-Transfer/m-p/1074268#M475966

 

Whoever created that link in the message didn't copy it properly.  Converting the &amp; to an ampersand (and ignoring all the other HTML code) let to the link above.

0 Kudos
Message 23 of 36
(3,548 Views)

What is that VI connected to the request type input of the visa usb control in VI? I can't find it anywhere.

 

Thanks

0 Kudos
Message 24 of 36
(3,371 Views)

Intaris_USB_Build bmRequestType.vi

 

It is in the zip file in message #4.

0 Kudos
Message 25 of 36
(3,364 Views)

My question is conected with HID class but i think this nugget is more actual.

 

Should I establish conection by myself ie. usingn Set Adress, Set Configuration or OS doing this? I have some error when i'am sending Set Report Request and i'am looking for reasons.

0 Kudos
Message 26 of 36
(2,909 Views)

Please make a seperate post for task-specific questions.

 

Shane.

0 Kudos
Message 27 of 36
(2,889 Views)

YUno.jpg

Richard






0 Kudos
Message 28 of 36
(2,878 Views)

I'm trying to use your vi with a multimeter but I don't know what sections to edit on your vi.  This is the raw data I'm getting(below).  Where can I make the necessary modifications to your vi to actually send the 0x6565 command which tells the meter to send back the measured data.

 

Thanks.

RawData.JPG

0 Kudos
Message 29 of 36
(2,715 Views)

The operation "Set Report" is a HID function.  Look for the HID Spec on www.usb.org and download it.  The information is in there.  Answering the question here would take too long.

 

You then npormally read the HID data via Interrupt reports.  You can also use the "Get Report" command over the Control pipe but this is meant for initialisatrion purposes only.  But if it does what you might be better off doing it that way.

 

Normally if a device sends data from more than one report the first byte of the report will actually be the report index so that you know how to interpret the data.$

 

As I said, detailed info on the topic expands well beyond this thread.

0 Kudos
Message 30 of 36
(2,578 Views)