Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Control Pipe in error on sbRIO9606

Hi,

 

I am having trouble with the USB port on my sbRIO9606.

 

MAX is reporting that the Control Pipe is in error & I am unable to set it to any other value that what it currently is.

 

I am not sure how to fix this or even what caused the problem as I have been using it effectively to acquire data for some time.

 

My code is still able to read from the serial port but it does so very very slowly.

 

Please see attached screen shots of MAX.

 

Specific VISA attribute errors are:

Control pipe – “VISA:  (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource.”

 

Bulk Out Pipe Status – “VISA:  (Hex 0x3FFF0082) The specified object reference is uninitialized.”

 

Bulk In Pipe Status – “VISA:  (Hex 0x3FFF0082) The specified object reference is uninitialized.”

Adam Amos | CPE Systems
aamos@cpesys.com.au
0 Kudos
Message 1 of 7
(4,024 Views)

Adam,

 

Could you upload your visa driver so I can try loading it on one of our systems? You may want to try remaking the device driver and see if it ends up in the same state. 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 7
(3,997 Views)

The driver is simply a VISA Read VI, I have verified that the device sending the data is working correctly.

Adam Amos | CPE Systems
aamos@cpesys.com.au
0 Kudos
Message 3 of 7
(3,990 Views)

Adam,

 

From your images it looks like you have developed a driver using the visa wizard to interface with the sensor over usb. There should be a driver file that you moved to the sbRIO to interface with the USB port over visa. Could you please double check that you haven't used the VISA Driver Wizard to create a driver?

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 4 of 7
(3,976 Views)

Adam,

 

I was able to replicate it on a PXI system by just installing NI VISA. Sorry I had assumed you made a customer VISA Development Driver. I do see those 3 properties set to invalid. Let me look into them a little more and I will get back to you.

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 5 of 7
(3,971 Views)

Thanks Kyle

Adam Amos | CPE Systems
aamos@cpesys.com.au
0 Kudos
Message 6 of 7
(3,955 Views)

Adam,

 

Bulk Pipe In and Out are probably not an issue. Depending on the device they either support bulk transfers (array of data) or they don't. These are all queries performed on the device. A keyboard is also considered class 2 (HID) which also doesn't support bulk transfers .

 

On the other hand the interrupt control pipe should be defined. I'm trying to find out if it is RT that is creating the default driver and if I can overwrite it with a VISA generated one. As the keyboard has a control pipe of 0 when connected to my PC but attached to the RT PXI it shows invalid. 

 

Sorry there isn't a final answer yet but I am getting closer. 

 

 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 7 of 7
(3,945 Views)