LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

0 Kudos
Message 31 of 39
(2,726 Views)
http://www.delcom-eng.com/downloads/USBPRGMNL.pdf

I found this document and i'm going to try a few things.I'll let you know how I make out.
0 Kudos
Message 32 of 39
(2,714 Views)

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

0 Kudos
Message 33 of 39
(2,693 Views)

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

0 Kudos
Message 34 of 39
(2,673 Views)

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

 

        

0 Kudos
Message 35 of 39
(2,662 Views)

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.

0 Kudos
Message 37 of 39
(2,595 Views)

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

0 Kudos
Message 38 of 39
(2,590 Views)

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?

0 Kudos
Message 39 of 39
(1,527 Views)