01-07-2009 07:28 PM
The USB device uses the HID.dll .
I did get it to work by having some write code in c++.Then I would call his dll with library node and select the function.
Some funtions like find devices,get serial number,get frequency....ect.
What I want to do is to find the USB devices calling setupAPI functions. then open a session using the HID.dll to commnicate with the device.
I believe there is a SDK toolkit in labview 8.6 for calling windows dll's. Is there one for labview 8.5.
The following link is to the LAVA fourm were I started a thread
http://forums.lavag.org/CONFIGURING-WINDOWS-SDK-FUNTIONS-IN-LABVIEW-t12762.html&st=15
I think it would benifit NI alot to create toolkits and provide more documentation on the the order in which to call dll's for window operations. Like finding devices and to setup communication.
I appreciate all the help......Thanks
01-07-2009 09:27 PM
01-08-2009 04:42 PM
http://zone.ni.com/reference/en-XX/help/371361E-01/lvexcodeconcepts/configuring_the_clf_node/
I think this will help,But its for 8.6. Does NI have a version in 8.5
01-09-2009 01:08 PM
matt68,
Is this what you are looking for?
http://zone.ni.com/reference/en-XX/help/371361D-01/lvexcodeconcepts/configuring_the_clf_node/
Eric K
Applications Engineer
National Instruments
01-09-2009 02:10 PM
Hi.........thanks for the info. Is the library node supposed to automatically configure the parameters?
How would you set up the parameters for this function. Using the setupAPI,dll
HDEVINFO
SetupDiGetClassDevs(
IN LPGUID ClassGuid, OPTIONAL
IN PCTSTR Enumerator, OPTIONAL
IN HWND hwndParent, OPTIONAL
IN DWORD Flags
);
see link http://msdn.microsoft.com/en-us/library/ms792959.aspx
The SetupDiGetClassDevs I believe is the first step to finding the USB devices There are more functions I need to call, but I need to get the first step done correctly. I wish there were some documentation out there that would clearly describe the dll's ,funtions of the dll's and the order in which to call them to find USB devices. The return value is connected to the DeviceInfoSet on the next funtion call.
SetupDiEnumDeviceInterfaces.
WINSETUPAPI BOOL WINAPI
SetupDiEnumDeviceInterfaces(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData, OPTIONAL
IN LPGUID InterfaceClassGuid,
IN DWORD MemberIndex,
OUT PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData
);
see link http://msdn.microsoft.com/en-us/library/ms791242.aspx
You help on this is greatly appriciated.
Thanks
01-11-2009 11:55 AM
hi all see post #27
http://forums.lavag.org/CONFIGURING-WINDOWS-SDK-FUNTIONS-IN-LABVIEW-t12762.html&st=15&gopid=56530#
Thanks everyone
01-12-2009 06:14 PM
Thanks Eric for all your helps and info.
My computer motherboard was spoiled already.
I will check it out with your method after I get my computer.
Appriciate all your helps.
01-12-2009 06:24 PM
matt68,
As I understand it you are successfully able to call functions in the HID dll, and you are now looking for details regarding how to use the functions properly, such as what to send them and what they do. Unfortunately I am not familiar what the HID dll contains and how to use the functions. For this you may want to look for resources regarding just the HID dll, not necessarily anything specific to LabVIEW.
Eric K
Applications Engineering
National Instruments
05-25-2011 03:37 AM
Hi,
Am new to lab brick signal generator and i need to rewrite a program that will able to call my device using the serial number, set the low and the high tone ,set space and the power level in C#. Please can anyone help me in this?