Patrick Cevasco wrote: > >Has anyone had any luck using tcl/tk as the GUI of an >application that uses the NI-DAQ libraries? I'd like to >know what you did to bring the two together (the basics).
Not in Tcl/Tk, in Java. The idea will probably be the same, however:
The C part: Once you have Ni-Daq installed (verify this by using the NiDaq test panel)), there is a header file, \include\nidaq.h, which gives access to all NiDaq functions. Include this file. When compiling, also use the library \lib\nidaq32.lib
Now you only need to access C from Tcl. As far as I know, that's quite easy. In Java, I had to make an intermediate DLL, which can be accessed by the java-native interface, and which passes all calls to the NiDaq functions.
To make the required DLL, I used the following line: (MSVC, compiled from the command line)