LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB (RAW) - changing Bulk-Out Pipe endpoint gives error 0xBFFF003A

Hi,

 

I am trying to interface to a proprietary USB device which communicates via bulk transfers on endpoint 4 for transmissions and 83 for receptions.  I am able to create an .inf file for the device properly and get it to show up in MAX OK.  By default the endpoints come up as 2 for the bulk-out pipe and 81 for the bulk-in pipe.  When I try to change these either in MAX or in a .vi using the USB Raw Bulk Out property node I get error 0xBFFF003A - VISA:  (Hex 0xBFFF003A) Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state). I seem to be able to send out properly on the default endpoint but I get this error any time I try to change to endpoint 4.  Anyone have any ideas as to why I cannot change endpoints through VISA? I can talk to this USB device properly from an embedded USB host application platform so I don't see why I can't through VISA. 

 

Thanks,

Steffan

Download All
0 Kudos
Message 1 of 11
(6,708 Views)

did u see this.

 

 

 

0 Kudos
Message 2 of 11
(6,686 Views)

 


muks wrote:

did u see this.

 

 


This doesn't really help as this refers to serial port configuration. However, the error is probably a general VISA error.  Also, I have another Windows app that can talk to this device over these enpoints just fine so it has nothing to do with a Windows limitation, it is VISA.

  

0 Kudos
Message 3 of 11
(6,675 Views)

Hello,

 Try using the USB RAW-Bulk.vi provided with the example finder and add the property node to the open session case. I noticed there is no VISA open in the picture you attached as well; you may need to add this.

-Matt

Matt
Applications Engineer
National Instruments
0 Kudos
Message 4 of 11
(6,648 Views)

Matt W. wrote:

Hello,

 Try using the USB RAW-Bulk.vi provided with the example finder and add the property node to the open session case. I noticed there is no VISA open in the picture you attached as well; you may need to add this.

-Matt


 

Matt,

 

Thanks for the reply.  I think the open wasn't necessary since I was using the VISA Test Panel but, in any case, it should have been in there for correctness.  I added it but it did not make a difference.  It give me the same error in VISA Test Panel anyways.  Also, I do not have USB RAW-Bulk.vi in my examples (I am running with 8.0, maybe it was added in later versions).  Could you post it?

 

Thanks,

Steffan

0 Kudos
Message 5 of 11
(6,644 Views)

Hi

I have same problem with my usb device   (error 0xBFFF003A ).

I'm using labview 8.6 with visa 3.4.

Can visa 3.4 be the case?

thanks.

0 Kudos
Message 6 of 11
(6,384 Views)
You can try updating VISA.  The most recent version for Windows OS can be found here: http://joule.ni.com/nidu/cds/view/p/id/1605/lang/en.  Were you able to try the example mentioned above?
0 Kudos
Message 7 of 11
(6,342 Views)

Hi Matt,

          In the Labview example USB RAW-BULK.vi.After opening the session.How to change the property node??which are the property nodes??I can see only BULK OUT and BULK IN.Iam using a pendrive as my USB device........HelpSmiley Surprised

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 8 of 11
(5,398 Views)

@danil33 wrote:

Hi Matt,

          In the Labview example USB RAW-BULK.vi.After opening the session.How to change the property node??which are the property nodes??I can see only BULK OUT and BULK IN.Iam using a pendrive as my USB device........HelpSmiley Surprised


STOP creating multiple posts for your question!

 

http://forums.ni.com/t5/LabVIEW/Requirements-to-read-from-a-USB-port/td-p/1959445

 

You've created something like 8 posts on this same question!!!!

 

0 Kudos
Message 9 of 11
(5,392 Views)

 

Did anyone come to a solution for this problem? Very similar to the reported problem I can create a NI VISA driver to talk to my USB HDI compliant proprietary device, then using the test panel of the MAX explorer I am able to send commands, but NOT receive them. The problem is apparently the configuration of the IN pipes, which I cannot change in the test panel dialog, receiving the same error message as reported.

 

thanks all.

 

Sergi

0 Kudos
Message 10 of 11
(5,217 Views)