11-30-2009 04:06 PM
The SX2 USB interface device is designed to work with any external master, such as standard microprocessors, DSPs, ASICs,
and FPGAs to enable USB 2.0 support for any peripheral design. I have a driver for this controller, but I was wondering if the
builtin VISA USB components in Labview 2009 would allow me to build an interface in Labview to communicate with this
device. Appreciate an insights. Thanks.
11-30-2009 04:52 PM
I cannot answer your question about VISA and USB. I would assume the answer is "yes" because I do not see why that wouldn't be the case. However, all the USB devices I have ever used came with some device driver and most of the time I could just use the device driver's functions directly in LabVIEW. That way if the manufacturer updates their driver package, you can take advantage of it in your own software in a modular way.
If a driver is available (like a .dll), then I would first try to use the "Call Library Function" in LabVIEW to access its methods. You will most likely need the documentation for the driver. If the inputs/outputs for the driver's function are complex, then you will need to write a wrapper .DLL in C or something to make the function calls more accessable to LabVIEW (which seems to only be good at simple data types when using the Call Library Function).
-nic
11-30-2009 09:21 PM
I would suggest looking over the following material:
USB Instrument Control Tutorial
How Can I Communicate With a Device Using NI-VISA USB RAW Mode?
Why is NI-VISA Unable to Control my USB Device?
Nugget: 1 of n : GEtting started with USB communication via VISA
Nugget: 2 of n : USB Control transfers using VISA