LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USBTMC development device - Visa

Hi all, for a University project i am developing form scratch an USBTMC compliant device that is a simple DAC frontend for Labview. 

I already developed ad USB Full Speed device using a simple PIC32MX250F128 processor.

It is recognised in MAX ad i can use it within VIs using Visa USB blocks.

I can open, close, write, read and other block primitives.  

With my usb analyzer i found that the visa write block send data to Bulk-Out endpoint with a USBTMC compliant header that specify in the MsgID field the "DEV_DEP_MSG_OUT"  command message. (byte 0x01)

The Visa Read Block send to the Bulk-Out endpoint an USBTMC compliant header that specify in the MsgID field the "REQUEST_DEV_DEP_MSG_IN" (byte 0x02)

Then a Bulk-In request is issued and data are read from device.  So far so good.

 

However i would like to send to device a "VENDOR_SPECIFIC_OUT" messge in the BulkOut Pipe (byte 0x7E in MsgID field) and a "REQUEST_VENDOR_SPECIFIC_IN" for reading data from.

 

The Visa Write and Visa Read blocks have no option to specify what kind of usbtmc request i want. 

So i wonder if there is a way to do it.    I found visa block for forge arbitrary control in and control out request and for get interrupt data but they are not usefull for the bulk endpoint. I need a way to control the USBTMC bulkout and in header. 

 

 How to do it ?

Tnx for support.

0 Kudos
Message 1 of 2
(2,300 Views)

Hi, can u specify more about how the device work, what kind of message u send?

0 Kudos
Message 2 of 2
(2,224 Views)