LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate the zero packet on the Bulk-OUT pipe by NI-VISA?

I can generate the Bulk-OUT "*IDN?"on this USB RAW Class device by using write. But, how to generate this zero packet(Short packet) on the Bulk-OUT pipe? YY
0 Kudos
Message 1 of 10
(4,332 Views)

Have you tried a normal Bulk out transfer with an empty string as an input?  Seems the logical choice.

 

Shane

0 Kudos
Message 2 of 10
(4,305 Views)

I tried, but failed.

0 Kudos
Message 3 of 10
(4,271 Views)

Failed?

 

Error message? Just no functionality? What?

 

Shane.

0 Kudos
Message 4 of 10
(4,263 Views)

no action, no error. 

0 Kudos
Message 5 of 10
(4,260 Views)

I add write "" to this device.

 

But, no effect. no error.

 

 

0 Kudos
Message 6 of 10
(4,201 Views)

What program did you use to show the USB comms?

 

There is a single difference between the two transfers in the iomage below.  The T on the left of the "number of Bytes" is different but I don't know what that means.  YOu should check the software you used to find out what this means.

 

I would post a Bug report that VISA is ignoring zero-byte transfers.

 

Shane.

0 Kudos
Message 7 of 10
(4,189 Views)

It'd be helpful to see USB port sniffer captures from successfully sending a zero packet transfer with your program, and from unsuccessfully sending this packet with VISA.

Justin E
National Instruments R&D
0 Kudos
Message 8 of 10
(4,152 Views)

Successfully

 

the difference with unsuccessfully is the red part.

 

even, I try to write an "" nothing happened.

 

no warning, nothing happened.

0 Kudos
Message 9 of 10
(4,141 Views)

Hi Shane,

 

  Do you get any response from Ni?

 

YY

0 Kudos
Message 10 of 10
(4,107 Views)