Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem about USB

i have some questions about device driver
 
As the logic analyzer is made or i say it is designed by our own and it is a USB device so how can i start to do this device
i have searched quite long and i have read about using VISA control, plug and play device and driver develpment
guideline and have downloaded the generic template for driver but i still don't know how to do it as they all based on resource
name,command and so on but i don't  have these kind of information. Maybe i just want to send some very basic 1 and 0 logic to the device. Is it related to the USB raw device?or can anyone give me suggestions for it or what should i read?
 
i am very confused about them. THANK YOU~~~~~~
0 Kudos
Message 1 of 5
(3,787 Views)

First, you must prepare a USB kernel-mode device driver for your device.  One easy way is use NI-VISA Driver Development Wizard.
http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&1D0DD81FF1448CAE86256D90006EE2B4

By using this tool, you can generate an .INF file for your USB device, with specifying the VID (vendor ID) and PID (product ID) values.  Once the INF file is generated, you can assign the .INF file to your USB device on the Device Manager.  Now your device can be accessed through VISA library using following VISA address format.

USB0::<vendor_id>::<product_id>::<serial_no>::RAW

 

Message 2 of 5
(3,771 Views)
One important note about using VISA is it is very similar to register level programming and it requires that you know exactly what end-points to use and what control registers to write. If you wrote the firmware for the device it is very easy to use VISA. If you don't have this level of information about your device or it's firmware then I would suggest that you try to use the dll that came with the device and make calls to the dll from LabVIEW or what ever programming language you are using.

-Josh
Message 3 of 5
(3,767 Views)
Thank You for all of your advice but i still have a few question on it.
 
So after i have used the driver deverlopmenet wizard in VISA, how can i read and write something to the device in Labview. Just as simply using the VISA read and write or i can use the function under the VISA high level register acess?(i just want to send and read 1or0). 
Also I have noticed that there are two USB control in and out function under the VISA>advanced>interface specification so what is their use.
 
0 Kudos
Message 4 of 5
(3,747 Views)
To access your USB device, just use VISA Open, Write, Read, and Close functions.  As for USB Control IN/OUT functions, they are for sending arbitrary class requests or vendor requests through the control endpoint.  If your device supports any, you can use them. 
0 Kudos
Message 5 of 5
(3,733 Views)