Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read raw data from USB board Analog Devices ADISUSBZ

Hi

I am trying to use VISA to read the raw data from a USB dev board (Analog Devices ADISUSBZ). but always get below errors

"BFFF003A Unable to start operation because setup is invalid."

 

what I did.

1) uninstalled and deleted the origanl USB driver for ADISUSBZ

2) plugin ADISUSBZ USB Dev board, windows see a unknow device, using VISA Driver Wizard to create a USB driver inf file for ADISUSBZ

3) installed the new driver which VISA Driver Wizard created, restarted computer, ADISUSBZ is identified and loaded with VISA USB driver. also showing "This device is working properly."

4) Run Measurement & Automation Explorer, in the Devices and Interfaces list, I can see that USB device which is the ADISUSBZ. but the name is

Unkown USB0::0x0456::0xEF02::NI-VISA-40002::RAW   (the VID PID tell me, it is the ADISUSBZ USB Dev board)

5) Open VISA Test panel -> View All Settable Attributes, I got below data, where  VI_ATTR_USB_BULK_IN_STATUS = -1 (not active???)

VI_ATTR_TMO_VALUE = 2000
VI_ATTR_MAX_QUEUE_LENGTH = 50
VI_ATTR_TERMCHAR = 0x0A
VI_ATTR_TERMCHAR_EN = VI_FALSE
VI_ATTR_IO_PROT = 1
VI_ATTR_SUPPRESS_END_EN = VI_FALSE
VI_ATTR_USB_MAX_INTR_SIZE = 1
VI_ATTR_USB_CTRL_PIPE = 0x0000
VI_ATTR_USB_BULK_OUT_PIPE = 0xFFFF
VI_ATTR_USB_BULK_IN_PIPE = 0xFFFF
VI_ATTR_USB_INTR_IN_PIPE = 0xFFFF
VI_ATTR_USB_ALT_SETTING = 0
VI_ATTR_USB_BULK_OUT_STATUS = -1
VI_ATTR_USB_BULK_IN_STATUS = -1
VI_ATTR_USB_INTR_IN_STATUS = -1
VI_ATTR_USB_END_IN = 5

 

6) Basic I/O  -> viRead  , set count to 1 or default 1024 , execute

 

return status is always BFFF003A

I searched in error list, it says

"BFFF003A Unable to start operation because setup is invalid."

 

 

any idea what is wrong? help

BTW, the ADISUSBZ USB board works fine, test with its own software, it is not hardware faulty

 

Eric

 

 

 

 

0 Kudos
Message 1 of 4
(5,208 Views)

Hi Eric

 

I have a few questions for you as well as a number of likes that will help you.

What software are you using NI VISA with is it just Measurement and automation explorer ?

Which version of NI VISA are you using?

Which operating system are you using?

In measurement and automation explorer is there a yellow question mark against the device?

I would advise reading the likes below if you have not already creating the VISA driver again checking the manufacture ID and model code if these options are available to you.

 

The following link will help you with the VISA

http://digital.ni.com/public.nsf/websearch/E3A2C4FE42D7ED0D86256DB7005C65C9

 

This tutorial gives a step by step guide on how to create a VISA driver.

http://zone.ni.com/devzone/cda/tut/p/id/4713

 

The Difference between USB Raw Control and USB Raw Bulk

http://digital.ni.com/public.nsf/allkb/400D6EAB5CFE1C6B86257395005F5D48?OpenDocument

 

Can VISA Read be used to read USB Interrupt Data?

http://digital.ni.com/public.nsf/allkb/D38E5A65DA54C9A2862571E900810FEA?OpenDocument

Regards

Robert

National Instruments UK & Ireland
0 Kudos
Message 2 of 4
(5,132 Views)

Has there been any resolution on  this.  I am having the same problem and I have found that changing the alt_setting (to 1 or 2 or 3) seems to solve the invalid setup error (BFFF003A).  However now I recieve a timeout error (BFFF0015).

 

Thanks,

 

Darren

0 Kudos
Message 3 of 4
(5,002 Views)

Write Error.png

I have same error

0 Kudos
Message 4 of 4
(4,409 Views)