06-25-2008 10:30 AM
06-25-2008 12:02 PM
12-04-2008 07:17 AM
Do any one have the solution to communicate to the libusb device from NI-VISA.
In the Device Manager i am able to detect the device but it is not listed in the MAX devices.
12-05-2008 07:48 AM
12-05-2008 01:05 PM
Vlnaran--
If you are looking to communicate/detect USB device, you'll need to start with a driver. What you'll need to determine is if the device you have is a USB INSTR Class (USBTMC) device, otherwise you'll need to use USB RAW. You can create your own driver using the VISA Driver Development Wizard. Before the device will show in Measurement & Automation Explorer, the USB device will need to be associated with the NI-VISA developed driver. I have linked the following DevZone and KnowledgeBase for your resource:
Developer Zone Tutorial: USB Instrument Control Tutorial
KnowledgeBase 1VCFFL3Y: What Is the VISA Driver Development Wizard?
Depending on the class of the device, the following KnowledgeBases will also serve as good information:
KnowledgeBase 325APJ2Y: How Can I Communicate With a Device Using NI-VISA USB Raw Mode?
Cheers!
--
Tyler C
12-05-2008 03:47 PM
HERE is a link to my nugget on USB comunication with pure G.
Please note that USB communication is easier on MAc or Liunux because there's no need for the special "VISA RAW driver" step. Makes getting up and running much easier for anyone who might have the choice.
Shane.
12-05-2008 10:50 PM
NIDave,
First i tried with calling a Executable from Labview and moved on to CIN [Compiling C cource code for Labview] and now i am trying to implement the C program in Labview since that would give me more flexibility to change the things.
Since in both implmentation the Executable and CIN i have some constraints.....
I am expecting to call a USB from VISA so that i can call the subfunctions from Labview and to make changes i can make changes in labview instead of changing the c code and then the labview code accordingly each time.
My USB device is listed in the Device manager but not in the MAX devices.....That is the problem i am facing.
If this is not resolved ..i have to use the dll of the usb library ..have you tried that.
12-05-2008 11:19 PM
Tyler C,
Thanks for the Links....
My PC [Win 2000] is able to detect the device in the Device Mangaer.
So i expected it to be USBTMC Device but it is not listed in the MAX devices.
Can you help me to fix what could be the problem ...if a device is detected in the PC and not able to detect in the Labview devices.
12-09-2008 08:56 AM
Hey Vlnaran,
I'm curious to know if the device can be seen in a VISA Interactive Control, which is located under Start>>All Programs>>National Instruments>>NI-VISA>>VISA Interactive Control. If the device can't be seen there, then it won't show up in MAX. This can occur if a VISA session cannot be opened for the device. Thanks and have a great day!
12-09-2008 09:45 AM