03-25-2008 02:56 PM
03-29-2008 10:18 AM
I need to call the setupapi.dll in the C:\Windows\System32 folder to run the SetupDIGetDeviceInterfaces.
This should open up a session with the device.So I could communicate with it.
I know I need to use the call library funtions. I'm unsure how to to this.
Could someone show me in labview how to do this.
I would greatly appriciate it.
I know there are steps after this were I need to call other funtions. But I having trouble with this one.
When I call this funtion does it query all the devices on the USB?
Thanks
03-31-2008 02:48 PM
04-01-2008 07:43 AM
Hi thanks for the input. The call is part on the setupapi.dll in the windows system32 folder.
My problem is that I'm not sure how to con figure the parameters for the inputs and outputs.
I found some documentation see attched.
I tried making a wrapper dll but it comes up with errors.
I made a simple vi which just adds one to the input. Then putting the vi in a prodject i was able to create a dll.
Then I used the library functoin to call the dll I made. All I had to do was select the dll and hit ok.
The input and output configured themsevles.Why when you call windows dll It doesn't do that I just don't now.
Thanks again.
04-02-2008 01:31 PM
04-02-2008 02:38 PM
04-03-2008 07:04 PM
04-04-2008 08:21 AM
Thanks for the input.
I tried making a wrapper before. See attached for the error I get.
Thanks
04-07-2008 06:09 PM
06-17-2008 04:45 AM - edited 06-17-2008 04:48 AM
Hi All
I also encountered the same problem recently. I need to programmatically control Lab Brick digital attenuator which is also a HID compliance device.
I've tried the same way matt68 tried. Using VISA driver wizard but also couldn't open VISA session at MAX as matt68 did. (The error is exactly the same
as "max1.gif" attached at the top of this thread.
Then I tried to use call library function node to call HID.dll directly but all the function call require a void parameter and I don't know why.
The same problem happened when call setupapi.dll. I attached a pic "call dll viod.jpg" to show my situation.
So my questions are
1. How did I end up with void function prototype when calling DLLs?
2. Have anyone succeed to call HID and wrap it to a DLL (maybe not labview dll)? Would you mind sharing the
experience or the code with me?
Thank you
Kirika