01-07-2010 02:12 PM
I found that when you close a visa session when I am using a USB driver created from the device wizard in Labview, it sends a Clear_Feature_Endpoint (Clear STALL feature of EP2) command to my USB device. However, sometimes my USB device stops sending interrupt packets while I am moving the mouse (my USB device) AND that command is sent...but, I can still send control transfers. All I am doing is using the close VISA icon to close my device.
Is there a way to prevent labview from sending the Clear_Feature command and close the USB VISA device?
01-08-2010 01:47 AM
Control transfers are normally sent over EP zero. EP zero is the only EP which every single USB device must have. Stalling EP2 will have no effect on teh default EP whatsoever.
Mice send data via a seperate EP (normally 0x81) which may or may not be stalled. I think it's normal practise to initialise (and clear all features) the device when you open a reference to it. Only that way can you be sure you have constant starting conditions.
Shane.