LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help writing host program using LabView.

Need help writing host program using LabView.

Hello,

I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.

I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.

My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.

I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.

Any help would be appreciated.

Regards, George

George Dorian
Sutter Instruments
51 Digital DR.
Novato, CA 94949
USA
george@sutter.co
m
(415) 883-0128
FAX (415) 883-0572
0 Kudos
Message 1 of 4
(3,622 Views)
Dear Dorian:
Now I have the same trouble.How can I use USB visit my ADSL? Labview donot use USB cable visit the USB modem,but I think you can use RS232 visit it.At fisit you must write driver if you use USB visit.I think it is difficult.
Best regards.
zyqu@broadmax.net
MZ/China
0 Kudos
Message 2 of 4
(3,622 Views)

Hi, George

 

We are now using the Lambda 10-3 from Sutter Instrument. We wish to connect the device to our host computer by USB connection and write our own Labview programs to control it. I am wondering if you have solved the problem above you posted in 2002? Do you have the program now and available to download? I think we have similar problems and hope Sutter have solved the program....

 

chen zhi

U0706376@nus.edu.sg

0 Kudos
Message 3 of 4
(3,193 Views)

George may not answer you.  He hasn't been online here for almost eight years.

19371iB65A7BAC1FEBF45A

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 4
(3,168 Views)