LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i need to comunicate with a lab brick signal generator via USB HID

hello all.
i need to comunicate with a lab brick signal generator via USB HID.
I created a usb raw driver using the driver wizard. I was able to get windows to reconize the driver so it shows up in max.
Max finds the device but there's is an error.MAXS has an error opening a session with the device.
I attched a Max image.
 
Thanks
 
 
 
0 Kudos
Message 1 of 39
(7,258 Views)
heres a better picture of Max
0 Kudos
Message 2 of 39
(7,246 Views)
You have a contradiction in your question. First you say that you have a USB HID device and then you say you used the driver wizard. You can't have both. If you have a HID device, that is the only driver you should be using. If it's HID, you would have to prevent the windows HID driver from being loaded for it. What has the vendor advised you to do for interfacing to their product? Even if it's not HID, you would need all of the USB RAW details from them before you even think about trying to control it.
0 Kudos
Message 3 of 39
(7,224 Views)
Thanks for the input Dennis.
I have the information from the manufacturer the ID number and the MODEL number.
When I build a driver using the driver wizard. I'm able to get both windows and max to reconize it.
But when Max or labview tries to open a session with the device it get the error.
 
When I don't use the driver wizard. Windows will install the drivers for it(see attached).When I do this Max can't find the device.
 
I also so heard I could wrap the driver that windows uses to get MAX to reconize it.Not sure how to do this.
 
Your help is greatly appreciated.
 
Thanks
0 Kudos
Message 4 of 39
(7,217 Views)
Don't use the driver wizard and just let windows install it's HID driver. The VISA driver wizard should be regarded as a last resort when no other driver is available. Just having the id and model number isn't nearly enough to use VISA anyway. There is no reason to try to get MAX to recognize it. You have to get from the vendor information on the HID calls but this will probably be easier than getting the USB RAW information from them. Once you have that, then you can use the Call Library Function Node to access the HID dll in windows. I have no direct experience with HID. My own experince is with USB devices that come with LabVIEW drivers or with devices created internally and the full RAW information was available. I have seen other posts regarding HID. Search the forums for HID and USB.
0 Kudos
Message 5 of 39
(7,211 Views)
Thanks again Dennis I will try that.
0 Kudos
Message 6 of 39
(7,205 Views)
I let windows install the driver hid.ll for my device. That works good.
Where I'm having the problem, is I knot sure how to open a session with my device so I can use the library functions in labview.
I have the commands to talk to it, but I need to open a sesson first.
 
Thanks
0 Kudos
Message 7 of 39
(7,173 Views)
Please read through the USB Instrument Control Tutorial on the NI Developer's Zone and then let us know if you have any questions.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 8 of 39
(7,134 Views)

Eric,

It seems to me that the tutorial will just bring him back to the original problem where he was trying to create a VISA driver instead of using the driver that comes with the device (HID).

0 Kudos
Message 9 of 39
(7,130 Views)

Thank You everyone for your input.

The HID is a widows file wich my device uses.My device does not have it's own driver.

If I use the HID to communicate with my device. I need to open a session with the device before I use the library functions of the HID to communicate with my device.

Not sure how to open a session because it does not show up in labview. Is there a way in labview open up a session with a device that does not show up in MAX?

 

The problem I think I'm having with The RAW USB created by driver wizard is in MAX the raw device is coming as VXI plug and play USB::0xF041::0x1201::SN::0021::RAW

Max can not open up a session with the device.

I went thru the same process with other devices that uses the HID file. The Raw USB comes up as  USB::0x0572::0x0001::NI-VISA-1::RAW

The one that works has The NI-VISA in the name.

I was thinking of modifying the ini file of the one that does not work so it comes up in MAX the right way.Not sure how to do that.

Your help is appreciated.     Thanks

 

 

0 Kudos
Message 10 of 39
(7,112 Views)