Want to use instrument drivers directly with C#.Net (NO Measurement Studio, PLEASE). Plan is to use dllimportattribute. Tried to add ke2000_32.dll (for Keithly 2000 DMM) as a reference to Visual Studio.Net project, but VS choked; said it couldn't create a wrapper. How do I reference the dll?
Hello wdk, The best way to go about this would be to use the Measurement Studio components. Since this does not appear to be an option for you, lets give it a shot!
Unfortunatly, we currently do not have a language interface file available to let you do ib level commands in .NET.
I have encountered an example of doing VISA calls in C#. If you want to use the VISA C functions in Visual C#, you can use the Visual C# DllImport external method declarations in the attached example file.
I also need to mention that this is completely unsupported as it is not an official NI release.
Best Regards, Aaron K. Application Engineer National Instruments
For now, the only way to access the NI-488.2 .NET library is through the Measurement Studio beta program. However in the future, NI will ship this same API in a driver CD, so you'll get it w/o MStudio as well. If you do sign up for the beta program, you are welcome to use my name as the NI contact.