09-07-2006 10:56 AM
...
status = viOpen (defaultRM, "USB0::0x413c::0x3010::NI-VISA-0::RAW",VI_NULL, VI_NULL, &instr);
if (status < VI_SUCCESS) {
printf ("Cannot open a session to the device.\n");
goto Close;
}
printf("Enabling USB Event\n");
status = viInstallHandler (instr, VI_EVENT_USB_INTR, usbHndlr,0);
status = viEnableEvent (instr, VI_EVENT_USB_INTR, VI_HNDLR, VI_NULL);
...
My OS is XP SP2 and I use CVI 7.0 / NI-VISA 3.6. The .inf file to install the USB device was created with DDW. Any clue about this problem? Is there any other way to read data from USB RAW device?09-08-2006 03:25 AM
Gullit,
communicating with devices using USB RAW Visa mode is documented on the following KB page
http://digital.ni.com/public.nsf/websearch/E3A2C4FE42D7ED0D86256DB7005C65C9?OpenDocument
There is also an example that shows how to program USB RAW devices using VC#.NET. Function calls are similar to the ones you should use in CVI, so it may be helpful
Hope this Helps,
AlessioD