03-13-2012 01:25 PM
Hi.
I want to build a ribbon to Microsoft Office Excel with Microsoft Visual Studio 2010.
I have a problem to assembly the NI DLLs' with my application.
I have added the both files : "NationalInstruments.DAQmx.dll" , "NationalInstruments.Common.dll" as references, and so, the VS2010 doesn't recognized the code I wrote.
I looked an exsample from the CD, and I dont know what is the different between the references.
What did I do worng, what did I miss?
Thanks, Lior
03-14-2012 05:44 PM
Hi Lior,
I just had a couple of questions to ask you. Are you using a library in NationalInstruments.DAQmx.dll or in NationalInstruments.Common.dll? Also what was the name of the CD you were using, and the name of the example? Also, what is the application involving Microsoft Excel? I just wanted to clarify so I can better answer you question.
03-14-2012 06:23 PM
Thank you for the reply.
I use both libraries: NationalInstruments.DAQmx.dll & NationalInstruments.Common.dll.
About the CD, I downloaded this software version : NIDAQ917f2.
The example I used is "ReadDigChan".
The application I want to buils is to read data from the NI device and display it on the cell in the active sheet in Microsoft Excel.
I want to realize the application by clicking an Add-On whicth I build in C#.
I hope this is more helpfull for you to answer me.
Greetings ,
Lior Malik
03-15-2012 05:51 PM
Hi Liorm,
I was able to pull up the example you mentioned and did not see the references to NationalInstruments.DAQmx.dll or NationalInstruments.Common.dll. I am not quite clear on the error you are running into. Is the code not compiling, or are the values showing up incorrectly in Excel? If you could include a screen shot off the error you are running into, that would be very helpful.
03-16-2012 03:07 AM
Hi Sunaina,
I added two images to show the situation. Picture "Working" is a photo of your example. Picture "Not Working" is a photo of my software. I added the reference to two DLL files and still it does not work.
for now I just build the software as application software and not Add-On for Excel, which mean that the problem is not to do the Add-On to Excel, but the references only.
I dont know if it is importent but I am working on Visual Studio 2010.
Lior
03-19-2012 09:29 AM
Hi Liorm,
I found a couple of good websites with troubleshooting tips on this problem:
http://social.msdn.microsoft.com/Forums/eu/csharpide/thread/1a1c2ca7-5296-4a3f-b9e2-3323dbbd076d
03-22-2012 02:11 PM
Hi Sunaina
I'm sorry for the late respond, the links you sent was very usefull!
the problem was that the version I had installed didnt support framework 4, thus I installed newer version which support it.
Thank you very much
Lior