09-29-2012 07:11 AM
Hello there, I'm a newbie in the forum. I have been looking for information about this, but it didn't clariefied the doubts, I think my problem is much easier.
The thing is simple: I have an USB with data incoming continuously, it's a signal and I want to plot it with LabVIEW. I have checked the USB communication with PC and it's fine: PC recognised the USB communication, and it's receiving the right signal via USB. So I have done everything so far about enumeration, sending data (bulk transfer, but I can change it), etc. Now the question is: Is there an easy way to get data via USB? I just need to read 2 bytes data (digital signal with 16 bits per sample) from USB continuously.
Thanks for your help 🙂
09-29-2012 08:35 AM
You should first check to see if drivers exist for your scope on the NI Instrument Driver Network and on the vendor site. Did you do that? For USB most vendors either make it so that it's a virtual COM port, or they provide a DLL to talk to the device. Is the device USBTMC? If none of this applies, and you absolutely have to communicate RAW, then you have to know the exact format of the data. Vendors rarely give this information out, but you may be able to figure it our via a USB sniffer. I know you said you just need to read 2 bytes, but I doubt very much that's all you'll see on the bus. If you have to go down this route, start here: http://forums.ni.com/t5/LabVIEW/Nugget-1-of-n-GEtting-started-with-USB-communication-via-VISA/m-p/74...